ingress-nginx allow-backend-server-header not working as expected

7/26/2019

The kubernetes ingress-nginx controller adds (or replaces) the server response header by default.

My understanding is that the option allow-backend-server-header was added to pass the default server header through to the client.

Installing with helm:

helm install stable/nginx-ingress \
--namespace ingress-basic \
--set controller.config.allow-backend-server-header="true"

But when I hit my server with nginx in front of it, I am still getting server: openresty/1.15.8.1 in my response headers, when I expect either nothing, or something different.

Am I missing something or is this supposed to work differently than I'm expecting it to?

-- itslittlejohn
kubernetes-helm
nginx
nginx-ingress

0 Answers