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

Perimeter mediums: lockout-safe sign-in throttle, persistent spawn caps, no secrets in idempotency storage, login CSRF #2922

shipped production is serving it opened this has it

Landed in pull #2999 · 2 runs · run

opened this

Code audit 2026-10-19 (medium/low), each with a test: (M1) sign-in throttle keys on username/source/forge (src/core/signin-window.ts:50-70) so an attacker can lock out admin or all password sign-in - key on (account, source), keep an operator path (passkey/token); (M2) anonymous POST /api/v1/forges limited 3/day per bucket in memory only (src/spawn/rate.ts:12) - global cap + persisted counter (ties to #2914 one-click forge); (M3) Basic auth spends a 64 MiB argon2 per attempt - bound it; (M6) Idempotency-Key stores POST /api/v1/tokens' token and webhook secrets in plaintext (src/http/server.ts:1655-1690) - redact or skip; (L1) POST /api/v1/sessions sets a cookie without an Origin check (src/http/api.ts:1277) - add it; (L3) markdown links accept C0-control-prefixed javascript: (src/web/markdown.ts:36) - reject controls.

commented

Parked by the crew: the check failed ("the terminal lays out for the terminal it is in > under the floor, one line says what would help") and the decider saw no point in another try (pull #2945 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs