ArgoCD how to reset Admin password.
ArgoCD Admin account credentials are stored in argocd-secret
and stored as k8s secret in argocd-initial-admin-secret
. For security, you must remove argocd-initial-admin-secret
while disabling admin
account. Admin password in argocd-initial-admin-secret
is stored as one way hash (.htpassword) and hence cannot be decrypted.
Recovery steps
- Enable Admin account and update argocd.
configs.cm.admin.enabled: true
- Remove admin.password from secret
argocd-secret
by editing or by running below command - Delete/redeploy argocd-server pod to get new admin password
Removing admin password
kubectl patch -n argocd cm argocd-cm --type='json' -p='[{"op": "remove", "path": "/data/accounts.alice"}]'
Example argocd-secret