<p>Using <code>nginx-ingress</code>, is it possible to enable basic authentication only for a given path (or enable it for all paths and exclude some paths from it)? </p>

<p><a href="https://kubernetes.github.io/ingress-nginx/examples/auth/basic/" rel="nofollow noreferrer">The documentation</a> only shows how to protect all paths.</p>

<p>You could write a seperate ingress rule for your given path such that only this path is protected by basic authentication.</p>

<p>See <a href="https://stackoverflow.com/questions/56444440/how-to-whitelist-only-one-path-in-kubernetes-nginx-ingress-controller/56453375#56453375">this answer</a> for examples.</p>
