Currently, Allow method calls ngx.exit regardless of the bouncer's decision, which prevents any other scripts inside access_by_lua_block to be executed after the bouncer.
It would be very handy to have another version of Allow that either:
- Returns boolean value regardless of the decision, similarly to
allowIp;
- Simply returns on successful pass. In this case, the bouncer would handle all rejections and if the request passes by the bouncer, it can be handled by one of the next scripts.
Currently,
Allowmethod callsngx.exitregardless of the bouncer's decision, which prevents any other scripts insideaccess_by_lua_blockto be executed after the bouncer.It would be very handy to have another version of
Allowthat either:allowIp;