Skip to content

feat(security): add configurable per-route body size limits (#812) - #1150

Open
alexitsejames-cpu wants to merge 1 commit into
ritik4ever:mainfrom
alexitsejames-cpu:feat/per-route-body-size-limits
Open

alexitsejames-cpu wants to merge 1 commit into
ritik4ever:mainfrom
alexitsejames-cpu:feat/per-route-body-size-limits

Conversation

@alexitsejames-cpu

Copy link
Copy Markdown

Closes #456

Recomputes the content hash after decryption and refuses to return plaintext on mismatch. Fixes bundle unlock silently passing when contentHash is absent. Adds PromptIntegrityViolation webhook dispatch to the bundle path, and adds negative tests for tampered ciphertext in both unlock endpoints.

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@alexatsejames-alt is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

…er#812)

- Tighten global default from 32kb to 16kb (DEFAULT_BODY_LIMIT)

- Add 100kb override on PATCH /api/bounties/:id/notes (NOTES_BODY_LIMIT)

- 413 handler returns the route-specific limit in the response

- Tests: 413 on oversized default route, 201 on normal, 413 on oversized notes route, pass-through on 50kb notes
@alexitsejames-cpu
alexitsejames-cpu force-pushed the feat/per-route-body-size-limits branch from ff5cd4b to 6963e75 Compare August 31, 2026 08:47

beforeEach(() => {
storeFile = path.join(os.tmpdir(), `bounty-body-limit-${randomUUID()}.json`);
fs.writeFileSync(storeFile, '[]', 'utf8');

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants