hawtio / hawtio-online

Hawtio on Kubernetes/OpenShift
Apache License 2.0
24 stars 25 forks source link

Consider methods to consolidate headers in nginx configuration #440

Open phantomjinx opened 2 months ago

phantomjinx commented 2 months ago

To conform with security requirements, the number of add_header config lines is proliferating in the nginx config template. One of the reasons for the number is that adding a single header in a location will not merge with the parent's set of headers but overwrite them!

Therefore, all parent headers must be specified again in a child location if the latter has an additional add_header entry.

There are workarounds to this that could be considered: