diff options
| author | Noah Zweben <noahz@anthropic.com> | 2026-04-23 12:02:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-23 12:02:34 -0700 |
| commit | 5a71459c03148c5952923bcdf6d399bc4da8dc70 (patch) | |
| tree | fddccba151662772b9a3415745e5e2f36849721e /plugins/code-modernization | |
| parent | ae54b113c47ebdd47835f6727b9df5a33116b972 (diff) | |
telegram: gate /start, /help, /status behind dmPolicy (#894)
The bot command handlers bypassed access control — they responded to
any DM user regardless of dmPolicy, leaking bot presence and
contradicting ACCESS.md's "Drop silently. No reply." contract for
allowlist mode.
Add dmCommandGate() that applies the same disabled/allowlist checks
as gate() without the pairing side effects, and route all three
handlers through it. Also prune expired pending codes before /status
iterates them.
Fixes #854
Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'plugins/code-modernization')
0 files changed, 0 insertions, 0 deletions
