<div dir="auto">Nice folks.<div dir="auto">I&#39;ll try do it.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 9, 2018 12:17 PM, &quot;Eric Wittmann&quot; &lt;<a href="mailto:eric.wittmann@redhat.com">eric.wittmann@redhat.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Note that, with just a little bit of java expertise, you can easily create your own policy plugin.  The documentation for doing so is quite good (IMO):<div><br></div><div><a href="http://www.apiman.io/latest/developer-guide.html#_plugins" target="_blank">http://www.apiman.io/latest/<wbr>developer-guide.html#_plugins</a><br></div><div><br></div><div>Also there are plenty of examples here:</div><div><br></div><div><a href="https://github.com/apiman/apiman-plugins" target="_blank">https://github.com/apiman/<wbr>apiman-plugins</a><br></div><div><br></div><div>You could start with the no-op policy (is a valid, working policy plugin but doesn&#39;t do anything) and the simple-header-policy (does things with headers).</div><div><br></div><div>-Eric</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 9, 2018 at 8:55 AM, Marc Savy <span dir="ltr">&lt;<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The simple header policy can&#39;t do that directly as I recall. As Eric<br>
suggests you should write your own custom policy to achieve this. It<br>
should be really simple -- probably just a few lines!<br>
<div class="m_6943625019263650051HOEnZb"><div class="m_6943625019263650051h5"><br>
On 7 March 2018 at 18:56, Eric Wittmann &lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt; wrote:<br>
&gt; I can&#39;t remember if there is a policy for this already.  If not, it&#39;s fairly<br>
&gt; trivial to write a custom policy.  Thoughts Marc?<br>
&gt;<br>
&gt; On Wed, Mar 7, 2018 at 10:01 AM, Renato Barros &lt;<a href="mailto:renalexster@gmail.com" target="_blank">renalexster@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi folks,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;d like to know if there is some way to add the Client remote IP on my<br>
&gt;&gt; Request Header from API Man.<br>
&gt;&gt;<br>
&gt;&gt; I need to add a Simple Header Policy with a &quot;X-Forwarded-For&quot; containing<br>
&gt;&gt; the client remote ip.<br>
&gt;&gt;<br>
&gt;&gt; My backend is getting the APIMan IP as remote client, but what I need get<br>
&gt;&gt; to client IP.<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Apiman-user mailing list<br>
&gt;&gt; <a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/apiman-user</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Apiman-user mailing list<br>
&gt; <a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/apiman-user</a><br>
&gt;<br>
</div></div></blockquote></div><br></div>
</blockquote></div></div>