mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
Update operations-qs.mdx (#30573)
Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
This commit is contained in:
parent
e85e19ece9
commit
38c2bf50db
@ -159,7 +159,7 @@ the operations allowed on plugin data.
|
||||
|
||||
```shell-session
|
||||
$ vault policy write kv-access-policy - << EOF
|
||||
path "shared/data/kv/creds/*" {
|
||||
path "shared/data/kv/creds" {
|
||||
capabilities = ["read", "create", "update", "delete"]
|
||||
}
|
||||
EOF
|
||||
@ -187,7 +187,7 @@ the operations allowed on plugin data.
|
||||
1. Try retrieving the secrets stored on the `kv/creds` path:
|
||||
|
||||
```shell-session
|
||||
$ vault kv get kv/creds
|
||||
$ vault kv get -mount=shared kv/creds
|
||||
```
|
||||
|
||||
The command retrieves the secrets stored on the `kv/creds` path.
|
||||
@ -195,11 +195,11 @@ the operations allowed on plugin data.
|
||||
1. Try retrieving the secrets stored on the `kv/api-keys` path:
|
||||
|
||||
```shell-session
|
||||
$ vault kv get kv/api-keys
|
||||
$ vault kv get -mount=shared kv/api-keys
|
||||
```
|
||||
|
||||
The second command fails because the policy for `opsuser` does
|
||||
not grant access to the `/api-keys` path.
|
||||
|
||||
You have successfully stored and retrieved your first secret value with a user
|
||||
from the `userpass` auth method.
|
||||
from the `userpass` auth method.
|
||||
|
Loading…
x
Reference in New Issue
Block a user