Skip to content

Gateway: proxy route validation for upstream URLs/methods #112

@greatest0fallt1me

Description

@greatest0fallt1me

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.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions