From 616aeddbb2f04b841ef6c07cce841b075211b357 Mon Sep 17 00:00:00 2001 From: wiaamm Date: Wed, 10 Dec 2025 15:22:14 +0200 Subject: [PATCH] add accept --- .../kong/plugins/open-appsec-waf-kong-plugin/handler.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/attachments/kong/plugins/open-appsec-waf-kong-plugin/handler.lua b/attachments/kong/plugins/open-appsec-waf-kong-plugin/handler.lua index 9b55bc5..bf1dfe5 100755 --- a/attachments/kong/plugins/open-appsec-waf-kong-plugin/handler.lua +++ b/attachments/kong/plugins/open-appsec-waf-kong-plugin/handler.lua @@ -63,6 +63,10 @@ function NanoHandler.access(conf) if verdict == nano.AttachmentVerdict.DROP then kong.ctx.plugin.cleanup_needed = true return nano.handle_custom_response(session_data, response) + elseif verdict == nano.AttachmentVerdict.ACCEPT then + kong.log.debug("Request passed without body inspection") + kong.ctx.plugin.cleanup_needed = true + return end if contains_body == 1 then