Subscribe to the Non-Human & AI Identity Journal
Home FAQ Authentication, Authorisation & Trust What breaks when ArgoCD manages secrets like ordinary…
Authentication, Authorisation & Trust

What breaks when ArgoCD manages secrets like ordinary Kubernetes resources?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated July 28, 2026 Domain: Authentication, Authorisation & Trust

Secrets either end up exposed in Git as plaintext or become invisible dependencies that can pass sync while the workload still fails at runtime. The control gap is ownership: ArgoCD can reconcile manifests, but it does not inherently govern credential lifecycle, rotation, or where the value comes from.

Why This Breaks ArgoCD’s Security Assumptions

ArgoCD is built to reconcile declared Kubernetes state, not to own secret lifecycle. That distinction matters because a secret managed like a normal resource can be versioned in Git, copied into manifests, or rendered as an opaque blob that syncs cleanly while the downstream application still lacks valid credentials. The result is a false sense of compliance: the cluster is “in sync,” but the workload is not actually authorised to operate.

This is a classic Non-Human Identity problem, not just a GitOps problem. NHIMG’s Guide to the Secret Sprawl Challenge shows how quickly secrets fragment once they are treated as deployable artifacts, while the Ultimate Guide to NHIs frames credentials as lifecycle-managed identities, not static config. In practice, many teams discover this only after a sync succeeds and the application still fails in production because the secret source, rotation state, or external dependency was never governed.

That is exactly where operational risk accumulates: leaked values in Git, stale credentials in the cluster, and no clear owner for rotation or revocation. The average estimated time to remediate a leaked secret is 27 days, even though organisations often report strong confidence in their secrets programs, according to The State of Secrets in AppSec by GitGuardian and CyberArk.

How Secret Management Should Work in a GitOps Pipeline

ArgoCD should manage desired state, while secret creation, delivery, and rotation are handled by a dedicated identity or secrets control plane. In practice, that means Git contains references, templates, or policies, not long-lived secret material. The workload then receives a short-lived credential at runtime from a trusted issuer, or reads it from an external secret source that supports rotation and revocation without rewriting application code.

Current guidance suggests treating the secret as an NHI credential with a lifecycle, not as a Kubernetes manifest field. That lifecycle should include issuance, TTL, rotation, revocation, and auditability. A practical pattern is:

  • Store only non-sensitive references in Git, not plaintext values.
  • Use external secret injection or runtime retrieval rather than committing credentials into cluster manifests.
  • Bind access to workload identity so the application proves what it is before receiving a secret.
  • Rotate credentials independently of deployment cadence so a Git sync does not become a secret refresh event.
  • Alert on sync success that still leaves the workload unable to authenticate, because that is a secret ownership failure, not a deployment success.

For teams mapping implementation guidance, the OWASP Non-Human Identity Top 10 is useful for understanding secret exposure and lifecycle weaknesses, while NIST Cybersecurity Framework 2.0 helps translate that into governance, protection, and continuous monitoring. These controls tend to break down when teams rely on a single GitOps reconciliation loop to satisfy both deployment and credential management, because ArgoCD cannot validate the trust boundary behind a token it only sees as data.

Where the Edge Cases Usually Surface First

Tighter secret handling often increases delivery complexity, requiring organisations to balance deployment convenience against stronger identity controls. The hardest cases are usually not obvious production outages, but environments where secret values are injected indirectly through sidecars, external controllers, or operator-managed resources. In those environments, a manifest can remain valid while the real dependency is missing, expired, or scoped too narrowly for the workload’s runtime path.

There is no universal standard for this yet, but best practice is evolving toward separating “deployment truth” from “credential truth.” That is especially important when multiple clusters, preview environments, or rapid ephemeral namespaces are involved, because secret ownership becomes easy to lose across controllers. If the platform team allows ArgoCD to reconcile a secret object without a separate issuance and rotation process, the cluster may look compliant while the application is effectively operating on borrowed time.

Teams should pay special attention to rollback workflows, because reverting a deployment can also revert a reference to an expired credential source. Likewise, sealed or encrypted secret formats reduce plaintext exposure in Git, but they do not solve stale secret ownership by themselves. In other words, the control problem is not only “is the secret hidden?” but “who can renew, revoke, and attest to it at runtime?”

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01Addresses secret exposure and lifecycle risks for non-human identities.
OWASP Agentic AI Top 10Secret-as-data failures mirror runtime authority problems in autonomous workloads.
CSA MAESTROM1Requires governance over machine identities and runtime access paths in orchestration stacks.
NIST AI RMFSupports governance and accountability for automated systems that depend on secrets.
NIST CSF 2.0PR.AC-4Least privilege and access control are central when workloads fetch credentials at runtime.

Treat every Kubernetes secret as an NHI credential with explicit issuance, rotation, and revocation ownership.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on July 28, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org