Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Secrets & Credentials

Direct answer

Secrets & Credentials is the cross-cutting Automation branch for non-public authentication material and credential artifacts that automation must obtain, use, protect, rotate, expire and audit without embedding sensitive values into source code, logs, artifacts or long-lived runtime state.

When to use this

Use it when handling automation credentials around Secrets & Credentials. Keep credential owner/purpose, secret value custody, retrieval identity, target privilege, runtime exposure, rotation/revocation and verified rejection as separate proof boundaries.

First 30 seconds

1. Secrets & credentials for automation: store in vaults, inject at runtime, least privilege, rotate, audit.

2. Prefer dynamic/short-lived credentials and workload identity.

3. Never in code, logs or images.

4. Scan for leaks.

5. Revoke on exposure.

Operational verification

automation identity → secret store → short-lived credential → target

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
automation secrets and credential management
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformautomation secrets and credential management · Secrets & Credentials owns generic credential lifecycle, storage, injection and rotation semantics. Automation Security owns broader execution hardening and supply-chain controls; Security-domain IAM/PKI/Cryptography own their deeper security theory and platform-specific controls.
Scope / prerequisiteUse it when handling automation credentials around Secrets & Credentials. Keep credential owner/purpose, secret value c…
What next?3 suggested next steps
Child topics (this level)12
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

automation identity/operation → credential requirement → authoritative secret source → authenticated retrieval → in-memory/session injection → target authentication/authorization → effective operation → audit correlation → rotation/revocation → old-secret rejection

Healthy evidence: credentials are scoped, retrieved just in time, masked from observability surfaces, correlated to a workload identity, rotated on schedule and old values are demonstrably rejected.

Step 2 Verification path Verify boundary

To verify Secrets & Credentials, first record secret reference/key ID, credential principal, scope/audience, version and target service identity. Then check the result reported by the tool, and finally read the authorization capability granted to the automation without exposing the secret material itself directly and compare it with what you intended.

Also test the cases that usually go wrong: plaintext config, environment leakage, stale tokens, overbroad scopes, copied credentials, untracked rotation and confusing successful authentication with authorization.

Step 3 Failure modes and next checks Narrow the fault

Suspicious evidence: secrets are embedded in repositories or variables files, shared across unrelated jobs, appear in logs/artifacts, remain valid after rotation or cannot be attributed to a specific automation identity.

It does not show security outside the explicit identities, credentials, code/dependencies, targets, policies and observation window. This branch shows lifecycle and handling of sensitive credential material; it does not by itself show that the target authorization policy, automation code or downstream workload is secure.

Next check: Continue from the first unproven credential boundary: preserve the secret ID/version/fingerprint without plaintext, workload identity, store/issuer and exact consumers; trace runtime exposure and target authentication; compare active generation to source metadata; then rotate/revoke or expire safely and show both intended success and old-credential rejection before closure.

Step 4 Where it fails Narrow the fault

Trace a failure along the path it takes: secret source → retrieval/authentication → runtime binding → transport → target authorization → audit/logging → rotation/revocation.

Typical problems with Secrets & Credentials: plaintext config, environment leakage, stale tokens, overbroad scopes, copied credentials, untracked rotation and confusing successful authentication with authorization.

What to watch: secret reference/version, least-privilege retrieval, redaction, rotation/expiry and revocation; principal identity, scope, storage/binding, expiry/rotation and authorization outcome.

Before you retry a change, read the target's current state first, using secret reference/key ID, credential principal, scope/audience, version and target service identity.

Evidence references

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.

observation · 1
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Secret Management

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.

Subtopic Passwords

Passwords in automation are reusable shared secrets whose risk is dominated by storage, transmission, reuse, lifetime and the breadth of the account they authenticate.

Subtopic API Keys

API Keys are application credentials presented to an API to identify or authorize a caller, often long-lived and bearer-like, so secure automation must constrain their scope, storage, transport, rotation and observability.

Subtopic Tokens

Tokens are bearer or proof-bearing credentials whose security depends on issuer trust, audience, scopes/claims, lifetime, storage and validation at the target—not merely on the token string being accepted.

Subtopic SSH Keys

SSH Keys used by automation are asymmetric credentials whose safety depends on private-key custody, public-key placement, host trust, algorithm strength, principals/options, rotation and provable removal of obsolete keys.

Subtopic Certificates

