Skip to content

Support Vault KV versions 1 and 2 #31

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

Closed
Southclaws opened this issue Mar 10, 2020 · 0 comments
Closed

Support Vault KV versions 1 and 2 #31

Southclaws opened this issue Mar 10, 2020 · 0 comments

Comments

@Southclaws
Copy link
Collaborator

The difference isn't obvious at all. I'm also not sure what APIs need to be used for v2.

There is some code in the vault CLI source: https://github.com/hashicorp/vault/blob/master/command/kv_helpers.go#L99

But none of it is exposed for importing for some reason. So this might require copying/implementing a v2 check.

It seems to manipulate the mount path that's being read: https://github.com/hashicorp/vault/blob/master/command/kv_get.go#L94-L110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant