2 min read
KrakenD 1.4.0 released
by Albert Lombarte
The KrakenD team is pleased to announce the release of KrakenD 1.4.0. You can get it packaged from the download page.
🚀 Summary of changes for CEv1.4
KrakenD 1.4 is the last version of the 1.x family and primarily replaces the KrakenD Framework with the Lura Project and includes minor bug fixing and an extended flexible configuration. The next release with the new functionality will be 2.0.
- All dependencies for the framework moved to Lura
-
The
json-collectionoutput encoding allows returning collections directly - Added Sprig functions to Flexible Configuration
- Allow the propagation of nested claims using dot notation (JWT)
-
Add the
delmethod to Lua
Upgrading to the latest version is always advised.
Changes in Flexible Configuration
For those using the flexible configuration, there are over 70 Sprig functions that have been added to the templating system:
- String Functions:
trim, wrap, randAlpha, pluraland more.- String List Functions:
splitList, sortAlphaand more.
- String List Functions:
- Integer Math Functions:
add, max, muland more.- Integer Slice Functions:
until, untilStep
- Integer Slice Functions:
- Float Math Functions:
addf, maxf, mulfand more. - Date Functions:
now, dateand more. - Defaults Functions:
default, empty, coalesce, fromJson, toJson, toPrettyJson, toRawJson, ternary - Encoding Functions:
b64enc, b64decand more. - Lists and List Functions:
list, first, uniqand more. - Dictionaries and Dict Functions:
get, set, dict, hasKey, pluck, dig, deepCopyand more. - Type Conversion Functions:
atoi, int64, toStringand more. - Path and Filepath Functions:
base, dir, ext, clean, isAbs, osBase, osDir, osExt, osClean, osIsAbs - Flow Control Functions:
fail - Advanced Functions
- UUID Functions:
uuidv4 - OS Functions:
env, expandenv - Version Comparison Functions:
semver, semverCompare - Reflection:
typeOf, kindIs, typeIsLikeand more. - Cryptographic and Security Functions:
derivePassword, sha256sum, genPrivateKeyand more. - Network:
getHostByName
- UUID Functions:
See the documentation
Changes in krakend-jose (JWT)
- Dependencies moved to Lura
- Copy the key before adding it to the key mapper, so the latter doesn’t override all the other entries
- Test case for the single string role added
- Added condition to avoid parsing namespaced claims as nested
- Allow the propagation of nested claims using dot notation
- Invert the order of the handler factories so the verifier can wrap the signer
- TLS1.3 cipher suites added to the default set
- Serialize the claims after extracting them
- JWT/header propagation: replace existing values
Changes in krakend-lua
- Dependencies moved to Lura
deloperation for lists addeddelmethod added to Lua tables- Check if the value is a json number before pushing it to the context