TL;DR: GitOps formalises infrastructure and authorization changes through Git as a source of truth, improving traceability, rollback, and environment consistency across CI/CD and Kubernetes workflows according to Cerbos. The governance shift matters because change control, auditability, and policy drift detection become part of the identity and access model, not just the deployment pipeline.
At a glance
What this is: This is a GitOps guide focused on using Git as a source of truth for infrastructure, CI/CD, Kubernetes, and authorization policy management.
Why it matters: It matters because identity and access teams need deployment workflows that preserve change history, reduce drift, and make authorization decisions auditable across environments.
👉 Read Cerbos' guide to GitOps for cloud-native authorization
Context
GitOps is a change-management pattern that stores infrastructure and policy configuration in Git so teams can review, version, and roll back changes consistently. In identity-heavy environments, that matters because authorization policy, deployment state, and operational accountability are increasingly coupled.
For IAM and platform teams, the governance value is not automation for its own sake. It is the ability to treat configuration changes as controlled identity-adjacent changes, especially when service permissions, deployment roles, and environment-specific policy all need to stay in sync.
Key questions
Q: How should teams govern authorization policy changes in GitOps pipelines?
A: Treat policy changes like code changes. Put them through review, testing, and promotion controls, then require clear ownership for who can modify policy files and deployment logic. That keeps authorization changes visible, auditable, and reversible instead of letting them drift into production through informal updates.
Q: Why do GitOps workflows matter for identity and access governance?
A: They matter because many access-relevant changes now happen in configuration, not in a traditional IAM console. GitOps creates a durable audit trail for those changes, which helps teams detect drift, assign accountability, and roll back mistakes across environments.
Q: What breaks when deployment permissions are too broad in GitOps?
A: Broad repository or pipeline permissions let a single change affect infrastructure, application behaviour, and access policy at the same time. That creates a large identity blast radius, because the same actor can alter both the deployment path and the controls that govern it.
Q: How can security teams tell whether GitOps is really improving governance?
A: Look for consistent commit-to-deployment traceability, low configuration drift, and clear rollback records tied to specific changes. If teams cannot explain who changed what, or if live systems regularly diverge from the repository, GitOps is not delivering its governance promise.
Technical breakdown
Declarative configuration as the operational source of truth
GitOps uses declarative files, usually YAML, to describe the desired state of systems rather than the steps needed to reach that state. That shift matters because the repo becomes the canonical record of intent, while automation reconciles actual state back to that intent. In practice, this reduces ambiguity about what should be running, who changed it, and when the change occurred. It also makes drift easier to detect because the live environment can be compared against the repository. For identity teams, the same pattern can be applied to authorization policy and environment access rules.
Practical implication: treat repository state as the reference point for policy review, drift detection, and rollback decisions.
GitOps in CI/CD and Kubernetes workflows
GitOps fits naturally into CI/CD because deployments are triggered from version-controlled changes, then validated through automated checks. In Kubernetes, that is especially useful because cluster configuration, manifests, and service settings change frequently and can diverge across environments. GitOps gives teams a way to trace those changes and tie them to a specific commit or pull request. That improves reproducibility and makes failure analysis easier when a deployment behaves differently from what was expected. The governance benefit is not only speed, but also accountability across release pipelines and cluster operations.
Practical implication: align deployment approvals, validation checks, and rollback paths to the same commit history used for configuration changes.
Authorization policy stored and tested like code
Cerbos is presented in the article as an example of applying GitOps to authorization. The key technical idea is that access control policy can be versioned, tested, and promoted through the same repository-based workflow as application code. That reduces the chance that policy changes are made ad hoc in production or drift away from application behaviour. It also means teams can validate policy changes before release, which is important when permissions vary by role, geography, or resource type. For identity governance, that makes authorization more observable and easier to manage across application delivery.
Practical implication: version authorization policy alongside application code so changes can be tested before they affect live access decisions.
NHI Mgmt Group analysis
GitOps turns configuration drift into a governance problem, not just an operations problem. When infrastructure, deployment logic, and authorization policy all live in Git, the repository becomes the control plane for change accountability. That matters to identity teams because access decisions increasingly depend on configuration that can change outside traditional IAM workflows. The practitioner conclusion is that review, approval, and rollback need to follow the same source of truth as the systems they govern.
Authorization policy is no longer safely separable from delivery pipelines. The article shows policy as code flowing through the same mechanisms as build and deployment logic, which means permission change and release change can become the same event. That collapses the old assumption that access control is reviewed independently of application delivery. The practitioner conclusion is that identity governance must track policy movement through CI/CD, not only final access entitlements.
Identity blast radius: the real risk is not one bad deployment, but one untracked configuration change that alters access across environments. GitOps narrows this risk by preserving history, but it does not remove the need for disciplined review of who can change repositories, pipelines, and policy files. The practitioner conclusion is that repo permissions and deployment approvals become part of the identity security model.
GitOps is strongest when teams need repeatability across multiple environments. The article’s Kubernetes and multi-service examples point to a broader reality: once the same codebase supports different configurations, identity and authorization drift becomes easier to introduce and harder to spot. The practitioner conclusion is that environment-specific policy needs explicit lifecycle control, not informal coordination.
This approach validates a broader identity governance shift toward auditable infrastructure control. GitOps does not replace IAM, but it extends identity governance into the places where operational change actually happens. That includes access to repositories, policy files, and deployment automation. The practitioner conclusion is that mature programmes should treat delivery tooling as part of the authorization perimeter.
From our research:
- 15% of commit authors have leaked at least one secret in their contribution history, according to The State of Secrets Sprawl 2025.
- 38% of secrets incidents in collaboration and project management tools like Slack, Jira, and Confluence are classified as highly critical or urgent.
- GitOps governance should therefore extend beyond code review to secret handling, policy file access, and the lifecycle controls described in NHI Lifecycle Management Guide.
What this signals
GitOps changes the control point for identity-sensitive operations: the practical question is no longer just who has access, but who can change the files that define access, deployment state, and rollback behaviour. With 15% of commit authors having leaked at least one secret in their contribution history, per The State of Secrets Sprawl 2025, repository governance becomes a security control, not an admin task.
Configuration authority drift: when policy, infrastructure, and release automation share the same change path, the boundary between application delivery and identity governance disappears. Teams should watch for repo permission creep, pipeline overreach, and weak separation between policy authors and deployers.
The most mature programmes will treat GitOps as part of the broader control surface for workload identity and authorization, then map those controls to the OWASP Non-Human Identity Top 10 and the NIST Cybersecurity Framework 2.0.
For practitioners
- Version authorization policy alongside application code Store access control rules in the same repository and promotion flow as application changes so policy updates are reviewed, tested, and traceable before release.
- Restrict repository and pipeline change rights Limit who can modify deployment manifests, policy files, and CI/CD workflows, then review those privileges as high-impact access because they can alter runtime behaviour.
- Add drift checks between Git and live environments Compare declared configuration with running state in Kubernetes and other deployment targets so unauthorized or accidental divergence is visible before it accumulates.
- Use commit-linked rollback for failed changes Tie rollback procedures to specific commits or pull requests so teams can reverse a bad configuration change quickly and prove what changed.
Key takeaways
- GitOps is valuable to identity teams because it makes configuration, deployment, and authorization changes traceable and reversible.
- The main governance risk is not only bad code, but unreviewed changes to the files that define access and runtime behaviour.
- Security teams should manage repository permissions, drift detection, and rollback as part of the identity control plane.
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 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-06 | GitOps exposes policy and secret handling to repository-based change control. |
| NIST CSF 2.0 | PR.AC-4 | Repository and pipeline permissions determine who can change access-bearing configurations. |
| NIST Zero Trust (SP 800-207) | SC-7 | GitOps supports continuous verification of configuration against desired state. |
Use desired-state reconciliation to reduce drift and enforce policy consistency across environments.
Key terms
- GitOps: GitOps is an operating model that uses Git as the authoritative record for infrastructure, deployment, and policy changes. Teams declare desired state in version-controlled files, then use automation to reconcile the live environment back to that state and preserve a clear change history.
- Declarative configuration: Declarative configuration describes the state a system should have, rather than the steps needed to build it. In practice, this makes reviews easier, supports repeatable deployments, and gives security and identity teams a stable reference point for drift detection and rollback.
- Configuration drift: Configuration drift is the gap between documented or intended state and what is actually running. In GitOps environments, drift matters because the repository may say one thing while the live system behaves differently, creating governance, security, and troubleshooting risk.
- Policy as code: Policy as code is the practice of expressing access and control rules in versioned, testable files rather than managing them only through manual administration. It helps teams review, validate, and promote authorization changes using the same discipline they apply to application code.
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 responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
This post draws on content published by Cerbos: GitOps guidance for cloud-native authorization and deployment workflows. Read the original.
Published by the NHIMG editorial team on 2025-09-17.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org