Why is the pull model considered more secure?
IntermediateConceptGitOps Principles & Delivery Models
Answer
In push, every pipeline (and anyone who can edit a pipeline) effectively has cluster-admin. A leaked CI secret means a compromised cluster. In pull, the credential to change the cluster lives only inside the cluster (the Argo CD controller's ServiceAccount, or scoped cluster Secrets on a hub). CI needs only write access to a Git repo, which is protected by branch rules and review. Inbound access to the API server is not required, so private clusters stay private.
More on GitOps Principles & Delivery Models
What is GitOps, in one or two sentences?BeginnerWhat are the four OpenGitOps principles?BeginnerExplain push-based vs pull-based deployment.BeginnerIs "we keep our Kubernetes YAML in Git and CI runs `kubectl apply`" GitOps?BeginnerWhat are the main benefits of GitOps that you would pitch to a team?BeginnerWhat are the honest downsides or pain points of GitOps?Intermediate