Certificates used by automation bind a public key to an identity under a trust chain and policy; automation must manage the private key, issuance profile, SAN/subject identity, trust anchors, validity window, renewal and revocation independently.

Subtopic Environment Variables

Environment Variables are a common runtime injection channel for configuration and secrets, but they are process state—not a secret store—and can leak through debugging, child processes, crash reports, orchestration metadata and environment dumps.

Subtopic Secret Stores

Secret Stores are authoritative systems or services that protect secret values and metadata with access control, encryption, auditability and lifecycle functions; automation should reference them rather than duplicate plaintext secrets.

Subtopic Encryption

Encryption protects secret confidentiality only across the specific at-rest or in-transit boundary where keys, algorithms and trust are correctly managed; it does not replace access control, secret minimization or rotation.

Subtopic Rotation

Rotation replaces a credential generation while preserving required service continuity and proving that every intended consumer uses the new generation and the previous generation is revoked or expired.

Subtopic Expiration

Expiration constrains credential lifetime so stale or forgotten secrets eventually stop authenticating, but effective expiry depends on target enforcement, clock behavior, caches/sessions and renewal readiness.

Subtopic Least Privilege

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.

Key points
  • Secret present ≠ secret safely handled.
  • Credential valid ≠ credential authorized for the intended operation.
  • Encrypted at rest ≠ protected during retrieval, injection, use or logging.
  • Rotation requested ≠ old credential revoked everywhere.
Key checks
  • gitleaks detect --source . — secrets in repos
  • vault status — secret store
  • Credential inventory with owners — governance
ReferenceWhat it is1 section · depth on demand

Core model

Start with the workload identity and exact operation, choose the narrowest credential type and privilege, retrieve the secret from an authoritative protected source at execution time, expose it only to the required process or session, prevent persistence and disclosure, correlate usage to an auditable identity, then rotate or revoke it and verify that old material no longer works.

ReferenceWhy it matters1 section · depth on demand

In depth

Secrets and credentials are the passwords, API keys, tokens, SSH keys and certificates that automation uses to authenticate. They are the most valuable thing an automation platform holds, so they need storage, access control, rotation and auditing.

RuleReason
Never in Git or imagesHistory and copies are permanent
Least privilege per credentialLimit damage
Short-lived where possibleReduce exposure window
Central secret storeRotation and audit
Mask in logs (no_log, ::add-mask::)Avoid leaks in job output

Assume any secret that appeared in a log, ticket or chat is compromised and rotate it.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

Secrets & Credentials owns generic credential lifecycle, storage, injection and rotation semantics. Automation Security owns broader execution hardening and supply-chain controls; Security-domain IAM/PKI/Cryptography own their deeper security theory and platform-specific controls.

Mechanics

Automation → Secrets & Credentials is owned at runtime by the secret store/identity provider, automation runtime that retrieves scoped credentials and the target system that authorizes them. Durable intent is least-privilege credential policy with versioned secret references, ownership, rotation/expiry and non-export requirements; stable identity is secret reference/key ID, credential principal, scope/audience, version and target service identity. The consumer-visible target is the authorization capability granted to the automation without exposing the secret material itself. The operating invariants are that secret values are not logged, references are stable, scopes are minimal, rotation/expiry are handled, transport is protected and use can be audited. Follow the chain of components secret source → retrieval/authentication → runtime binding → transport → target authorization → audit/logging → rotation/revocation and record which layer currently owns truth.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Lifecycle

A fresh noninteractive execution should be reproducible from source-controlled intent plus documented prerequisites, and the release must retain enough identity to tie every result back to secret reference/key ID, credential principal, scope/audience, version and target service identity.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docautomation secrets and credential management current

Authoritative/upstream documentation reviewed for bounded claims in Secrets & Credentials. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
secrets and credentialsautomation credentialssecret handling
Embedded reference data

Quick lookup tables

Secrets & Credentials credential proof-boundary map

Fast identity, handling/execution, effective-outcome and closure proof boundaries for Secrets & Credentials.

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
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

Capture at minimum secret reference, principal, scope/audience, credential version/expiry, target service, auth result/error, audit correlation and rotation status.

For Secrets & Credentials, rely on structured fields and stable IDs (secret reference/version, least-privilege retrieval, redaction, rotation/expiry and revocation; principal identity, scope, storage/binding, expiry/rotation and authorization outcome) rather than text formatted for display.

Confirmation

Confirm action

Continue?