By NHI Mgmt Group Editorial TeamBased on Akeyless: “Akeyless: Developer-Focused Secrets Management for Modern Teams” (March 24, 2025)

TL;DR: Akeyless says developer-first secrets management can reduce friction across Git, CI/CD, containers, and local development, but hardcoded values, scattered storage, and runtime injection still leave trust gaps unless access, versioning, and revocation are governed consistently. Convenience does not remove the need for tight secrets lifecycle controls.


At a glance

What this is: Akeyless argues that developer-first secrets management fits modern engineering workflows, but secrets still become exposed when hardcoded values, scattered storage, and weak lifecycle controls are left in place.

Why it matters: That matters because IAM, PAM, and NHI programmes fail when developer convenience outpaces secret governance, especially across CI/CD, containers, local tooling, and runtime injection.

👉 Read Akeyless's analysis of developer-first secrets management and trust gaps


Context

Developer-first secrets management is the practice of making secrets available inside the tools engineers already use, without storing them in code or relying on manual handoffs. The security problem is that speed-focused workflows often spread API keys, tokens, and credentials across local machines, CI/CD systems, and containerised jobs faster than governance can track them.

This is an NHI governance problem as much as a developer-experience problem. Secrets that move through GitOps, Terraform, Kubernetes, and automation scripts need the same lifecycle discipline as any other non-human identity credential, or the organisation inherits hidden access paths and weak revocation coverage.


Key questions

Q: What breaks when teams rely on long-lived secrets in modern delivery pipelines?

A: Long-lived credentials create standing access that persists across builds, deployments, and troubleshooting sessions. They are copied into logs, configs, and artifacts, which means one leak can survive multiple workflow stages and remain usable far longer than intended.

Q: Why do runtime secret injection and GitOps still leave governance gaps?

A: They reduce exposure, but they do not automatically solve ownership, revocation, or stale reference problems. A secret can be injected correctly and still remain reachable through cached tokens, old versions, or copied environment values. Governance fails when the lifecycle is treated as separate from the delivery path.

Q: How do security teams know when secret sprawl is becoming unmanageable?

A: When they cannot confidently answer where each secret exists, which workloads depend on it, and how quickly it can be retired without breaking business services. If the answer requires manual archaeology across code, tickets, and pipelines, the sprawl is already beyond routine control.

Q: Should teams use the same secret across development, test, and production?

A: No. Reuse across environments widens blast radius and makes revocation ambiguous because one credential now represents multiple trust zones. Separate credentials by environment, scope them to the smallest required workflow, and ensure each one can be withdrawn without affecting unrelated systems.


Technical breakdown

Why runtime secret injection changes the trust boundary

Runtime injection moves secret delivery from commit time or static configuration into the execution moment. That reduces exposure in source code and build artefacts, but it also shifts trust to the control plane that decides who can retrieve the secret, when, and under what policy. The critical design issue is not just where the secret lives, but whether the injection path is authenticated, scoped, audited, and short-lived. If the retrieval path is broad or persistent, the secret is still reachable even if it never appears on disk.

Practical implication: govern injection as an access pathway, not just a storage method.

GitOps and secret versioning do not remove lifecycle risk

GitOps and infrastructure as code make secret references easier to manage, but references are not the same as revocation. A versioned secret can still be overexposed if older references, cached tokens, or downstream environment copies remain active. For developers, that means the lifecycle problem extends beyond repository hygiene into propagation control, rollback discipline, and auditability across build and deployment stages. Version history is useful only if stale access can be withdrawn as cleanly as the new version is published.

Practical implication: treat version tracking and revocation as one workflow, not separate tasks.

Hardcoded secrets remain the fastest path to invisible exposure

Hardcoded API keys, tokens, and credentials create exposure before governance even sees the asset. Once they land in code, logs, or pipeline metadata, they become copyable artefacts with unclear ownership and slow remediation. That is why hardcoding is more than bad hygiene: it breaks the assumption that secret use is centrally mediated. In developer-first environments, the control objective is to keep secrets out of artefacts altogether, then enforce retrieval at runtime under policy.

Practical implication: eliminate hardcoded secrets before focusing on more advanced optimisation.


Threat narrative

Attacker objective: The objective is to reuse exposed credentials to reach systems and environments beyond the intended developer workflow.

  1. Entry occurs when a secret is embedded in code, a config file, or a CI/CD workflow where it can be copied outside the intended control path.
  2. Credential access follows when the exposed secret is reused from logs, repos, or pipeline metadata and becomes available to anyone with read access.
  3. Impact comes when the same secret is used to reach runtime environments, cloud services, or automation jobs that were assumed to be isolated.
  • 12,000 secrets in LLM training data: Truffle Security found 11,908 live API keys and passwords hard-coded in web pages captured by Common Crawl, a dataset used to train LLMs.
  • OneLogin API flaw (CVE-2025-59363): A OneLogin API flaw exposed OIDC client secrets to anyone with an API key, including vendors (CVE-2025-59363); fixed with no customer impact.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 150+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Developer-first convenience has become a secret sprawl accelerator: When secrets must work across Git, CI/CD, containers, and local development, the governance challenge is not access alone but propagation control. A secret that can be fetched everywhere can also be copied everywhere, which means lifecycle visibility must extend across each engineering boundary. The practitioner conclusion is simple: make distribution narrower than the toolchain expects.

