-- apip-plugins meta-rock: the set of optional plugins built into APIP images.
--
-- This rock contains no code. Its dependencies pin, with ==, the exact plugin
-- rock versions in the set; luarocks installs them (and the libraries they pin)
-- when the APIP image build runs `luarocks install apip-plugins <version>`.
--
-- This scm rockspec is the working copy. A release copies it to
-- rockspecs/apip-plugins-X.Y.Z-1.rockspec with a fixed version and git tag,
-- then publishes that file. See docs/pdr/0004-bundle-and-publishing.md.

rockspec_format = "3.0"
package = "apip-plugins"
version = "0.5.0-1"

-- luarocks installs as docs every README*, LICENSE*, COPYING* and *.md file in
-- the build directory. source.dir points the build at rock/, which holds none,
-- so the rock installs only its rockspec. (The path starts with the clone's
-- directory name, which luarocks takes from the URL.)
source = {
  url = "git+https://github.com/veecode-gateway/apip-plugins.git",
  tag = "v0.5.0",
  dir = "apip-plugins/rock",
}

description = {
  summary = "Pinned set of optional Kong plugins built into VeeCode APIP images",
  homepage = "https://github.com/veecode-gateway/apip-plugins",
  license = "Apache-2.0",
}

dependencies = {
  "lua >= 5.1",
  -- One line per plugin rock, exact version, with a comment on why it is in
  -- the set or pinned there.
  "apip-plugin-mtls == 1.0.0.3-1",  -- apip-mtls-auth and apip-mtls-acl: mTLS client auth (Enterprise-only in Kong) and its ACL
  "apip-plugin-oidc == 1.4.0.2-1",  -- apip-oidc and apip-oidc-acl: OpenID Connect (Enterprise-only in Kong) and role-based access on its claims
}

build = {
  type = "none",
}
