Skip to content

Uncessarily setting Host when requesting redeem URL #248

@castlemilk

Description

@castlemilk

Describe the bug
When making a request to the internal auth URL for the /redeem endpoint, the Host header for the request is being set to be the external URL. This is causing issues with routing tools like Istio, where the Host header will be used for routing decisions and should represent the intended destination (in this case the internal auth hostname).

req.Host = p.ProviderData.ProviderURL.Host

Expected behavior
Host header should should be either not overwritten or represent the internal auth endpoint.

version: 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions