]> git.kaiwu.me - haproxy.git/commit
MINOR: mux-h1: pass the profile's HTTP hardening checks into the h1c and h1s
authorWilly Tarreau <w@1wt.eu>
Thu, 29 Oct 2026 14:25:50 +0000 (15:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2026 21:45:32 +0000 (22:45 +0100)
commit61e258598ad66e3b2439cf96878cbdf1b495d4d1
treeadc458e590bea003f683d3eccce52373f5da62fd
parentf22a81c9fd01675832f3fb0f778561aa4a0da3f0
MINOR: mux-h1: pass the profile's HTTP hardening checks into the h1c and h1s

This adds the pointer to the chosen http_hardening profile to h1c, and
sets an http_hdng_chk on h1s. In h1c_init() we simply use the
connection's target to get the hardening profile. It is either a server,
or a listener, in which case we access its bind_conf's profile. If none
is found, we check if we have an untruted source address and set it to
untrusted, otherwise we fall back to trusted. Then we can preset the
http_hdng_chk rules in h1s from the mask of the profile pointed
to by h1c.

For now the returned information, if set, are not exploited.
src/mux_h1.c