Skip to content

Expose PROXY protocol headers for HTTP Connection Manager #15463

Closed

Description

@dghermanNS1

Title: Expose PROXY protocol headers for HCM too, not just tcp_proxy

Description:

Initial conversation in the envoy-users Google Group: https://groups.google.com/g/envoy-users/c/gO1XPQknxx0/m/TDCrRqg6AgAJ

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!

Activity

  1. added
    enhancement
    triage
    on Mar 12, 2021
  2. added and removed
    enhancement
    triage
    on Mar 12, 2021
  3. mattklein123 commented on Mar 12, 2021

    @mattklein123
    Member

    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.

  4. mburtless commented on Mar 15, 2021

    @mburtless

    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).

  5. mattklein123 commented on Mar 15, 2021

    @mattklein123
    Member

    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.

  6. github-actions commented on Apr 14, 2021

    @github-actions

    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.

  7. added
    stale
    on Apr 14, 2021
  8. github-actions commented on Apr 22, 2021

    @github-actions

    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.

  9. mburtless commented on Apr 22, 2021

    @mburtless

    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 !

  10. wez470 commented on May 11, 2021

    @wez470
    Contributor

    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

  11. removed
    stale
    on May 11, 2021
  12. added a commit that references this issue on Jun 1, 2021
    dcee6e2
  13. added a commit that references this issue on Sep 30, 2021
    7106a49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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