Summary
Migrate MS Teams adapter trust configuration from gateway env vars to a first-class [teams] section in config.toml.
Current State
- Gateway env vars only (
GATEWAY_ALLOW_ALL_USERS, GATEWAY_ALLOWED_USERS)
- No per-platform granularity for Teams
Target State
[teams]
allowed_users = ["29:1abc...", "29:2def..."]
trusted_bot_ids = ["28:bot-id"]
# allow_all_users = true # explicit opt-in only
Tasks
Notes
- Sender ID format:
activity.from.id (e.g., "29:1abc...") — may differ from AAD Object ID
- L1 auth: JWT (OpenID Connect) RS256 verified via Bot Framework OpenID metadata + JWKS
- Verify sender ID format from actual event payloads before finalizing config format
Refs
Summary
Migrate MS Teams adapter trust configuration from gateway env vars to a first-class
[teams]section inconfig.toml.Current State
GATEWAY_ALLOW_ALL_USERS,GATEWAY_ALLOWED_USERS)Target State
Tasks
[teams]section to config schemaPlatformTrustConfigsregistryis_botderivation:activity.from.role == "bot"ortrusted_bot_ids.contains(activity.from.id)sendToConversationconfig.toml.exampleNotes
activity.from.id(e.g.,"29:1abc...") — may differ from AAD Object IDRefs