Hardcoded secret exposure is a lifecycle failure, not a coding mistake: The real issue is that the organisation allowed a credential to exist outside governed retrieval in the first place. Once a secret is in code or pipeline metadata, the blast radius is determined by how widely that artefact is replicated before detection. The practitioner conclusion is to treat artefact leakage as a control-plane event, not a cleanup task.

GitOps does not equal governance: Versioned references, declarative deployment, and IaC support are useful only if secret ownership, access scope, and revocation remain explicit. A repository can track what changed without proving who still has the old path. The practitioner conclusion is to separate change management from credential lifecycle management.

Ephemeral secret trust debt: Developer-first models assume that a secret can be injected just in time and withdrawn cleanly after use. That assumption fails when build systems, runtime logs, local files, and cached tokens preserve access beyond the intended session. The implication is that engineers and security teams must re-evaluate whether current delivery paths create unseen residual access rather than controlled ephemerality.

From our research library:

  • 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.
  • Enterprises manage far more machine secrets than human ones: 20 times as many according to Enterprise Strategy Group, and 45 times according to GitGuardian.
  • Read next: Guide to NHI Rotation Challenges

What this signals

Developer-first workflows expose an identity governance gap: Secrets that move cleanly through GitOps and CI/CD often create a false sense of control because the retrieval path is easier to automate than the revocation path. That is why NHI governance has to track distribution and withdrawal together, not as separate disciplines.

Hardcoded credentials remain the clearest indicator of lost control: Once a secret is present in code, container files, or pipeline metadata, the organisation has already lost the assumption that the credential is only present where policy intended. The practical signal is simple: if the same secret appears in more than one stage, lifecycle governance has already fallen behind.


For practitioners

  • Remove hardcoded secrets from all developer artefacts Scan source repositories, CI/CD definitions, container files, and local environment patterns for embedded API keys, tokens, and credentials, then eliminate them from the development path entirely.
  • Treat secret injection as a policy-controlled access path Require authenticated, scoped, and audited retrieval at runtime so the secret is delivered only to the workload or job that needs it and not to the surrounding toolchain.
  • Unify secret versioning with revocation Make version changes, rollback, and deactivation part of the same lifecycle process so old references cannot outlive the current secret state.
  • Reduce reuse across local, test, and production environments Prevent the same secret from being copied into multiple stages of the engineering pipeline by using environment-specific credentials and tightly bound access rules.

Key takeaways

  • Developer-first secrets management can reduce friction, but it does not eliminate the governance problem created when secrets spread across engineering toolchains.
  • The main risk is not just storage in the wrong place. It is the combination of hardcoded exposure, broad distribution, and weak revocation discipline.
  • Teams need to govern secret retrieval, versioning, and withdrawal as one lifecycle so convenience does not create hidden residual access.

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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-02 — Secret LeakageThe article centres on secrets spreading into code, CI/CD, and runtime artefacts.
NHI-07 — Long-Lived SecretsRuntime and reusable credentials remain risky when they outlive the intended workflow.
NHI-05 — Overprivileged NHIDeveloper and service access must stay narrowly scoped across toolchains and environments.
Recommendation — Scan developer artefacts for exposed secrets and revoke any credential that appears outside governed storage. Shorten secret lifetimes and replace persistent credentials with tightly scoped, time-bound delivery. Restrict secret access to the minimum workflow and environment required for execution.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementSecret lifecycle, rotation, and revocation map directly to authenticator management.
Recommendation — Apply authenticator management controls to rotate, replace, and retire developer-facing secrets.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is about controlling which identities can retrieve which secrets.
Recommendation — Review entitlements for secret retrieval and remove standing access that exceeds workflow need.

Key terms

  • Developer-first secrets management: A delivery model that exposes secrets through the tools engineers already use, such as CLIs, SDKs, APIs, GitOps, and CI/CD pipelines. The goal is to reduce manual handling without weakening control over where secrets exist, who can retrieve them, and how they are revoked.
  • Secrets Sprawl: The uncontrolled proliferation of sensitive credentials, API keys, tokens, passwords, certificates, across codebases, cloud environments, CI/CD pipelines, and configuration files. In 2024, over 50 million leaked secrets were found on the dark web.
  • Runtime Secret Injection: A pattern that retrieves credentials only when a process starts, rather than storing them in files or source control. For AI developer tools, it reduces secret persistence, limits accidental disclosure, and keeps the credential tied to a specific execution session.
  • Secret lifecycle governance: Secret lifecycle governance is the set of controls that manage creation, distribution, rotation, expiry, and revocation for credentials. It treats secrets as living access artefacts rather than static text. That approach is essential when the same credential may travel through code, email, and automation.

What's in the full article

Akeyless's full article covers the operational detail this post intentionally leaves for the source:

  • CLI, SDK, and REST API usage patterns for pulling secrets into developer workflows
  • Native CI/CD and GitOps integration examples for runtime injection into builds and deployments
  • Local development guidance for fetching secrets into .env files and environment variables
  • Comparative capability notes for Docker, Kubernetes, Terraform, and Helm usage

👉 The full Akeyless article covers workflow integrations, access controls, and secret injection details for developers.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 17, 2026.
Updated on October 7, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org