Merge pull request #3649 from aledbf/fix-auth

Empty access_by_lua_block breaks satisfy any
This commit is contained in:
Kubernetes Prow Robot 2019-01-10 09:15:21 -08:00 committed by GitHub
commit fc30351f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1032,8 +1032,10 @@ stream {
rewrite_by_lua_block {
balancer.rewrite()
}
access_by_lua_block {
{{ if shouldConfigureLuaRestyWAF $all.Cfg.DisableLuaRestyWAF $location.LuaRestyWAF.Mode }}
access_by_lua_block {
local lua_resty_waf = require("resty.waf")
local waf = lua_resty_waf:new()
@ -1074,8 +1076,9 @@ stream {
{{ end }}
waf:exec()
{{ end }}
}
{{ end }}
header_filter_by_lua_block {
{{ if shouldConfigureLuaRestyWAF $all.Cfg.DisableLuaRestyWAF $location.LuaRestyWAF.Mode }}
local lua_resty_waf = require "resty.waf"