Skip to content

Support new 'Forwarded' standard (RFC7239) #1071

Closed

Description

@PSUdaemon

This is a feature that will eventually displace X-Forwarded-For and friends. We should make a config option for this and default it to off until 8.0.0 (unless this gets backported for 7.0.0.

https://tools.ietf.org/html/rfc7239

Activity

  1. added this to the 7.1.0 milestone on Oct 3, 2016
  2. zwoop commented on Oct 3, 2016

    @zwoop
    Contributor

    We should make the old behavior optional to enable as well, there's a significant number of backends (origins) that do not support RFC7239 yet but need the old semantics.

  3. PSUdaemon commented on Oct 3, 2016

    @PSUdaemon
    ContributorAuthor

    I thought the old behavior was already optional.

    {RECT_CONFIG, "proxy.config.http.insert_squid_x_forwarded_for", RECD_INT, "1", RECU_DYNAMIC, RR_NULL, RECC_NULL, NULL, RECA_NULL}

  4. zwoop commented on Oct 3, 2016

    @zwoop
    Contributor

    Right, but your comments say "replaces". I think we should keep both, indefinitely.

  5. PSUdaemon commented on Oct 3, 2016

    @PSUdaemon
    ContributorAuthor

    Fair enough, description fixed.

  6. modified the milestones: 7.1.0, on Jan 4, 2017
  7. modified the milestone: on Jan 8, 2017
  8. modified the milestones: , 8.0.0 on Apr 25, 2017
  9. SolidWallOfCode commented on Jun 12, 2017

    @SolidWallOfCode
    Member

    I have some one here at Y! who will be working on this.

  10. ywkaras commented on Jun 28, 2017

    @ywkaras

    To records.config I'm thinking to add:

    CONFIG proxy.config.http.insert_forwarded STRING {value}

    {value} would either be 'none' (the default) or list of options, separated by '|' (pipe).

    options:

    for
    by={by-value}
    proto
    host
    connection

    These would enable variables in the header. "connection" is a non-standard variable, which will contain the most verbose protocol specifier from the "Via:" header.

    {by-value} can be "ip", "unknown", "servername" or "uuid". The UUID would have a prepended _ (underscore) to make it a legitimate obfuscated identifier per RFC 7239.

  11. SolidWallOfCode commented on Sep 25, 2017

    @SolidWallOfCode
    Member

    I'd like to add to "connection" the ability to specific some levels of detail, e.g.
    connection=full
    connection=std
    connection=compact
    with the same meaning as for the VIA header.

  12. ywkaras commented on Sep 25, 2017

    @ywkaras

    It's already in there and ready to be savaged.

  13. bryancall commented on May 10, 2018

    @bryancall
    Contributor

    I believe this has been fully completed. Please reopen if need be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions