Updated TOKEN_ACCESSOR calculation.
This commit is contained in:
@@ -60,7 +60,7 @@ export VAULT_TOKEN=$(vault login -token-only -method=userpass username="your-use
|
|||||||
You can also use the following command to set VAULT_TOKEN and TOKEN_ACCESSOR:
|
You can also use the following command to set VAULT_TOKEN and TOKEN_ACCESSOR:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export $(vault token lookup -format=json | jq -r '.data | "TOKEN_ACCESSOR=\(.accessor) VAULT_TOKEN=\(.id)"')
|
export TOKEN_ACCESSOR=$(vault token lookup -format=json | jq -r .data.accessor)
|
||||||
```
|
```
|
||||||
|
|
||||||
You can then use the `TOKEN_ACCESSOR` to look up token details without exposing the actual token.
|
You can then use the `TOKEN_ACCESSOR` to look up token details without exposing the actual token.
|
||||||
|
|||||||
Reference in New Issue
Block a user