agentscope-ai / agentscope-ai/agentscope

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

Ouverte
#2,621 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
31.6k
Forks
3.5k
Merge moyen
1 j 16 h
PR mergées (30 j)
103

Description

## 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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
backend, security
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.