Releases: fretlink/ansible-kong-app
Fix target creation
Upgrade Dhall bindings configuration & use PUT instead of POST/PATCH
New 🆕
- #23 Use PUT methods instead of POST/PATCH
Configuration
The dhall binding has been improved and upgrade to be compatible with 1.33+ dhall version.
The configuration is now only compatible with 1.29+
- #17 upgrade dhall to 1.26.1 and merge types and terms
- #18 config(dhall): add a pre-function lua definition for HTTPS redirects
- #19 dhall: BREAKING CHANGE update dhall config for 1.33+ compatibility (minimum version is now 1.29+)
- #20 dhall(plugins): add binding for the 'response-transformer' plugin
Core
Dhall: add new helper for ResponseTransformer kong plugin
New ResponseTransformer
configuration helper in the dhall package
- #20 See PR for details
v0.31: Merge pull request #19 from paulrbr-fl/dhall-1.33-compat
BREAKING CHANGE
This release only changes the dhall interface exposed from the dhall/
directory. If you use this interface the minimal compatible version of dhall is now 1.29.0+.
- #19 dhall: update dhall config for 1.33+ compatibility
Dhall: add extra plugin helpers
This release updates dhall binding to include two new plugin helpers:
mkPreFunction
: function which helps to build a "pre-function" plugin in your kong configurationhttp2httpsRedirect
: definition of a Lua "pre-function" plugin that redirects any HTTP requests to HTTPS
Breaking changes
-
Plugin builder helpers have changed namespace.
- Legacy:
Server.Service.Plugin. {correlationId,mkIPRestriction,mkRequestTermination,mkRequestTransformer}
- have moved to
Server.Service.Plugin.functions. {correlationId,mkIPRestriction,mkRequestTermination,mkRequestTransformer,mkPreFunction,http2httpsRedirect}
Dhall 1.26.1 bindings
This release updates dhall binding to 1.26.1
The main change is that now types and terms can be bundled together.
Breaking changes
- you need dhall 1.26.1
- the import is now
package.dhall
instead oftypes.dhall
andfunctions.dhall
- The new structure is:
Config
: the config typeServer.Type
: the server typeServer.mkServer
: the server builderServer.Service.Type
: the service typeServer.Service.Plugin.Type
: plugin typeServer.Service.Plugin.{correlationId,mkIPRestriction,mkRequestTermination,mkRequestTransformer}
: plugin buildersServer.Service.Route
: the route typeVault
: the vault type
(previously, the values were nested like they are currently, but the types were all exported at the root. out of consistency, the types and the terms now follow the same structure, which is also the file & directory structure)
More details in configuration of CorrelationID plugin
This release adds a parameter in the dhall code to configure a CorrelationID plugin.
It adds the generator
parameter which defaults to uuid#counter
(cf https://docs.konghq.com/hub/kong-inc/correlation-id/#parameters)
Add plugin setup failure error
This release add debugging info when plugin fail to be set up
Dhall interface upgrade
⚠️ this release has non compatible changes in the dhall interface code ⚠️
The dhall code functions to generate a correct ansible configuration for this role has been update to be compatible with the latest Dhall-lang version (v6.0.0 of the language)
You will thus need to check your dhall code using this interface for compatibility
Delete and recreate plugin if update fail
When migrations did not run smoothly during an update it could be necessary to delete and recreate a plugin.
This release add this feature automatically