You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add allowed_users config for per-user access control (#108)
* feat: add allowed_users config for per-user access control
- Add allowed_users field to DiscordConfig (serde default = empty)
- Add user ID check in discord message handler; react 🚫 if denied
- Extract parse_id_set() helper to DRY up channel/user ID parsing
- Fail closed when all configured IDs are invalid
- Log tracing::warn on 🚫 reaction failure and invalid ID entries
- Helm: use toJson for both allowedChannels and allowedUsers
- Helm: add regexMatch validation for allowedUsers (--set mangling)
- Consistent rendering: both lists always rendered (no if-condition)
Closes#107
* refactor: improve logging and style for allowed_users
- Upgrade denied user log from debug to info (security audit)
- Add parsed allowlist count log after parse_id_set
- Simplify ReactionType::Unicode path via import
* docs: add allowed_users setup guide and config examples
- discord-bot-howto.md: add User ID setup (step 7), allowed_users
config example, access control behavior table
- README.md: add allowed_users to Quick Start and config reference
* fix: add trailing newline to main.rs
---------
Co-authored-by: masami-agent <masami-agent@users.noreply.github.com>
0 commit comments