<div dir="ltr">That&#39;s very interesting because I don&#39;t believe Apiman is stripping out any headers from the request (at any point).  If that&#39;s happening I can&#39;t think of what the root cause might be.  IIRC we just copy all request headers from the inbound HttpServletRequest into the ApiRequest bean.<div><br></div><div>GitHub is currently down so I can&#39;t send a link to the relevant code.... </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 18, 2017 at 11:16 PM, Stephen Henrie <span dir="ltr">&lt;<a href="mailto:stephen@saasindustries.com" target="_blank">stephen@saasindustries.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><br></div>I have Apiman running in an openshift environment, which is essentially a similar configuration to running in kubernetes. Each container/pod is always receiving http/s requests through an HA Proxy server, so that the x-forwarded-* set of headers get added to each request by the proxy server. <br><br>Unfortunately, it appears that the headers which are provided in the ApiRequet bean when the policy chain processor doApply() method is called does not include these proxy related headers.  This means that the standard policies for the IP white and black listing policies do not work when the apiman gateway is behind a proxy server.  The request.getRemoteAddr() method returns the ip address to the proxy server, 
so there is no way to get the ip address of the originator since the x-forwarded-for header ( and related headers ) are not found.<br><br></div>Has anyone else experienced this?  If so, is this by design?<br><br></div>Thanks!<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Stephen<br><br></font></span></div>
<br>______________________________<wbr>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>