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
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.
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.
{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.
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.
Activity
zwoop commentedon Oct 3, 2016
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.
PSUdaemon commentedon Oct 3, 2016
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}zwoop commentedon Oct 3, 2016
Right, but your comments say "replaces". I think we should keep both, indefinitely.
PSUdaemon commentedon Oct 3, 2016
Fair enough, description fixed.
SolidWallOfCode commentedon Jun 12, 2017
I have some one here at Y! who will be working on this.
ywkaras commentedon Jun 28, 2017
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.
SolidWallOfCode commentedon Sep 25, 2017
I'd like to add to "connection" the ability to specific some levels of detail, e.g.
connection=fullconnection=stdconnection=compactwith the same meaning as for the VIA header.
ywkaras commentedon Sep 25, 2017
It's already in there and ready to be savaged.
bryancall commentedon May 10, 2018
I believe this has been fully completed. Please reopen if need be.
Support CLIENT_HELLO split across multiple packets (apache#1071)