Verified Commit 059e4ab2 authored by Ian Baum's avatar Ian Baum 💬

Add default Referrer-Policy to nginx-ingress headers

Adding with a default value of strict-origin-when-cross-origin to match
omnibus
parent ff6e9a64
Pipeline #59022759 failed with stages
in 2 minutes and 33 seconds
---
title: Add default Referrer-Policy to nginx-ingress headers
merge_request: 1266
author:
type: changed
......@@ -136,7 +136,7 @@ Parameter | Description | Default
`controller.metrics.service.type` | type of Prometheus metrics service to create | `ClusterIP`
`controller.customTemplate.configMapName` | configMap containing a custom nginx template | `""`
`controller.customTemplate.configMapKey` | configMap key containing the nginx template | `""`
`controller.headers` | configMap key:value pairs containing the [custom headers](https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-headers) for Nginx | `{}`
`controller.headers` | configMap key:value pairs containing the [custom headers](https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-headers) for Nginx | `{Referrer-Policy: strict-origin-when-cross-origin}`
`controller.updateStrategy` | allows setting of RollingUpdate strategy | `{}`
`defaultBackend.enabled` | If false, controller.defaultBackendService must be provided | `true`
`defaultBackend.name` | name of the default backend component | `default-backend`
......
......@@ -16,7 +16,8 @@ controller:
config: {}
# Will add custom header to Nginx https://github.com/kubernetes/ingress-nginx/tree/master/docs/examples/customization/custom-headers
headers: {}
headers:
Referrer-Policy: strict-origin-when-cross-origin
# Required for use with CNI based kubernetes installations (such as ones set up by kubeadm),
# since CNI and hostport don't mix yet. Can be deprecated once https://github.com/kubernetes/kubernetes/issues/23920
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment