VAULT-ASSOCIATE-002 · Question #9
To give a role the ability to display or output all of the end points under the /secrets/apps/* end point it would need to have which capability set?
The correct answer is D. list. To view or enumerate all endpoints or keys within a specific path in Vault, the list capability is required in the associated policy.
Question
Options
- Aupdate
- Bread
- Csudo
- Dlist
- ENone of the above
How the community answered
(24 responses)- A4% (1)
- B8% (2)
- D88% (21)
Why each option
To view or enumerate all endpoints or keys within a specific path in Vault, the `list` capability is required in the associated policy.
The `update` capability allows an entity to modify data at a path, not to enumerate existing paths or keys.
The `read` capability allows an entity to retrieve the content of a specific secret at a given path, but not to list all secrets or sub-paths within a directory-like structure.
The `sudo` capability grants elevated privileges for specific operations, often to bypass other policy rules, but it's not the standard capability for simply listing paths.
The `list` capability in a Vault policy is specifically designed to allow an entity to enumerate (or list) the keys or sub-paths available at a given path prefix, such as `/secrets/apps/*`. Without the `list` capability, even if `read` is granted, an entity cannot discover what secrets exist within a 'directory' but must know the exact secret path.
The `list` capability is indeed the correct one for this operation.
Concept tested: Vault policy capabilities (list)
Source: https://www.vaultproject.io/docs/concepts/policies#capabilities
Topics
Community Discussion
No community discussion yet for this question.