Pcornel
Automation · Secrets & Credentials

Secret Management

Cheat sheet · https://pcornel.dk/topic.php?topic=5889

Back to the Topic

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

BoundaryHealthy evidenceSuspicious evidence
Ownership / sourceCredential owner, purpose, consumers and authoritative store/issuer are explicitShared or orphaned credentials exist outside a controlled source with unclear consumers
Retrieval / exposureWorkload retrieves only required material and plaintext exposure is transient and boundedSecrets leak to source, logs, command lines, artifacts, caches, child processes or unrelated jobs
Effective outcomeTarget-side authentication/authorization or secure control outcome is independently observedTool/job success substitutes for target authorization, effective state or workload proof
Closure / next actionRotation/revocation, denied-path tests, audit evidence and residual exceptions are explicitOld 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

Confirmation

Confirm action

Continue?