Secret Management
Cheat sheet · https://pcornel.dk/topic.php?topic=5889
Answer
Secret Management governs the end-to-end lifecycle of sensitive automation values: creation, classification, storage, access policy, retrieval, injection, use, rotation, revocation, recovery and auditable destruction.
Remember
- A secret manager product ≠ a complete secret-management process.
- Secret accessible to automation ≠ least-privilege access.
- Secret masked in logs ≠ secret absent from artifacts, environment dumps or child processes.
- Secret deleted from one store ≠ secret revoked at the target system.
First checks
vault kv get <path>— read secret (authorised)vault audit list— audit enabled- Secret paths per app/environment — organisation
Verify in this order
app → auth → policy → secret
Where it usually breaks
Secret Management proves controlled lifecycle and handling only to the observed consumers and target revocation boundary; it does not make weak credentials strong or unsafe automation code trustworthy.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Secret Management credential proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Ownership / source | Credential owner, purpose, consumers and authoritative store/issuer are explicit | Shared or orphaned credentials exist outside a controlled source with unclear consumers |
| Retrieval / exposure | Workload retrieves only required material and plaintext exposure is transient and bounded | Secrets leak to source, logs, command lines, artifacts, caches, child processes or unrelated jobs |
| Effective outcome | Target-side authentication/authorization or secure control outcome is independently observed | Tool/job success substitutes for target authorization, effective state or workload proof |
| Closure / next action | Rotation/revocation, denied-path tests, audit evidence and residual exceptions are explicit | Old credentials remain valid, policy bypass exists, audit gaps are unknown or broad success is inferred from one signal |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5889