Skip to content

Commit d9c910f

Browse files
committed
Add rockspec file for kong-plugin-version-gate version 0.1.0-2
1 parent e57ac43 commit d9c910f

2 files changed

Lines changed: 43 additions & 5 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,14 @@ services:
110110
111111
## Install
112112
113-
1. Build/install the rock:
114-
`luarocks make kong-plugin-version-gate-0.1.0-1.rockspec`
115-
2. If using shared-dict state store, define an Nginx shared dict (for example `lua_shared_dict version_gate_state 10m;`).
116-
3. Enable plugin:
113+
1. Install from LuaRocks (recommended):
114+
`luarocks install kong-plugin-version-gate 0.1.0-2`
115+
2. Optional (build from local source instead):
116+
`luarocks make kong-plugin-version-gate-0.1.0-2.rockspec`
117+
3. If using shared-dict state store, define an Nginx shared dict (for example `lua_shared_dict version_gate_state 10m;`).
118+
4. Enable plugin:
117119
set `KONG_PLUGINS=bundled,version-gate`
118-
4. Restart Kong.
120+
5. Restart Kong.
119121

120122
## Custom Kong Image (Recommended For Teams)
121123

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
package = "kong-plugin-version-gate"
2+
version = "0.1.0-2"
3+
4+
source = {
5+
url = "git://github.com/erayack/version-gate-kong",
6+
tag = "v0.1.0-1",
7+
}
8+
9+
description = {
10+
summary = "Kong plugin that enforces monotonic version consistency between request and response headers.",
11+
detailed = "version-gate compares an expected version header on the request with an actual version header on the upstream response, detects invariant violations, and enforces configurable actions (log, warn, or reject) to guarantee monotonic-read consistency at the API gateway layer.",
12+
homepage = "https://github.com/erayack/version-gate-kong",
13+
license = "Apache 2.0",
14+
}
15+
16+
dependencies = {
17+
"kong >= 3.4, < 4.0",
18+
}
19+
20+
build = {
21+
type = "builtin",
22+
modules = {
23+
["kong.plugins.version-gate.handler"] = "kong/plugins/version-gate/handler.lua",
24+
["kong.plugins.version-gate.schema"] = "kong/plugins/version-gate/schema.lua",
25+
["kong.plugins.version-gate.daos"] = "kong/plugins/version-gate/daos.lua",
26+
["kong.plugins.version-gate.constants"] = "kong/plugins/version-gate/constants.lua",
27+
["kong.plugins.version-gate.ctx"] = "kong/plugins/version-gate/ctx.lua",
28+
["kong.plugins.version-gate.decision_engine"] = "kong/plugins/version-gate/decision_engine.lua",
29+
["kong.plugins.version-gate.enforcement"] = "kong/plugins/version-gate/enforcement.lua",
30+
["kong.plugins.version-gate.invariant"] = "kong/plugins/version-gate/invariant.lua",
31+
["kong.plugins.version-gate.observability"] = "kong/plugins/version-gate/observability.lua",
32+
["kong.plugins.version-gate.policy"] = "kong/plugins/version-gate/policy.lua",
33+
["kong.plugins.version-gate.state_store"] = "kong/plugins/version-gate/state_store.lua",
34+
["kong.plugins.version-gate.version_extractor"] = "kong/plugins/version-gate/version_extractor.lua",
35+
},
36+
}

0 commit comments

Comments
 (0)