Files
attachment/attachments/kong/plugins/open-appsec-waf-kong-plugin/schema.lua
2025-11-24 09:55:57 +02:00

25 lines
641 B
Lua
Executable File

local typedefs = require "kong.db.schema.typedefs"
return {
name = "open-appsec-waf-kong-plugin",
fields = {
{ 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 } },
{ res_body_thread_timeout_msec = { type = "number", default = 150, gt = 0 } },
},
},
},
},
}