Skip to content

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

@alex-kovalenko1982

Description

@alex-kovalenko1982

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions