mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 14:11:10 +01:00
[Docs] Minor editorial fixes - "token capabilities" (#27851)
* Minor editorial fixes * Fix a typo
This commit is contained in:
parent
a28464b860
commit
f2ce14b4b2
@ -11,27 +11,33 @@ description: |-
|
|||||||
The `token capabilities` command fetches the capabilities of a token for a given
|
The `token capabilities` command fetches the capabilities of a token for a given
|
||||||
path.
|
path.
|
||||||
|
|
||||||
If a TOKEN is provided as an argument, this command uses the "/sys/capabilities"
|
If you pass a token value as an argument, this command uses the
|
||||||
endpoint and permission. If no TOKEN is provided, this command uses the
|
`/sys/capabilities` endpoint and permission. In the absence of an explicit token
|
||||||
"/sys/capabilities-self" endpoint and permission with the locally authenticated
|
value, this command uses the `/sys/capabilities-self` endpoint and permission
|
||||||
token.
|
with the locally authenticated token.
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
List capabilities for the local token on the "secret/foo" path:
|
List capabilities for the local token on the `secret/foo` path:
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
$ vault token capabilities secret/foo
|
$ vault token capabilities secret/foo
|
||||||
read
|
read
|
||||||
```
|
```
|
||||||
|
|
||||||
List capabilities for a token on the "cubbyhole/foo" path:
|
The output shows the local token has read permission on the `secret/foo` path.
|
||||||
|
|
||||||
|
List capabilities for a token (`hvs.CAESI...WtiSW5mWUY`) on the `cubbyhole/foo`
|
||||||
|
path:
|
||||||
|
|
||||||
```shell-session
|
```shell-session
|
||||||
$ vault token capabilities 96ddf4bc-d217-f3ba-f9bd-017055595017 database/creds/readonly
|
$ vault token capabilities hvs.CAESI...WtiSW5mWUY database/creds/readonly
|
||||||
deny
|
deny
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The output shows the token (`hvs.CAESI...WtiSW5mWUY`) has no permission to
|
||||||
|
operate on the `cubbyhole/foo` path.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The following flags are available in addition to the [standard set of
|
The following flags are available in addition to the [standard set of
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user