<p>Hello I tried looking at the auth options in the annotations for kubernetes traefik ingress. I couldn't find anything where I could configure Forward Authentication as documented here: <a href="https://docs.traefik.io/configuration/entrypoints/#forward-authentication" rel="noreferrer">https://docs.traefik.io/configuration/entrypoints/#forward-authentication</a></p>

<p>I would like to be able to configure forward authentication per ingress resource. This is possible in the nginx ingress controller.</p>

<p>Is that supported currently?</p>

Benjamin Hammer Nørgaard
<p>According to the Traefik documentation that feature will be available in version 1.7 of Traefik (currently a release candidate).</p>

<p><a href="https://docs.traefik.io/v1.7/configuration/backends/kubernetes/#authentication" rel="noreferrer">Here is a link to the authentication documentation</a></p>

<p>My guess is that you will need to add the following 2 annotations:</p>

<pre><code>ingress.kubernetes.io/auth-type: forward
ingress.kubernetes.io/auth-url: https://example.com
</code></pre>

<p>and probably also the following annotation with the corresponding header fields your auth service returns as value:</p>

<pre><code>ingress.kubernetes.io/auth-response-headers: X-Auth-User, X-Secret
</code></pre>
