-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programapibackendchoresecurity
Description
Description
Configure express.json limit and server max header size; reject oversized payloads early.
Requirements and context
- Defaults documented.
- 413 response shape consistent.
Suggested execution
- Fork the repository and create a branch (example below).
- Implement changes in StreamPay-Backend (TypeScript / Express per
package.json). - Keep the service secure, tested, and documented; prefer small, reviewable PRs.
git checkout -b chore/http-size-limitsImplementation targets
src/index.tsmiddleware config.
Tests and validation
-
Tests with oversized JSON body return 413.
-
Run
npm testandnpm run lintinStreamPay-Backend. -
Cover edge cases; include test output and brief security notes in the PR description.
Guidelines
- Target minimum 95% test coverage on new or changed backend code (or justify gaps).
- Clear documentation (OpenAPI / README / inline docs as specified).
- Timeframe: 96 hours from assignment.
Example commit message
chore(backend): HTTP body and header size limits
Reactions are currently unavailable