]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: acl: ensure that implicit table and proxies are valid
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Apr 2012 21:35:54 +0000 (23:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:12 +0000 (20:57 +0200)
commitfc2c1fd44907b2977c82bc71275bc484824f9a0b
treec73f51e9c92da6f7c0e0fa955ee27110ce538637
parentd28c353fc5d22ad774229e3a0f79420c96db6270
MAJOR: acl: ensure that implicit table and proxies are valid

A large number of ACLs make use of frontend, backend or table names in their
arguments, and fall back to the current proxy when no argument is passed. If
the expected capability is not available, the ACL silently fails at runtime.

Now we make all those names mandatory in the parser and we rely on
acl_find_targets() to replace the missing names with the holding proxy,
then to perform the appropriate tests, and to reject errors at parsing
time.

It is possible that some faulty configurations will get rejected from now
on, while they used to silently fail till now. This is the reason why this
change is marked as MAJOR.
src/acl.c
src/backend.c
src/frontend.c
src/session.c