-
Notifications
You must be signed in to change notification settings - Fork 51
Gateway: proxy route validation for upstream URLs/methods #112
Copy link
Copy link
Open
Labels
Description
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, andnpm 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.
Reactions are currently unavailable