Hi,
I'm trying to restrict access to a location using access_by_lua, the restriction I want to put in place is basically "whitelisted IP or authenticated user"
But if I put "satisfy any" in the location block, it seems like the access_by_lua directive is not evaluated at all..
the block looks like this :
location / {
access_by_lua_file /etc/nginx/lua/irule.lua;
satisfy any;
allow 127.0.0.1;
allow 172.23.0.0/16;
deny all;
auth_basic "Restricted Access. ";
auth_basic_user_file resources/auth_users.txt;
proxy_pass http://$target;
}
Variable $target is set by lua.
I've seen a mention of something being fixed in version 1.0.11.23, but it's old, and I'm using 1.7.10.2 .
Any idea what is the issue here ?