trafficcontrol icon indicating copy to clipboard operation
trafficcontrol copied to clipboard

Add Forwarded HTTP header for TP proxy and logs

Open jhg03a opened this issue 2 years ago • 1 comments

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.

jhg03a avatar Jan 12 '23 23:01 jhg03a

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.

ocket8888 avatar Jan 13 '23 02:01 ocket8888