Bound inbound request bodies and redact rejected input #328

Merged
rockachopa merged 1 commits from timmy/327-bound-inbound-request-bodies into main 2026-08-08 18:36:25 +00:00
Member

Closes #327

What changed

  • reject declared and streamed oversized API mutations before JSON parsing
  • use a 16 KiB sign-in cap and 64 KiB general API mutation cap
  • redact submitted input and validation context from 422 responses
  • retain no-store and browser-security response boundaries

Verification

  • RED: 4 focused behavioral tests failed before implementation
  • GREEN: python3 -m pytest tests/test_request_boundary.py -q (5 passed)
  • Full suite: python3 -m pytest -q (597 passed)
Closes #327 ## What changed - reject declared and streamed oversized API mutations before JSON parsing - use a 16 KiB sign-in cap and 64 KiB general API mutation cap - redact submitted input and validation context from 422 responses - retain no-store and browser-security response boundaries ## Verification - RED: 4 focused behavioral tests failed before implementation - GREEN: `python3 -m pytest tests/test_request_boundary.py -q` (5 passed) - Full suite: `python3 -m pytest -q` (597 passed)
rockachopa added 1 commit 2026-08-08 18:35:17 +00:00
security: bound and redact inbound requests (#327)
All checks were successful
CI / lint (pull_request) Successful in 33s
CI / build-frontend (pull_request) Successful in 5s
c9c5939f0a
rockachopa merged commit 41eaf51953 into main 2026-08-08 18:36:25 +00:00
rockachopa deleted branch timmy/327-bound-inbound-request-bodies 2026-08-08 18:36:25 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#328
No description provided.