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
2 months agoJaney
2 months agoDestiny
2 months agoAliza
2 months agoMuriel
2 months agoElfrieda
3 months agoJulene
3 months agoTimothy
3 months agoHubert
4 months agoDiane
4 months agoAn
4 months agoLouvenia
4 months agoSheron
4 months agoMarg
4 months agoDevora
5 months agoKirk
5 months agoSerita
5 months agoDanilo
5 months agoRuthann
5 months agoJulie
5 months agoTyra
6 months agoLaila
6 months agoHortencia
6 months agoAlyce
6 months agoCelestina
7 months agoJesusita
1 month agoSabra
1 month agoCristy
1 month agoMelvin
2 months agoCassie
6 months ago