]> git.kaiwu.me - haproxy.git/commit
MINOR: filters: Add per-side filter-sequence constraints
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2026 16:10:22 +0000 (18:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 9 Oct 2026 14:17:35 +0000 (16:17 +0200)
commite48917ae15b3395b12de1f6e861cbea5d0e2e40f
tree58e0dac938055718b6ea0a0e7a78c8aa3a3eee99
parent0c45668780d9f359d8c6c5139cabc4b4631649d0
MINOR: filters: Add per-side filter-sequence constraints

Add filter-sequence request/response entries using class[/id] references and
':before()' or ':after()' to place a instance before or after a class or
another instance. Store source locations and inherit entries from defaults
in configuration order.

Apply the constraints before flattening the class trees. Ignore absent
source instances and sources without the selected side, but validate
reference entities and require ids for ambiguous source instances. Check for
loops after each move and report the originating directive on failure.

Keep sequence parsing, application, inheritance and cleanup together so the
ordering feature can be reviewed independently of instance parsing and state
selection. The resulting order is not yet used for stream attachment.
include/haproxy/filters-t.h
include/haproxy/proxy-t.h
src/filters.c
src/proxy.c