Skip to content

Preserve X-Forwarded-Host in Ingress #7555

Open
@shaun-nx

Description

@shaun-nx

Is your feature request related to a problem? Please describe.
If I have an Ingress Resource deployed, and I send a request with X-Forwarded-Host header, the value in the header is not preserved

Describe the solution you'd like
The command below should return ‘bogus.example.com’:

$ curl --header "X-Forwarded-Host: bogus.example.com"  https://www.example.com
            "x-forwarded-host": "bogus.example.com",
            "host": "www.example.com"

Instead, it returns ‘www.example.com’ for both ‘x-forwarded-host’ and ‘Host’:

$ curl --header "X-Forwarded-Host: bogus.example.com"  https://www.example.com
            "x-forwarded-host": "www.example.com",
            "host": www.example.com

Describe alternatives you've considered
We would have to create a custom annotation, which is less than desirable

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ingressIssues related to changes in `kind: Ingress`proposalAn issue that proposes a feature requestready for refinementAn issue that was triaged and it is ready to be refined

    Projects

    Status

    Prioritized backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions