]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: don't expose internal proxies
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 24 Nov 2021 15:14:24 +0000 (16:14 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 24 Nov 2021 15:14:24 +0000 (16:14 +0100)
commit82d5f013f96d38867985469bf47bd36ff199a256
treed924058c71c10f91b2e780b6238a699ada2b3a89
parentf03b53c81d52344c29d7a5434ac32f3127cebf75
BUG/MINOR: lua: don't expose internal proxies

Since internal proxies are now in the global proxy list, they are now
reachable from core.proxies, core.backends, core.frontends.

This patch fixes the issue by checking the PR_CAP_INT flag before
exposing them in lua, so the user can't have access to them.

This patch must be backported in 2.5.
src/hlua_fcn.c