Skip to content

Conversation

@lordgreg
Copy link

@lordgreg lordgreg commented Oct 16, 2025

Summary

As found in #14772 , we found out, that several plugins, which are using secrets, password or any other secure string, do not support the {vault://env/*} templating. This PR adds the support for this feature to the next integrated plugins:

  • jwt
  • basic-auth
  • hmac-auth
  • oauth2
  • response-transformer
  • request-transformer

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/developer.konghq.com - PUT DOCS PR HERE

Issue reference

Fix #14772

Additional info for Kong development team

The unit tests are almost the same for the plugins mentioned above with the difference of which fields we actually test.

I encountered difficulties running the tests in a Dockerized setup (using a custom Dockerfile with all required tools and a docker-compose configuration including Postgres, as well as mounted caches for Cargo, Lua, etc., to avoid reinstalling dependencies on each run). The main issue was related to LuaJIT and running on an ARM-based Mac, which caused frequent test failures such as lj_mem_realloc: allocated memory address 0xffff9588e010 outside required range. This seems to be a LuaJIT-specific problem.

To improve the developer experience, I’d suggest adding a Dockerfile, docker-compose.yaml, and an updated DEVELOPER.md with instructions for running everything inside a Dockerized environment. Please let me know if this would be considered a useful addition — I’d be happy to open a follow-up PR for it.

Please let me know if additional changes are required to the PR.

@CLAassistant
Copy link

CLAassistant commented Oct 16, 2025

CLA assistant check
All committers have signed the CLA.

@team-eng-enablement team-eng-enablement added the author/community PRs from the open-source community (not Kong Inc) label Oct 16, 2025
@mschonmeier
Copy link

Will it be possible to access certificates? @lordgreg

@lordgreg
Copy link
Author

Hi @mschonmeier ,

can you give me an example of configuration or what your use case with certificates is.

@lordgreg
Copy link
Author

lordgreg commented Nov 4, 2025

I've fix the linting error being thrown by CICD.

The other 2 errors arent being thrown because of my code changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/community PRs from the open-source community (not Kong Inc) size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kong dbless basic_auth credentials not working with envionment variable

4 participants