digitaldemocratic/dd-sso/docker/waf-modsecurity
Evilham 8f5de8af6a
[network] Fix handling of forwarded headers
This fixes several issues where services would see the internal IP of
the proxy and not that of the client.

It works by first unsetting any proxy-related headers that arrive from
the internet, then setting those as seen by HAProxy's entrypoint
frontend.
And finally making sure that neither WAF when enabled nor other
HAProxy backends touch these headers, while they are actually used by
the final services.

Services affected:	Netcloud, Keycloak, Moodle
2022-12-02 06:49:56 +01:00
..
rules [WAF] Consolidate proxies and documentation 2022-11-24 12:54:46 +01:00
000-default.conf [network] Fix handling of forwarded headers 2022-12-02 06:49:56 +01:00
Dockerfile [WAF] Consolidate proxies and documentation 2022-11-24 12:54:46 +01:00
crs-setup.conf [WAF] Consolidate proxies and documentation 2022-11-24 12:54:46 +01:00
docker-entrypoint.sh [WAF] Consolidate proxies and documentation 2022-11-24 12:54:46 +01:00
modsec_rules.conf [WAF] Consolidate proxies and documentation 2022-11-24 12:54:46 +01:00
rules_apps.conf [dd-waf] block external access to sensible URLs 2022-12-01 10:49:56 +00:00