GitOps Security for AI-Generated Kubernetes YAML
Harness, Friday, November 20th, 2026
Harness describes layered controls for AI-generated Kubernetes YAML: GitOps, OPA policies, admission control and post-deploy verification.
Harness argues that AI coding assistants produce Kubernetes configurations faster than teams can review them, and that valid YAML passing build and test can still run containers as root or expose services publicly.
It recommends a layered approach built on Harness GitOps, which uses Argo CD to reconcile cluster state with Git.
Server-side dry runs in CI evaluate manifests against cluster admission policies before merge, while Harness OPA policies govern GitOps Application objects such as destination namespaces.
The post notes OPA policies do not run for Argo CD auto-syncs or CLI syncs, so CI checks and admission control must cover workloads, while AI Verify adds post-deployment anomaly detection that can fail a pipeline and trigger rollback.