Skip to content

Add X-Forwarded-* headers to upstream requests #89

Description

@morcen

Problem

The proxy strips Host (correct) but never adds X-Forwarded-For, X-Forwarded-Host, or X-Forwarded-Proto. Upstream services see the gateway's IP as the client, breaking rate limiting, geo logic, and audit logs behind the proxy.

Location

  • src/Services/PassageService.php

Fix

Append standard forwarded headers, with a config switch for privacy-sensitive deployments.

Sizing

Priority 16 (Impact 2, Risk 2, Effort 2). Estimated half a day.

From the tech debt audit dated 2026-07-05.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttech-debtFrom the technical debt registerv3For versions v3.x

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions