-
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 kv put on secrets engine requires read access to /sys/internal/ui/mounts/* #4620
Comments
Thanks for the report! That error message is a little misleading, it is causing a 403 because you don't have access to the Could you make sure your token has the proper permissions to write to I will add this the the next milestone so we can make that error more clear. Also are you sure the server and client are both 0.10.0? I believe this call wasn't introduced until 0.10.1 |
Here's a GPG encrypted log of the token creation & capabilities. Here's a screencast of my vault version info. If I toggle this section of my policy file then my ability to read/write from the web kv store goes away.
Here's my entire dev-policy.hcl file:
|
So that endpoint didn't exist until 0.10.1, which is why the server is returning a 403. But it's confusing why your client is even making the request since only 0.10.1 CLIs will query that endpoint. see #4430. |
Cannot reproduce:
Note that the policy I uploaded does not grant explicit access to sys/internal/ui/mounts. It is very likely that you are not running the version(s) of Vault that you think you are. |
@briankassouf You are correct! I wasn't checking the |
There are some issues with |
Thanks!
…On Wed, May 23, 2018 at 9:14 PM Jeff Mitchell ***@***.***> wrote:
There are some issues with vault kv when the server and client version
don't match. If you use a 0.10.1 CLI I think it will solve your issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4620 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAje0iWG0quieZraiqjPYOLYylJfGuVks5t1gmBgaJpZM4ULB1S>
.
|
Closing for now then! |
Describe the bug
Unable to write secret via
vault kv put web/foo value="bar"
even with correct capabilities.vault
returns an HTTP 403 error.To Reproduce
Create a new vault installation. Mount a secrets engine on /web. Try to insert a key.
Expected behavior
I did not expect the following capabilities to required in my policy.
Environment:
vault status
): 0.10.0vault version
): Vault v0.10.0 ('5dd7f25f5c4b541f2da62d70075b6f82771a650d')Vault server configuration file(s):
The text was updated successfully, but these errors were encountered: