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

vaultfs: Support K/V v2 secret engine #159

Merged
merged 1 commit into from
Sep 19, 2022
Merged

vaultfs: Support K/V v2 secret engine #159

merged 1 commit into from
Sep 19, 2022

Conversation

hairyhenderson
Copy link
Owner

Fixes #24

This adds support for the K/V v2 secrets mounts. It can be used in exactly the same way that K/V v1 mounts are used (same URL scheme, etc). The one difference is that a ?version= query parameter can be sent to request previous secret versions.

In this implementation, a check is made prior to accessing the mount to find out what version of the kv engine is in use. Currently this is done on every access, doubling the number of requests. In future it may be useful to add some caching to improve performance - however because it is possible to upgrade a kv-v1 mount to kv-v2 at runtime, this will be a bit more complex to get right.

Signed-off-by: Dave Henderson [email protected]

@hairyhenderson hairyhenderson added the enhancement New feature or request label Sep 18, 2022
@hairyhenderson hairyhenderson self-assigned this Sep 18, 2022
@hairyhenderson hairyhenderson merged commit ae1b183 into main Sep 19, 2022
@hairyhenderson hairyhenderson deleted the vault-kv2-24 branch September 19, 2022 12:57
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

Successfully merging this pull request may close these issues.

vaultfs: Detect K/V Version 2 and support version param
1 participant