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:36:20 +0000 (16:36 +0100)
commitaa1da3cf64287f249be2173038f016a248dd28b1
treed7e5026ffa8c89294df9e222f1297ce39e2f9328
parente27970ba2345fba86dbe37a8754c4edae0de66a9
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.

(cherry picked from commit 82d5f013f96d38867985469bf47bd36ff199a256)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
src/hlua_fcn.c