Skip to content

figment-networks/kong-plugin-consumer-cors

Repository files navigation

kong-plugin-cors

Kong plugin to make sure user can have a limited number of total and concurrent connections.

Testing

To run lint and tests install kong-pongo (tooling to run kong plugin tests)

$ pongo lint
$ pongo run

Releasing

Plugin versions are uploaded to luarocks.org

To release a new plugin version (run from main branch):

# Install lua-cjson if missing
$ luarocks remove lua-cjson
$ luarocks install lua-cjson 2.1.0-1 #https://github.com/mpx/lua-cjson/issues/56#issuecomment-394764240

# Bump version, rename rockspec but DO NOT create a Git tag and DO NOT publish to github and luarocks.org
$ make release VERSION=X.Y.Z DRY=1

# Bump version, rename rockspec, create a Git tag, and publish to luarocks.org
$ make release VERSION=X.Y.Z