From 9efe08370d29bb87012d884acb19c915f44c1efb Mon Sep 17 00:00:00 2001 From: Daniel-Eisenberg <59121493+Daniel-Eisenberg@users.noreply.github.com> Date: Thu, 24 Jul 2025 18:15:26 +0300 Subject: [PATCH] Update schema.lua --- .../open-appsec-waf-kong-plugin/schema.lua | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/attachments/kong/plugins/open-appsec-waf-kong-plugin/schema.lua b/attachments/kong/plugins/open-appsec-waf-kong-plugin/schema.lua index b044c0c..0d722ee 100755 --- a/attachments/kong/plugins/open-appsec-waf-kong-plugin/schema.lua +++ b/attachments/kong/plugins/open-appsec-waf-kong-plugin/schema.lua @@ -3,12 +3,19 @@ local typedefs = require "kong.db.schema.typedefs" return { name = "open-appsec-waf-kong-plugin", fields = { - { consumer = typedefs.no_consumer }, -- required for Konnect compatibility - { protocols = typedefs.protocols_http }, -- required so Konnect knows when to allow this plugin - { config = { + { consumer = typedefs.no_consumer }, -- required for Konnect compatibility + { + protocols = { + type = "set", + elements = { type = "string", one_of = { "http", "https" } }, + default = { "http", "https" }, + }, + }, + { + config = { type = "record", fields = { - { debug = { type = "boolean", default = false } }, + { debug = { type = "boolean", default = false } }, }, }, },