mirror of
https://github.com/openappsec/attachment.git
synced 2025-07-28 03:51:32 +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 {
|
return {
|
||||||
name = "open-appsec-waf-kong-plugin",
|
name = "open-appsec-waf-kong-plugin",
|
||||||
fields = {
|
fields = {
|
||||||
{ consumer = typedefs.no_consumer }, -- required for Konnect compatibility
|
{ consumer = typedefs.no_consumer }, -- required for Konnect compatibility
|
||||||
{ protocols = typedefs.protocols_http }, -- required so Konnect knows when to allow this plugin
|
{
|
||||||
{ config = {
|
protocols = {
|
||||||
|
type = "set",
|
||||||
|
elements = { type = "string", one_of = { "http", "https" } },
|
||||||
|
default = { "http", "https" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
config = {
|
||||||
type = "record",
|
type = "record",
|
||||||
fields = {
|
fields = {
|
||||||
{ debug = { type = "boolean", default = false } },
|
{ debug = { type = "boolean", default = false } },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user