Lelum Polelum
Lelum Polelum

Reputation: 43

How to read token value having it's accessor

When working with Hashicorp Vault one can see token details with

vault token lookup --accessor secret

but is it possible to actually see this token's value ?

Upvotes: 0

Views: 818

Answers (1)

Set
Set

Reputation: 49789

No, you cannot. This is for security reason. Otherwise, you will not be able to create a new (child) token and share it with someone, cause in this case lookup will be able to reveal your (parent) token, that is not acceptable.

In general, the output for lookup command contains id part. This is the token value. For lookup command with --accessor flag id is always n/a in response.

Upvotes: 2

Related Questions