VAULT-ASSOCIATE-002 · Question #20
When looking at Vault token details, which key helps you find the paths the token is able to access?
The correct answer is C. Policies. The policies key in Vault token details indicates the access control policies attached to the token, which in turn define the paths and capabilities the token can access.
Question
Options
- AMeta
- BPath
- CPolicies
- DAccessor
How the community answered
(25 responses)- B4% (1)
- C92% (23)
- D4% (1)
Why each option
The `policies` key in Vault token details indicates the access control policies attached to the token, which in turn define the paths and capabilities the token can access.
The `meta` key contains arbitrary metadata associated with the token, not directly the access paths.
The `path` key often indicates the authentication method path from which the token was created, not the specific paths the token can access.
The `policies` key within Vault token details lists the names of all access control policies attached to that specific token. Each policy defines a set of paths and the allowed capabilities (read, write, etc.) for those paths, thereby determining what the token can access.
The `accessor` is a non-sensitive identifier for the token that can be used for token management, but it does not reveal the token's allowed access paths.
Concept tested: Vault token structure, policies and access control
Source: https://developer.hashicorp.com/vault/docs/commands/token/lookup
Topics
Community Discussion
No community discussion yet for this question.