mirror of
https://github.com/openappsec/attachment.git
synced 2025-07-27 11:31:32 +03:00
24 lines
551 B
Lua
Executable File
24 lines
551 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 } },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|