Red Hat Bugzilla – Bug 1290643
Wrong Forwarded Header format
Last modified: 2016-05-11 18:52:53 EDT
Description of problem:
Customer JAVA application is based on Spring Hateoas .The HTTP "Forwarded" Header sent by the Router component does not follow the RFC . It uses "," to separate elements instead of ";". So it does not work with customer's JAVA application either.
Header von Openshift Router:
According to RFC  it should be:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. oc rsh ROUTER-POD
2. vi /var/lib/haproxy/conf/haproxy.config
3. located "http-request set-header Forwarded for=%[src],host=%[req.hdr(host)],proto=%[req
http-request set-header Forwarded for=%[src],host=%[req.hdr(host)],proto=%[req
http-request set-header Forwarded for=%[src];host=%[req.hdr(host)];proto=%[req
Fixed with PR: https://github.com/openshift/origin/pull/6327
PR merged into origin.
Already verified this bug on origin, will move 'verified' this bug once it is merged to OSE.
This bug has been fix in OSE with router image:
rcm-img-docker01.build.eng.bos.redhat.com:5001/openshift3/ose-haproxy-router v22.214.171.124 fac972949d0e 2 days ago 412.7 MB
]# curl header-test-insecure-zzhao1.1222-i7n.qe.rhcloud.com
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.