Modified Kong Plugin to support the new Nano Attachment

This commit is contained in:
Granyaa
2026-01-15 11:19:54 +02:00
parent 618516ec85
commit c57fab661c
5 changed files with 633 additions and 267 deletions

View File

@@ -3,19 +3,12 @@ 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 = {
{ consumer = typedefs.no_consumer }, -- required for Konnect compatibility
{ protocols = typedefs.protocols_http }, -- required so Konnect knows when to allow this plugin
{ config = {
type = "record",
fields = {
{ debug = { type = "boolean", default = false } },
{ debug = { type = "boolean", default = false } },
},
},
},