From 2b0fea21ce2bfce4385768a451f4fade9bc892b4 Mon Sep 17 00:00:00 2001 From: kong-docs <116832528+kong-docs@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:55:19 +0200 Subject: [PATCH] Automated Changelog update [skip-ci] (#7766) * Automated changelog update * Update changelog.md --------- Co-authored-by: kong-docs[bot] Co-authored-by: Lucie Milan <32450552+lmilan@users.noreply.github.com> --- changelog.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/changelog.md b/changelog.md index 077503679963..fef4ddda3e74 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,27 @@ +## Week 33 + +### [Feat: Document shared variables](https://github.com/Kong/docs.konghq.com/pull/7750) (2024-08-13) + +Update the template documentation to add details for using shared variables: +https://docs.konghq.com/gateway/latest/plugin-development/pdk/kong.ctx/#kongctxshared + + +This looks to have been added here, https://github.com/Kong/kong-plugin-request-transformer/pull/7, but we lack documentation on how to reference it. Using the documented convention, kong.ctx.shared.foo, results in errors with "kong" being a nil value. + +Tests have shown it successful using this with the request transformer plugin and route transformer advanced, i.e: + +x-name:$((function() return shared["gruber"] end)()) + +Where "gruber" has been previously defined as +kong.ctx.shared.gruber = "myHeader" + +#### Modified + +- https://docs.konghq.com/hub/kong-inc/request-transformer-advanced/how-to/ + ## Week 32 ### [Fix: Update key-auth request behaviour matrix](https://github.com/Kong/docs.konghq.com/pull/7737) (2024-08-09)