Commit f9a2849
feat(gateway): Phase 3 quick fixes — bot filter, fallback, logging, docs (#1173)
* feat(gateway): bot filter env vars, create_thread fallback, attachment logging
- Add GATEWAY_ALLOW_BOT_MESSAGES / GATEWAY_TRUSTED_BOT_IDS env vars to
process_gateway_event(). Bot messages are now passthrough when explicitly
allowed or sender is in trusted list. (Issue #1172 task 1)
- Send user-facing fallback message when create_thread fails instead of
silently falling back to channel. (Issue #1172 task 6)
- Log warning when attachment has neither path nor data. (Issue #1172 task 7)
* docs: add unified mode env vars to config-reference
Documents all GATEWAY_* env vars including security gating
(ALLOW_ALL_CHANNELS/USERS defaults, ALLOW_BOT_MESSAGES,
TRUSTED_BOT_IDS) with production checklist warning.
Issue #1172 task 5.
---------
Co-authored-by: chaodu-agent <chaodu-agent@openab.dev>1 parent 7849a35 commit f9a2849
5 files changed
Lines changed: 420 additions & 108 deletions
File tree
- crates
- openab-core/src
- openab-gateway/src
- docs
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
465 | 475 | | |
466 | 476 | | |
467 | 477 | | |
| |||
0 commit comments