I am trying to rewrite the nginx x-auth-request-email
header to a request string using the ingress controller annotation like this:
nginx.ingress.kubernetes.io/configuration-snippet: |
set $args user=$http_x_auth_request_email&$args;
Which translates to the same line in nginx.conf.
However, $http_x_auth_request_email
somehow resolves to an empty string in the request while I do observe the expected value in the x-auth-request-email header
.
Changing $http_x_auth_request_email
to a more standard header such as $http_host
works as expected.
Is there a way to make this work?
Here is the full config:
https://gist.github.com/roman-kouzmenko/e6f93f3bf5ca74c018f917a2d3fbf947#file-nginx-conf-L1198