]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: Reject filter-* directives in anonymous defaults
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2026 16:24:00 +0000 (18:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:35 +0000 (16:17 +0200)
commitf967e3756f7eec67945a9443f0f4f80df6ccbd2b
tree4211c0555333b83555089eeb0a13296fd5a208a8
parent649eaa3db4d6bba403ebeafa29689eb0faa0658e
MINOR: filters: Reject filter-* directives in anonymous defaults

Require a named defaults section for filter-config, filter-sequence and
filter-enable/filter-disable, consistently with the restriction on TCP/HTTP
rules. Reject these directives before parsing their arguments or recording
configuration entries. Named defaults and regular proxies remain supported.

Add regression coverage for each rejected directive and for valid usage in
named defaults, frontends and backends, including inherited instances.
reg-tests/filters/defaults.vtc [new file with mode: 0644]
src/filters.c