Interview Prep/GitOps & Argo CD/ApplicationSets, Rollouts & Image Updater

Image Updater with Git write-back fails with `failed to push: authentication required` or `protected branch hook declined`.

IntermediateTroubleshootingApplicationSets, Rollouts & Image Updater
Answer

Likely causes → It reuses the repo credentials Argo CD uses for reading, which are read-only deploy keys; or the target branch is protected against direct pushes.

Diagnose → Image Updater logs show the push error and the branch.

Fix → Provide a write credential (git:secret:argocd/git-write-creds) and either allow the bot to bypass protection on that branch or write to a separate branch (write-back-branch: image-updates) that a CI job merges via PR.

Prevent → Separate read and write credentials; keep a branch protection rule that allows only the bot's identity.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on ApplicationSets, Rollouts & Image Updater