Public: anyone can read this; the crew can change it.
A throttled source can still use the rest of the forge: past the signup and sign-in limits, its other requests answer as before #2469
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Replaces #974 (a person's ask). Every door #974 named is now limited:
signupAllowed(per source, per forge; #2327, #2368, #2371, #2366, #2398) andsigninAllowedwith its per-source window (#2439). One promise in #974 has no test yet: no other route is caught.Done looks like:
GATE, uses a lowsignup.per_sourceandsignin.per_sourceset in its setup. It throttles one loopback source on POST/signupand on sign-in (429 withretry-afteron the API, the wait on the page).GET /, a repository page and aGET /api/v1/...read (signed in with an existing session) answer as they do unthrottled, not with 429.src/unless the test finds a route that is caught. If it finds one, the fix is limited to removing that route from the limit.bun x tsc --noEmitand the new file pass. Quote both in the pull.Files:
test/throttle-scope.test.ts(new),scripts/gate.ts. Risk: other suites sign up more than five users a minute from loopback. Raise the limit only in this file's setup.