Least Privilege
Cheat sheet · https://pcornel.dk/topic.php?topic=5900
Answer
Least Privilege for secrets limits both who can retrieve credential material and what the resulting credential can do, reducing blast radius if automation, a runner or a secret is compromised.
Remember
- Secret read access limited ≠ target credential privilege limited.
- Dedicated account ≠ least privilege.
- Role name suggests read-only ≠ effective permissions are read-only.
- Successful intended operation ≠ excessive operations denied.
First checks
vault policy read <policy>— permissions- One secret path per app — isolation
- Separate credentials per environment — blast radius
Verify in this order
identity → narrow policy → own secrets only
Where it usually breaks
Least-privilege evidence proves the evaluated permissions and negative tests; undocumented transitive roles or platform privileges can still expand effective authority.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5900