mirror of
https://github.com/openappsec/attachment.git
synced 2025-11-17 17:55:29 +03:00
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:
16
attachments/kong/schema.lua
Executable file
16
attachments/kong/schema.lua
Executable 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 } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user