Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use LazySecretKeysHandler for Jasypt Config #6191

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

radcortez
Copy link
Contributor

@radcortez radcortez commented Jun 14, 2024

This uses LazySecretKeysHandler to allow the Jasypt SecretKeyHandler to only initialize when a value requires the handler. This also allows for Configurable Config sources to contribute configuration to the handler.

Because we don't know when the handler is going to be initialized, we create a separate instance of the Encryptor for the DevUI.

@radcortez radcortez changed the title - Fixes #6190 Use LazySecretKeysHandler for Jasypt Config Jun 14, 2024
Copy link
Contributor

@jamesnetherton jamesnetherton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for this @radcortez.

I left a question about some of the test changes.

@jamesnetherton jamesnetherton merged commit 415d6ee into apache:main Jun 17, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jasypt SecretKeyHandler config cannot use configuration coming from Configurable Config sources
4 participants