GitOps & ArgoCD (50 Qs)•Part 3: Enterprise Scale, Security & Edge GitOps (Senior / Staff)
Validating GitOps Manifests pre-commit and pre-merge with Conftest, OPA Gatekeeper, and Kyverno.
senior LevelSecurity & Auth
In Simple Words: Shift-left security validates that YAML manifests meet enterprise compliance rules before they are merged into the GitOps repository.
- Conftest (OPA / Rego): Runs in pull request CI to verify that containers have CPU/Memory resource limits, images come strictly from internal registries, and security contexts prohibit root user execution.
- Kyverno / OPA Gatekeeper: In-cluster admission controllers that enforce the same policies as a final gatekeeper, rejecting non-compliant manifests even if merged.