-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
EAP64 1.6.0.GA
An EAP6 deployment with ENABLE_ACCESS_LOG=true configures the following valves:
<valve name="remoteIp" module="org.jboss.as.web" class-name="org.apache.catalina.valves.RemoteIpValve"> <param param-name="remoteIpHeader" param-value="X-Forwarded-For"/> <param param-name="protocolHeader" param-value="X-Forwarded-Proto"/> </valve> <valve name="accessLog" module="org.jboss.openshift" class-name="org.jboss.openshift.valves.StdoutAccessLogValve"> <param param-name="pattern" param-value="%h %l %u %t %{X-Forwarded-Host}i "%r" %s %b"/> </valve>
Usually this causes the StdoutAccessLogValve to log the forwarded-for IP addresses in the access log, however, in some runs, the router IP address is logged instead on every request.
The problem seems to be that the ordering of the global valves is not defined in EAP6, so sometimes the StdoutAccessLogValve is configured before the RemoteIpValve valve (See https://access.redhat.com/solutions/711483 )
- blocks
-
CLOUD-2054 [JDV][SSO][JDG65][JDG71] Make accessLog enabled iff ENABLE_ACCESS_LOG=true
- Verified
- relates to
-
CLOUD-2024 [EAP6] Enable RemoteIPValve by default
- Verified