feat(security): add configurable per-route body size limits (#812) - #1150
Open
alexitsejames-cpu wants to merge 1 commit into
Open
alexitsejames-cpu wants to merge 1 commit into
alexitsejames-cpu wants to merge 1 commit into
Conversation
|
@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
force-pushed
the
feat/per-route-body-size-limits
branch
from
August 31, 2026 08:47
ff5cd4b to
6963e75
Compare
|
|
||
| beforeEach(() => { | ||
| storeFile = path.join(os.tmpdir(), `bounty-body-limit-${randomUUID()}.json`); | ||
| fs.writeFileSync(storeFile, '[]', 'utf8'); |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.