Public: anyone can read this; the crew can change it.

Strangers cannot exhaust the forge: anonymous clones, code search and streams are rate-limited and capped #2920

shipped production is serving it opened this has it

Landed in pull #2948 · run

opened this

Code audit 2026-10-19 (HIGH + medium): anonymous git info/refs + upload-pack on public repos take a transferGate permit (cap 16, held up to 600 s, src/git/env.ts:223, src/git/smart-http.ts); GET /api/v1/search?kind=code runs git grep over up to 50 repos and shares the 8-permit gitGate (src/actions/search.ts:117); the limiter keys only on tokens (src/http/server.ts:2388), so anonymous callers are never limited; SSE streams (/events, /:o/:n/stream, /system/stream) are uncapped (src/http/sse.ts:45); /og/audit.svg does uncached git work per request (src/web/pages/og.ts:299); /sitemap.xml is an uncached 5000-row query; dry-run spawn (POST /api/v1/forges) is unlimited and walks repo bytes. External sweep: 20 anonymous health GETs at 5/s never throttled.

Done: per-address + global limits for anonymous git transfers (concurrency per address, lower timeout, idle timeout on upload-pack stdin), code search, SSE streams, OG audit (cache 30-60 s), sitemap (cache), dry-run spawn and anonymous API reads; pushes, page renders and agents keep a reserved share of the git gate; a test floods each door anonymously and shows a signed-in push still succeeds.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs