-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
CLI Vault unwrap command doesn't work with the versioned key/value secret engine #4723
Comments
This was fixed in 0.10.2 via #4511 . Let us know if you’re still experiencing this after upgrading and we can re-open. Thanks! |
Hi @meirish, I just upgraded, did the same test, and got this as an output of the
Tha's still quite different from what the previous behaviour was like, and not that useful for a CLI, unless you use |
The problem is that unwrap is generic and doesn't know how to format things in the same way that the |
I guess there are two ways to fix it, either by allowing unwrap to handle kv v2, or by splitting unwrap in two different commands:
|
Describe the bug
The Vault CLI unwrap command doesn't support the new KV Secret Engine, hitting secret/ instead of secret/data/.
To Reproduce
Steps to reproduce the behavior:
vault kv put secret/foo test=1
vault kv get -wrap-ttl=60s secret/foo
vault unwrap <wrapping-token>
Expected behavior
I should receive the original secret.
Environment:
vault status
): 0.10.1vault version
): Vault v0.10.1 ('756fdc4587350daf1c65b93647b2cc31a6f119cd')Vault server configuration file(s):
Running Vault in dev mode
The text was updated successfully, but these errors were encountered: