I am using Nginx Ingress Controller and i using external Authentication In the nginx annotation of the protected backend service I specify the url or the external service (oathkeeper)
<!-- begin snippet: js hide: false console: true babel: false --><!-- language: lang-html --> nginx.ingress.kubernetes.io/auth-url: "http://oathkeeper.auth.svc.cluster.local:4456/decisions/managers/"
<!-- end snippet -->My problem is that I need to pass the host of my bain the header of the request to the above url i have specified
How can i do that ?
I am trying with snippets like this but its not passing the host in header
<!-- begin snippet: js hide: false console: true babel: false --><!-- language: lang-html -->nginx.ingress.kubernetes.io/auth-snippet: |
proxy_set_header Host backend-host;
<!-- end snippet -->