mirror of
https://github.com/openappsec/attachment.git
synced 2025-07-26 19:11:31 +03:00
Update schema.lua
This commit is contained in:
parent
10a0a440b6
commit
9efe08370d
@ -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 } },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user