agentscope-ai / agentscope-ai/agentscope

feat(channel): add platform-agnostic inbound access control

未关闭
#2,621 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
31.6k
派生
3.5k
平均合并
1 天 16 小时
30 天内合并 PR
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
预计耗时
一周以上
活跃度
活跃
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。