package = "apip-plugin-mtls"
version = "1.0.0.3-1"
supported_platforms = { "linux", "macosx" }

source = {
  url = "git+https://github.com/veecode-gateway/apip-plugin-mtls.git",
  tag = "v1.0.0.3",
}

description = {
  summary = "Kong Gateway plugins for mTLS client authentication (apip-mtls-auth) and access control (apip-mtls-acl)",
  detailed = [[
    apip-mtls-auth authenticates clients by their TLS client certificate and
    forwards certificate details (PEM, fingerprint, serial, subject and issuer
    DN, CN, O) to the upstream as headers. apip-mtls-acl allows or denies requests
    by one of those details. VeeCode APIP fork of
    callistaenterprise/kong-plugin-mtls-auth and
    callistaenterprise/kong-plugin-mtls-acl, ported to the Kong 3.x plugin API.
  ]],
  homepage = "https://github.com/veecode-gateway/apip-plugin-mtls",
  license = "Apache-2.0",
}

dependencies = {
}

build = {
  type = "builtin",
  modules = {
    ["kong.plugins.apip-mtls-auth.handler"] = "kong/plugins/apip-mtls-auth/handler.lua",
    ["kong.plugins.apip-mtls-auth.schema"] = "kong/plugins/apip-mtls-auth/schema.lua",
    ["kong.plugins.apip-mtls-acl.handler"] = "kong/plugins/apip-mtls-acl/handler.lua",
    ["kong.plugins.apip-mtls-acl.schema"] = "kong/plugins/apip-mtls-acl/schema.lua",
  },
}
