Description
Harden parsing/validation for proxied requests: supported methods, URL safety, size limits where applicable.
Requirements and context
- Prevent SSRF classes of issues for operator-configured upstreams.
- Keep compatibility with existing clients.
Suggested execution
- Fork the repo and create a branch:
git checkout -b feature/gateway-proxy-validation
- Work in Callora-Backend (TypeScript / Express).
Primary paths
src/routes/proxyRoutes.ts, src/routes/gatewayRoutes.ts, src/types/gateway.ts
- Run
npm run lint, npm run typecheck, and npm test.
Deliverables
- Unit tests + any validation utilities.
- Security notes in PR.
Test and commit
- Add or extend unit and/or integration tests (
src/**/*.test.ts, tests/integration/**).
- Paste summarized test output in the PR; call out security or data-integrity notes.
Example commit message
fix(gateway): strengthen proxy request validation
Guidelines
- Tests should cover new behavior and important edge cases.
- Keep changes focused; follow existing patterns in the codebase.
- Timeframe: 96 hours from assignment unless agreed otherwise.
Description
Harden parsing/validation for proxied requests: supported methods, URL safety, size limits where applicable.
Requirements and context
Suggested execution
git checkout -b feature/gateway-proxy-validationPrimary paths
src/routes/proxyRoutes.ts,src/routes/gatewayRoutes.ts,src/types/gateway.tsnpm run lint,npm run typecheck, andnpm test.Deliverables
Test and commit
src/**/*.test.ts,tests/integration/**).Example commit message
Guidelines