Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

feat: add user permission control for bot access#4

Merged
DiscreteTom merged 1 commit into
DiscreteTom:mainfrom
xylophone21:feat/user-permission
Mar 10, 2026
Merged

feat: add user permission control for bot access#4
DiscreteTom merged 1 commit into
DiscreteTom:mainfrom
xylophone21:feat/user-permission

Conversation

@xylophone21

Copy link
Copy Markdown
Contributor

Add allowed_users config to restrict which Slack users can interact with the bot.

  • Added user field to SlackEvent to pass sender info downstream
  • Added allowed_users to [bridge] config (empty = no restriction)
  • Unauthorized users receive a reply and are logged at debug level

- Add user field to SlackEvent to propagate sender info
- Add allowed_users config in BridgeConfig
- Check user permission in handle_event, reply with denial message
- Add demo allowed_users in scaffold config
@DiscreteTom
DiscreteTom merged commit 05a7cd3 into DiscreteTom:main Mar 10, 2026
5 checks passed
@DiscreteTom

Copy link
Copy Markdown
Owner

Thanks for the contribution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants