]> git.kaiwu.me - haproxy.git/commit
MINOR: http: introduce the notion of http-hardening flags and sections
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Oct 2026 16:07:13 +0000 (17:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2026 21:45:32 +0000 (22:45 +0100)
commitcd8f136da1fc0dc4cf7d537a65b55fc22255719d
tree088451ec84005da9bbe1222cc60bca982781e6f1
parente8399b5fd5628b53d4c2e138c7d67ac00b50e169
MINOR: http: introduce the notion of http-hardening flags and sections

The goal here will be to declare http-hardening sections which enumerate
controls that can be relaxed or enforced. The control names will be stored
in a table just like the http-violations, associated with a mask. They
will possibly permit to have names for sets that cover multiple bits. For
now only 32 bits are planned, covering both front/back and req/resp. This
should be sufficient for a start and we'll see once the limit is reached
what's the best way to proceed.

One difficulty here is to reason in terms of what is not permitted.
So the way to think about it is to associate each verb to an action
to be performed, such as reject-xxx, delete-xxx, adjust-xxx, block-xxx.
include/haproxy/http-t.h
include/haproxy/http.h
src/http.c