mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Create grammy.md and group-policy-hardening.md to resolve 10 broken doc links. Format 7 auto-generated CHANGELOG.md files. Co-authored-by: Hanzo Dev <[email protected]>
1.0 KiB
1.0 KiB
summary, read_when, title
| summary | read_when | title | |
|---|---|---|---|
| Hardening plan for Telegram group allowlist and policy enforcement |
|
Group Policy Hardening |
Group Policy Hardening
This plan covers hardening the Telegram group allowlist and policy enforcement logic.
Goals
- Enforce strict allowlist matching for group chats
- Prevent unauthorized groups from receiving bot responses
- Add audit logging for allowlist policy decisions
- Support wildcard and pattern-based group allowlists
Current State
Group messages are gated by the channels.telegram.allowlist configuration. The allowlist supports explicit chat IDs and usernames.
Proposed Changes
- Validate allowlist entries on config load (reject malformed patterns)
- Log policy decisions at debug level for audit trails
- Add support for group title pattern matching
- Harden the check to prevent bypass via forwarded messages