]> git.kaiwu.me - haproxy.git/commit
MINOR: http-rules: accept "no-warn" before the condition of access control rules
authorWilly Tarreau <w@1wt.eu>
Wed, 11 Nov 2026 11:05:02 +0000 (13:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Nov 2026 17:12:23 +0000 (18:12 +0100)
commit3cb0f18eddf54b7142669e64edeaaa03f7e6cb45
treee02c152697f0e0362e2b89fb9df022484b9f0212
parent5920579d51245c0524edc8450fe03c21934047e4
MINOR: http-rules: accept "no-warn" before the condition of access control rules

The http-request actions marked with KWF_ACCESS_CTRL (auth, deny, reject,
silent-drop, tarpit) now accept the "no-warn" keyword placed right before
"if" or "unless". It is removed from the arguments before the action's
parser is called so that the parsers don't have to know about it. It is
only looked up for these actions so that it cannot be confused with an
argument value of another action (e.g. a header value).

It has no effect for now. It will be used to exclude a rule from the
upcoming report of conditions relying on aliasable contents. It comes
separately so that it can be backported to stable versions along with
the previous commit (KWF_ACCESS_CTRL), allowing configurations which
use it to still parse after a rollback, and so that the reg-tests can
be updated before the report is introduced.
src/http_rules.c