Updated TOKEN_ACCESSOR calculation.

This commit is contained in:
2026-01-20 06:59:38 +01:00
parent b93f47bd6c
commit aeb0080f7c

View File

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