security: add 100KB body size limit to prevent memory exhaustion #60
No reviewers
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot!60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/body-size-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
bodyLimitmiddleware (100KB max) as the first middleware in the chain, rejecting oversized payloads with 413 before any parsing occurs{ "error": "Payload Too Large — ..." }matching existing error formatTest plan
bun test packages/api/tests/e2e/body-limit.test.tsagainst running API/generate/privacy-policyreturns 413{ error: "..." }format🤖 Generated with Claude Code
⚠️ No Test Suite Detected
Commit:
0bde8afdNo
testscript found inpackage.json. Add a test script to enable automated testing.