agentscope-ai / agentscope-ai/agentscope
feat(channel): add platform-agnostic inbound access control
- 主要言語
- Python
- スター
- 31.6k
- フォーク
- 3.5k
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 103
説明
## Background
PR #2271 highlighted that publicly reachable channel bots can route messages from unknown users or groups into agent sessions. Telegram-specific allowlists were removed from that PR because access control should be consistent across channel implementations.
## Proposal
Add a platform-agnostic inbound access policy in the channel routing layer. The policy should be evaluated before session routing, media download, buffering, or event emission. It should support private-user and group/chat restrictions without adding platform-specific fields to individual channel configs.
## Acceptance criteria
- one shared policy model applies to all channel types
- public access is explicit and visible in configuration
- rejected events do not create sessions or download attachments
- private chats and group chats can be governed independently
- existing channel configurations have a documented compatibility path
Follow-up from #2271.
コントリビューションガイド
調査の方向性
Start by reviewing PR #2271 and the channel routing layer described in this issue, then trace how channel configuration, session routing, media downloads, buffering, and event emission currently connect. Define the shared policy and compatibility path across channel types, and verify that configuration makes public access explicit while rejected private and group events stop before downstream processing.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend, security
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100