Core: CLI Doc improvements to example read / write. (#19064)

* Core: CLI Doc imporvements to example read / write. Resolves #16788

* Core: CLI Doc imporvements to example read / write. Resolves #16788. Updated Changelog filename.

* Core: CLI Doc imporvements to example read / write. Resolves #16788. Updated Changelog..

* Updated read example to use token lookup instead.
This commit is contained in:
aphorise
2024-08-09 17:48:21 +02:00
committed by GitHub
parent 7509ef169b
commit 88975a6c24
3 changed files with 22 additions and 5 deletions

View File

@@ -36,9 +36,17 @@ Usage: vault read [options] PATH
Reads data from Vault at the given path. This can be used to read secrets,
generate dynamic credentials, get configuration details, and more.
Read a secret from the static secrets engine:
Read details of your own token:
$ vault read secret/my-secret
$ vault read auth/token/lookup-self
Read entity details of a given ID:
$ vault read identity/entity/id/2f09126d-d161-abb8-2241-555886491d97
Generate credentials for my-role in an AWS secrets engine:
$ vault read aws/creds/my-role
For a full list of examples and paths, please see the documentation that
corresponds to the secrets engine in use.