Rate-limit MCP requests per principal, not per IP
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 32/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- backend, infrastructure
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/faucet
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown idsCó thể đã có người làm @0z5a đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
JuliusBrussee/caveman#1567 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug postgresql
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày