TL;DR: CI/CD pipelines need secrets for testing, deployment, and infrastructure updates, but platform-native storage centralises exposure and limits rotation, auditability, and access control, according to Infisical's guide. The governance problem is not automation itself but the assumption that pipeline credentials can stay static, broad, and reviewable without increasing blast radius.
Editorial analysis by NHI Mgmt Group, based on content published by Infisical: “How to manage secrets in CI/CD pipelines?”.
Key questions
Q: What breaks when CI/CD pipelines rely on static secrets?
A: Static secrets create a reusable attack path into production infrastructure.
Q: Why do static credentials create more risk in CI/CD and Kubernetes environments?
A: Static credentials are copied into many places, reused by many systems, and difficult to revoke cleanly once they spread.
Q: How do security teams know whether secrets in CI/CD are actually controlled?
A: Look for three signals: how many secrets a workflow can reach, how long those secrets remain valid, and whether any of them can publish or sign artefacts.
Practitioner guidance
- Separate CI and CD secret scopes Give build, test and deployment stages only the credentials they need, and keep production runtime secrets out of the pipeline entirely.
- Move high-value credentials out of platform-native storage Use an external secrets manager when you need stronger audit trails, finer-grained access control and a smaller breach blast radius.
- Replace static pipeline secrets with short-lived credentials Prefer dynamic secrets or tightly scheduled rotation for jobs that can authenticate at runtime, especially for ephemeral pipeline steps.
Bottom line: CI/CD secrets are non-human identities in practice because they control automated access to testing, deployment and infrastructure. When those credentials are broad or long-lived, the compromise impact extends well beyond the pipeline job itself.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Pipeline secrets are identity controls, not just developer convenience. CI/CD credentials govern which automated process can test, publish or modify production assets, so they belong in the identity programme rather than only in DevOps tooling. When teams treat them as implementation detail, they underweight lifecycle, audit and revocation. The practical consequence is that pipeline access should be governed as a distinct non-human identity boundary.
A few things that frame the scale:
- 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.
- 54% of organisations are dissatisfied with their current secrets management solution because not all secrets are secured, and 43% cite lack of central management, according to the 2024 State of Secrets Management Survey.
A question worth separating out:
Q: What is the difference between platform-native secrets and external secrets managers?
A: Platform-native secrets live inside the CI/CD system and are simpler to start with, but they usually offer weaker rotation, access control and auditability. External secrets managers decouple secret storage from the pipeline, which improves isolation, supports runtime retrieval and reduces the blast radius of a platform breach.
👉 Read our full editorial: CI/CD pipeline secrets management: balancing speed and exposure