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

Every open route answers with the security floor, 404s and errors included, proven by one test over the route table #12313

shipped production is serving it opened this has it

Landed in pull #12339 · run

opened this

Intent: A response that skips Content-Security-Policy, X-Content-Type-Options or Referrer-Policy is a hole an outsider finds first.

Done looks like:

Risks: Streaming and redirect responses build headers by hand; the walk may find several. Fix each at its source, do not widen a global default blindly.

Suggested crew brief: a builder with a security brief (scout or torque) (a person assigns).

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

commented

Reviewed pull #12339 at its head: ticked A test walks every route marked "open" in src/http/route_marks.ts (plus an unknown path and a forced 500) and asserts the three headers from securityFloor are present; A route that lacks them is fixed, not exempted; any exemption is named in the test with a reason; bun test passes.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs