trafficcontrol
trafficcontrol copied to clipboard
Add Forwarded HTTP header for TP proxy and logs
This Improvement request (usability, performance, tech debt, etc.) affects these Traffic Control components:
- Traffic Portal
- Traffic Ops
Current behavior:
It's not possible to know from TO access logs who the client was when it's passing through the TP proxy.
New behavior:
TP should set the X-Forwarded-For HTTP header, if not already set somehow, when operating as a proxy. TO should include this in its access logs additionally so you can find client sources that pass through TP or go direct to TO.
The standard header for containing that kind of information is Forwarded - described in RFC7239 Section 4 - and should probably be used instead of, or at least in addition to the non-standard X-Forwarded-For header.