-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Vault CLI: -mount
doesn't prepend the specified mount point to a secret name
#16639
Comments
It seems that Hey @vpedosyuk - any reason why you dont want to do away with
|
I just experienced this bug myself which had me scratching my head for a while. People may be gravitating toward |
I believe this issue is likely linked to: |
@aphorise, thank you for linking the related issue and PR. The proposed logic does in fact fix this issue:
|
This has been fixed and backported to the 1.11 and 1.12 release branches. The fix will be available in versions 1.11.6 and 1.12.2. |
Describe the bug
According to the
vault kv put
usage docs, when a mount point is specified in-mount
the next argument will be interpreted as a secret path. However, it doesn't work for me when the kv mount path is/teams/test/secret
instead of default/secret
.My expectation was that the following commands would work out of the box but they didn't:
After some time playing with mount points, ACLs, and whatnot I tried the following command:
And I realized that Vault CLI seems to be generating incorrect URL
https://<redacted>/v1/secret/data/my-secret
instead ofhttps://<redacted>/v1/teams/test/secret/data/my-secret
but works fine if the secret path is absolute.Environment:
vault status
):vault version
):The text was updated successfully, but these errors were encountered: