Summary
Migrate WeCom adapter trust configuration from gateway env vars to a first-class [wecom] section in config.toml.
Current State
- Gateway env vars only (
GATEWAY_ALLOW_ALL_USERS, GATEWAY_ALLOWED_USERS)
- No per-platform granularity for WeCom
Target State
[wecom]
allowed_users = ["zhangsan", "lisi"]
trusted_bot_ids = ["bot_app_1"]
# allow_all_users = true # explicit opt-in only
Tasks
Notes
- WeCom UserIDs are freeform strings (tenant-admin-assigned: letters, digits, -, _, @, .)
enter_agent (member-enter event) is user-initiated — must NOT be classified as is_bot
- WeCom UserIDs could match reserved synthetic values — this is why cron bypass only checks
platform, not sender_id
Refs
Summary
Migrate WeCom adapter trust configuration from gateway env vars to a first-class
[wecom]section inconfig.toml.Current State
GATEWAY_ALLOW_ALL_USERS,GATEWAY_ALLOWED_USERS)Target State
Tasks
[wecom]section to config schemaPlatformTrustConfigsregistrytrusted_bot_idsforis_botderivation (noenter_agent— that is user-initiated)config.toml.exampleNotes
enter_agent(member-enter event) is user-initiated — must NOT be classified asis_botplatform, notsender_idRefs