Join our Newsletter — 33% off our NHI Course

GitLab policy uploads to Cerbos Hub: what IAM teams should check

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20230
Topic starter  

TL;DR: Policy uploads through GitLab CI/CD create a machine identity path that depends on reusable credentials, Cerbos says. Runner trust and secret ownership now sit inside the deployment boundary, so upload authority needs the same governance as other non-human identities.

Editorial analysis by NHI Mgmt Group, based on content published by Cerbos: “Automating Cerbos Policy deployments with GitLab Runners”.

Key questions

Q: Why do CI/CD policy upload jobs increase secret exposure risk?

A: Because the job must place reusable credentials into the execution context of a runner.

Q: What signs show that a policy deployment pipeline is too trusted?

A: Warning signs include broad write access to the CI file, shared runners used for sensitive uploads, secrets reused across unrelated jobs, and no clear owner for the credentials that publish policy to the central store.

Q: What breaks when CI/CD pipelines rely on static secrets?

A: Static secrets create a reusable attack path into production infrastructure.

Practitioner guidance

  • Harden pipeline secret handling Store Cerbos Hub client credentials as protected variables only where absolutely necessary, and remove them from any job that does not directly perform the upload.
  • Restrict who can modify upload jobs Limit changes to .gitlab-ci.yml and the policy upload job to trusted maintainers, because job edits can turn a legitimate release path into a secret exfiltration path.
  • Separate release runners from general builds Use a dedicated runner or equivalent isolation for policy uploads so the job does not share execution context with unrelated pipelines or lower-trust projects.

Bottom line: Automated policy uploads through GitLab CI/CD create a machine identity path that depends on reusable credentials, so release automation and identity governance are now linked.

Glossary terms: CI/CD secret exposure, Pipeline Trust Gap, Standing Deployment Authority, Machine Issued Credential Lifecycle

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 1 week ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20712
 

CI/CD policy delivery turns secret handling into part of the control plane. When policy uploads are automated from GitLab, the deployment path inherits the risk of whatever secrets the pipeline must use to authenticate. That makes the pipeline itself a governed identity path, not a neutral transport mechanism. Practitioners should treat pipeline credentials as part of the policy system's security boundary.

A few things that frame the scale:

  • 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations, according to the State of Secrets Sprawl 2026.
  • 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.

A question worth separating out:

Q: Should teams separate policy upload credentials from general build secrets?

A: Yes. Policy upload credentials should be isolated because they enable direct changes to a control store, which makes them more sensitive than ordinary build-time variables. Separation reduces the chance that a routine build issue, forked pipeline, or unrelated job can reach the policy channel.

👉 Read our full editorial: GitLab runner policy uploads turn credentials into standing authority


This post was modified 1 week ago by NHI Mgmt Group

   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.