spring-vault icon indicating copy to clipboard operation
spring-vault copied to clipboard

VaultTransitOperations with versioned keys

Open dermotmburke opened this issue 2 years ago • 2 comments

The Transit Engine API (https://www.vaultproject.io/api-docs/secret/transit#encrypt-data) allows the inclusion of a "key_version" attribute when calling encrypt endpoint. There does not seem to be any way to include this attribute when calling VaultTransitOperations.encrypt(). Is there something I am missing or is this functionality not currently available?

dermotmburke avatar Oct 10 '22 13:10 dermotmburke

We don't support versioned keys yet. It would make sense to have methods accepting a TransitKey object that specifies the key name and, optionally the version. Feel free to come up with a pull request if you like so we can move forward on this topic.

mp911de avatar Oct 17 '22 13:10 mp911de

Thanks for confirming @mp911de

dermotmburke avatar Oct 18 '22 08:10 dermotmburke