You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose PROXY protocol headers for HTTP Connection Manager #15463
We run Envoy on the edge, with the Downstream listener using HCM. The Upstream cluster nodes use PROXY protocol, however Envoy does not propagate to the upstreams the DOWNSTREAM_REMOTE_ADDRESS of the client - it sends Envoy's own IP instead.
Would like to have Envoy send the DOWNSTREAM_REMOTE_ADDRESS in the Source Address proxy headers, since we consume that down the stack.
Thank you!
Per my comment in email, PROXY proto doesn't often make sense for L7/HTTP traffic, as you will need to force each unique downstream client to have a dedicated connection pool. Is this really what you want? Generally XFF is a better solution.
Just to clarify, is this comment specific to Envoy's implementation? Can you provide more detail why each unique downstream client requires a dedicated connection pool in order to use PROXY proto?
I thought one of the values provided by PROXY proto is that it's protocol agnostic and can work natively with L7 protocols. There are certainly a lot of solutions out there that support this use case (but maybe theres some unadvertised perform impact).
PROXY proto is per connection, not per request/stream. Thus, for it to make any sense upstream connections need to be dedicated to downstream clients. This is possible (Envoy has ways of doing this) but it's not typically what you want: you want to use XFF to learn the IP/port info on a per stream basis.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Just wanted to follow up here for future readers, we ended up using http headers for our use case. Thanks for pointing us in the right direction @mattklein123 !
Hey 👋, we (DigitalOcean) have some customers that we would like to move to Envoy from HAProxy that expect proxy protocol in http mode (we need to show them http related statistics). We'd need support for proxy protocol in http connection manager to accomplish this. I'd like to re-open this issue and pick up work to support this.
I also briefly discussed this in the community meeting today and the consensus was that it seemed generally fine to add if we wanted to pick it up.
Activity
mattklein123 commentedon Mar 12, 2021
Per my comment in email, PROXY proto doesn't often make sense for L7/HTTP traffic, as you will need to force each unique downstream client to have a dedicated connection pool. Is this really what you want? Generally XFF is a better solution.
mburtless commentedon Mar 15, 2021
Just to clarify, is this comment specific to Envoy's implementation? Can you provide more detail why each unique downstream client requires a dedicated connection pool in order to use PROXY proto?
I thought one of the values provided by PROXY proto is that it's protocol agnostic and can work natively with L7 protocols. There are certainly a lot of solutions out there that support this use case (but maybe theres some unadvertised perform impact).
mattklein123 commentedon Mar 15, 2021
PROXY proto is per connection, not per request/stream. Thus, for it to make any sense upstream connections need to be dedicated to downstream clients. This is possible (Envoy has ways of doing this) but it's not typically what you want: you want to use XFF to learn the IP/port info on a per stream basis.
github-actions commentedon Apr 14, 2021
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon Apr 22, 2021
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
mburtless commentedon Apr 22, 2021
Just wanted to follow up here for future readers, we ended up using http headers for our use case. Thanks for pointing us in the right direction @mattklein123 !
wez470 commentedon May 11, 2021
Hey 👋, we (DigitalOcean) have some customers that we would like to move to Envoy from HAProxy that expect proxy protocol in http mode (we need to show them http related statistics). We'd need support for proxy protocol in http connection manager to accomplish this. I'd like to re-open this issue and pick up work to support this.
I also briefly discussed this in the community meeting today and the consensus was that it seemed generally fine to add if we wanted to pick it up.
cc @alyssawilk
proxy protocol: Add http support. (#16598)
proxy protocol: Add http support. (envoyproxy#16598)