]> git.kaiwu.me - haproxy.git/commit
MINOR: http: add the "set http-hardening" CLI command
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Oct 2026 16:43:44 +0000 (17:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Nov 2026 21:45:32 +0000 (22:45 +0100)
commit5ce1709d2cdbb026946b96d24fafb022e2f47b63
tree02b8f4feedcc57bf9c64896b51ae7ac49272fd46
parent5e8bfc379a36364f578e5807efa6464899147c5b
MINOR: http: add the "set http-hardening" CLI command

"set http-hardening <name> <option> {on|off}" enables or disables an option
of a profile at runtime, including the "all" keyword to change everything
at once, e.g. in an emergency. Options may also be specified by the bit
number that appears in -dKcfg or in "show http-hardening". The option is
looked up like in the section parser so that a suggestion is made on typos.
The profile is only read by the other threads, so it is updated while the
threads are isolated, which avoids any locking on the fast path. The
command is restricted to the admin level.
doc/management.txt
src/http.c