Subscribe to the Non-Human & AI Identity Journal

Notifications
Clear all

CI/CD secrets management gaps: are your controls keeping up?


(@akeyless)
Reputable Member
Joined: 1 year ago
Posts: 89
Topic starter  

TL;DR: CI/CD pipelines are often the most privileged systems in the estate, yet GitGuardian’s 2026 State of Secrets Sprawl report found nearly 29 million new secrets exposed on public GitHub in 2025, with CI/CD files among the main exposure paths. Static credentials, over-broad runner permissions, and weak rotation practices leave production access exposed far beyond the intended build window.

NHIMG editorial — based on content published by Akeyless: CI/CD secrets management and pipeline exposure

By the numbers:

Questions worth separating out

Q: How should security teams eliminate static secrets from CI/CD pipelines?

A: Security teams should move from stored credentials to runtime-issued access wherever possible.

Q: Why do CI/CD secrets create such a large blast radius?

A: CI/CD secrets often inherit permissions broad enough to deploy code, query cloud APIs, and modify infrastructure.

Q: What do teams get wrong about secret rotation in pipelines?

A: Teams often assume deleting a secret from the latest configuration removes the risk.

Practitioner guidance

  • Eliminate static credentials from pipeline definitions Move cloud, database, and deployment access to runtime-issued credentials so nothing sensitive is stored in workflow YAML, Dockerfiles, or source control.
  • Separate access by pipeline stage Give build, test, and production promotion steps different service accounts and different secret scopes so a compromise in one stage cannot automatically reach the next.
  • Scan before commit and after merge Use pre-commit hooks, CI-step scanners, and full-history repository scans together so secrets are blocked before they propagate into logs, artifacts, or image layers.

What's in the full article

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

  • Step-by-step examples for scanning secrets in pre-commit hooks, CI jobs, and full git history.
  • Concrete configuration patterns for GitHub Actions, GitLab CI, Jenkins, and CircleCI secret handling.
  • Implementation detail for OIDC federation, including where static cloud keys can be removed entirely.
  • Runbook guidance for rotating exposed credentials after a pipeline leak is confirmed.

👉 Read Akeyless's guide to CI/CD secrets management and pipeline exposure →

CI/CD secrets management gaps: are your controls keeping up?

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →



   
Quote
Share: