Skip to content

ConfigMap proxy-hide-headers config only add directive to Ingresses #1298

@benjamin-bergia

Description

@benjamin-bergia

Describe the bug
When adding the proxy-hide-headers key to the ingress controller configmap, the proxy_hide_header statement is added to the config files generated by all the Ingresses but not to the config files generated by VirtualServers

To Reproduce

  1. Add proxy-hide-headers: example to the nginx-config configmap
  2. Create bunch of Ingresses and VSs
  3. Open a shell on one of the nginx pods and grep -R proxy_hide_header /etc/nginx/
  4. Check if the directive is found in any of the vs_*

Expected behavior
I would expect the directive to be added to all the config including the VSs

Your environment

  • Version of the Ingress Controller : nginx/nginx-ingress:1.7.2
  • Version of Kubernetes: 1.15
  • Kubernetes platform: Openstack magnum
  • Using NGINX

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalAn issue that proposes a feature requeststalePull requests/issues with no activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions