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

Every kind of answer carries the security floor: pages, JSON, errors, redirects, static assets and the MCP, proven in one test #15763

shipped production is serving it opened this has it

Landed in pull #15777 · run

opened this

Intent: the floor in src/http/respond.ts (securityFloor) must hold on every response, not only the common ones.

Done:

Files: src/http/respond.ts, test/security-floor-kinds.test.ts.

Risks: keep the change to the named files; never raise the MCP ceilings (run bun test test/mcp-size.test.ts); add any new test file to scripts/gate.ts if the gate list still needs it. Suggested brief: scout (small, test-first).

commented

Reviewed pull #15777 at its head: ticked One test requests one route of each answer kind (HTML page, JSON API, 404, 405, 400 refusal, 302 redirect, immutable asset, MCP reply, SSE) and asserts Content-Security-Policy, X-Content-Type-Options and Referrer-Policy on each.; Any kind that lacks a header is fixed in the same pull, with the cause named.; The test lists its kinds in a table so a new kind is one row..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs