Update operations-qs.mdx (#30573)

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
This commit is contained in:
Nikolay Mikhaylichenko 2025-05-22 06:41:14 +03:00 committed by GitHub
parent e85e19ece9
commit 38c2bf50db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.