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

[smallrye-config-jasypt] Introduce new optional property to manage IvGenerator for jasypt secret key handler #1221

Open
alex-kovalenko1982 opened this issue Sep 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@alex-kovalenko1982
Copy link

At the moment, jasypt encryptor is fixed to new RandomIvGenerator().
Would be great to have an option to choose IvGenerator class when creating the encryptor.
At least among RandomIvGenerator (default) and NoIvGenerator (optionally changed in the config).

Suggestion for a new property: smallrye.config.secret-handler.jasypt.iv-generator.enabled
Default value: true

When nothing is set then the legacy behavior is in action:
encryptor.setIvGenerator(new RandomIvGenerator());
and in case when new property set to false then the line above replaced with:
encryptor.setIvGenerator(new NoIvGenerator());

@radcortez
Copy link
Member

We can certainly consider adding such support.

Alternatively, it should be easy to provide your own secret key handler with the desired settings:
https://smallrye.io/smallrye-config/3.9.1/config/secret-keys/

@radcortez radcortez added the enhancement New feature or request label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants