Skip to content

x-forwarded-proto gets overwritten when use_remote_address=true #4496

@5long

Description

@5long

Bug Template

Title: x-forwarded-proto gets overwritten when use_remote_address=true

Description:
When Envoy is deployed behind a trusted edge load balancer (in my case, it's provided by cloud vendor Aliyun.com), and correspondingly set xff_num_trusted_hops greater than 0, it should forward header x-forwarded-proto from downstream to upstream without modification. Even with use_remote_address set to true.

Repro steps:

See: https://github.com/5long/envoy-forwarded-proto with a working Docker Stack config to reproduce it.

Config:
It's included in the git repo above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions