Add kong plugin (#36)

* add kong plugin to open-appsec

* fix url in rockspec file

* add the attachment prefix to the paths

* check

* fix branch

---------

Co-authored-by: wiaamm <wiaamm@checkpoint.com>
This commit is contained in:
Daniel-Eisenberg
2025-06-24 14:58:41 +03:00
committed by GitHub
parent 8f459a139b
commit 882dc4c187
5 changed files with 1232 additions and 0 deletions

16
attachments/kong/schema.lua Executable file
View File

@@ -0,0 +1,16 @@
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 = {
type = "record",
fields = {
{ debug = { type = "boolean", default = false } },
},
},
},
},
}