]> git.kaiwu.me - haproxy.git/commit
MINOR: http/hardening: add a new more protective "basic-web" profile
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Nov 2026 17:32:57 +0000 (18:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Nov 2026 18:31:09 +0000 (19:31 +0100)
commit4d7f7b5c6804b3e451cfdbde5a94615376a3a50e
tree092da69553f99e9768b7a7b74347e7e224aebd9c
parentffb76d3535c40b6b80c9ca97c3a6a84e576523ba
MINOR: http/hardening: add a new more protective "basic-web" profile

This profile enables all the protections that are sufficient for basic
web serving to browsers, i.e. no payload with methods not meant to
support one, no tunnels, no unknown upgrade tokens, no transfer-encoding
in requests, no unregistered headers, no trailers. It should be sufficient
for the vast majority of web sites and can trivially be enabled like this
on public-facing connections:

    http-hardening untrusted from basic-web

http_hardening_profiles.vtc was updated accordingly since "basic-web" now
appears in the "show http-hardening" listings, as implicit when not
declared.
doc/configuration.txt
include/haproxy/http-t.h
reg-tests/http-messaging/http_hardening_profiles.vtc
src/http.c