Use this when deciding where automation credentials live.
Credential Store
A credential store holds secrets that automation uses — SSH keys, API tokens, passwords — encrypted and injected at runtime, such as AWX credentials, Jenkins credentials or HashiCorp Vault, never in code.
1. Credential stores keep automation secrets out of code.
2. Least privilege per job.
3. Short-lived/dynamic credentials preferred.
4. Audit use.
5. Rotate.
job → credential store → injected secret → target
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify secret reference, version and target authentication without disclosure Verify boundary
Run a bounded job that references a known Credential Store entry and capture the secret identifier/version, requesting workload identity and retrieval audit event without recording the secret value. Confirm the job authenticates to the intended target, then independently verify the target attributes the session to the expected account or service principal. After a controlled rotation, verify new jobs use the new version and old credentials are rejected according to policy. A store health check or successful decrypt operation does not show end-to-end target authentication.
Step 2 Isolate secret lookup, policy, version and target acceptance Narrow the fault
If a job cannot retrieve a credential, verify the job identity and exact secret path before testing the target. If lookup succeeds but access is denied, inspect store policy and token scope; if retrieval succeeds but the target rejects authentication, compare the retrieved secret version with the target-side credential version and worker cache lifetime. If only some workers fail, inspect cached tokens or secret replication. Never diagnose by printing the secret into logs. A successful vault read shows retrieval authorization, not that the target will accept that credential.
Step 3 Common mistakes Narrow the fault
- Credentials readable by all job authors.
- No rotation.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Never in playbooks or scripts.
- Injected at runtime.
- Audit access.
- Credential store (Vault/AWX credentials/cloud secrets) — storage
- Credential use audit — access logs
- Rotation status — freshness
ReferenceWhy it matters1 section · depth on demand
A credential store is a lookup and authorization boundary, not a secret string table
An Automation Credential Store owns secret identity, version, access policy and retrieval audit while jobs consume references rather than embedding plaintext credentials. The important boundaries are caller authentication, authorization to the secret path, secret version selection, decryption/KMS availability and injection into the execution context. Rotation can create a mixed state when the store holds a new value but targets or cached workers still expect the previous credential. Logs should expose secret identifiers and versions without exposing secret material.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
A credential store holds the secrets automation uses — passwords, keys, tokens, certificates — and hands them to jobs at run time. Centralising credentials enables rotation, access control and audit, instead of secrets scattered across scripts and servers.
| Store | Typical use |
|---|---|
| HashiCorp Vault / OpenBao | Central secrets, dynamic credentials, PKI |
| Cloud secret managers (AWS, Azure, GCP) | Cloud workloads, CI via OIDC |
| CyberArk, Delinea | Privileged accounts, session management |
| AWX/AAP credentials, Rundeck key storage, Jenkins credentials | Platform-integrated secrets |
Design points: each job gets only the credentials it needs, secrets are never written to logs or artifacts, access is logged, and rotation happens without code changes. Dynamic secrets — created per job and expiring automatically — remove long-lived credentials altogether.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Automation Architecture > Credential Store. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/enable-automation · confidence 94%