Which of the following Vault policies will allow a Vault client to read a secret stored at secrets/applications/app01/api_key?
Comprehensive and Detailed in Depth
This question requires identifying a policy that permits reading the secret at secrets/applications/app01/api_key. Vault policies use paths and capabilities to control access. Let's evaluate:
A: path 'secrets/applications/' { capabilities = ['read'] allowed_parameters = { 'certificate' = [] } }
This policy allows reading at secrets/applications/, but not deeper paths like secrets/applications/app01/api_key. The allowed_parameters restriction is irrelevant for reading secrets. Incorrect.
B: path 'secrets/*' { capabilities = ['list'] }
The list capability allows listing secrets under secrets/, but not reading their contents. Reading requires the read capability. Incorrect.
C: path 'secrets/applications/+/api_*' { capabilities = ['read'] }
The + wildcard matches one segment (e.g., app01), and api_* matches api_key. This policy grants read access to secrets/applications/app01/api_key. Correct.
D: path 'secrets/applications/app01/api_key/*' { capabilities = ['update', 'list', 'read'] }
This policy applies to subpaths under api_key/, not the exact path api_key. It includes read, but the path mismatch makes it incorrect for this specific secret.
Overall Explanation from Vault Docs:
''Wildcards (*, +) allow flexible path matching... read capability is required to retrieve secret data.'' Option C uses globbing to precisely target the required path.
Elza
3 months agoJaney
3 months agoDestiny
4 months agoAliza
4 months agoMuriel
4 months agoElfrieda
4 months agoJulene
4 months agoTimothy
5 months agoHubert
5 months agoDiane
5 months agoAn
5 months agoLouvenia
6 months agoSheron
6 months agoMarg
6 months agoDevora
6 months agoKirk
6 months agoSerita
6 months agoDanilo
7 months agoRuthann
7 months agoJulie
7 months agoTyra
7 months agoLaila
7 months agoHortencia
8 months agoAlyce
8 months agoCelestina
8 months agoJesusita
3 months agoSabra
3 months agoCristy
3 months agoMelvin
3 months agoCassie
8 months ago