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 } }, }, }, },