Interview Prep/GitOps & Argo CD/Secrets, Controller Performance & Recovery

The admin password is lost and `argocd-initial-admin-secret` was deleted long ago.

BeginnerTroubleshootingSecrets, Controller Performance & Recovery
Answer

Likely causes → The initial secret is meant to be deleted after first login; the bcrypt hash lives in argocd-secret.

Diagnose → kubectl -n argocd get secret argocd-secret -o yaml | grep admin.password.

Fix →

HASH=$(argocd account bcrypt --password 'N3w-Str0ng-Pass')
kubectl -n argocd patch secret argocd-secret \
  -p "{\"stringData\": {\"admin.password\": \"$HASH\", \"admin.passwordMtime\": \"$(date +%FT%T%Z)\"}}"

Then log in and rotate.

Prevent → Disable the local admin (admin.enabled: "false") once SSO works, and keep a sealed break-glass procedure.

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

More on Secrets, Controller Performance & Recovery