Rate-limit MCP requests per principal, not per IP
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 32/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- go
- Domaine
- backend, infrastructure
Piste de recherche
Start with the rate-limit rule for /github/mcp in vercel.firewall.json and the polling defaults in faucet/events.go, then read docs/security.md for the per-login limits already enforced in process. Trace where the MCP request is authenticated and the superblink-events token's login or service client is resolved, since the new key has to come from there, and check what key the edge firewall can actually rate-limit on. Done means per-principal limiting on /github/mcp, a looser per-IP limit for unauthenticated and login traffic, and the two documented together.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
The MCP rate limit on /github/mcp is 120 requests a minute per IP (vercel.firewall.json). A Coder deployment sends every user's MCP traffic from one egress IP: polls, renewals and the superblink-events tool calls of every chat. One busy deployment can then get 429 for all of its users, while one heavy user behind their own IP is barely limited.
At the recommended nextPollMs of 5000 (faucet/events.go), 10 poll subscriptions fill the budget. At a 30 s client floor, about 60 do, before any tool call.
Proposal
Key the MCP rate limit on the authenticated principal (the superblink-events token's login or service client) instead of the IP, and keep a looser per-IP limit only for unauthenticated requests and the login endpoints. The per-login limits that superblink-events already enforces in process (5 concurrent polls, 10 waits, docs/security.md) fit this model.
Context
Coder Agents plans to subscribe to superblink-events events for chat automations: webhook delivery on public deployments, poll as the fallback. Many users of one deployment share the egress IP in both modes.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- Langage dominant
- Go
- Étoiles
- 1
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de coder/faucet
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 28/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
Toutes les issues de coder/faucet
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown idsPeut-être pris @0z5a l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
JuliusBrussee/caveman#1567 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug postgresql
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
Les mainteneurs répondent en général sous 1 jour