-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to change the user's password via argocd CLI #4096
Comments
And if I login into UI with admin account /settings/accounts
|
Hi, |
Hi, @golance-mightydevops
Secondly, I delete the argoservice pod:
And then waiting for argocd-server pod to recover, the new argocd-server pod's name is the password of the admin account. Thirdly, I add the new local accout xxx, and then use the |
We actually don't support password reset via the API server, only password change. |
@jessesuen the issue here is that the OP has created a new local user and can't set the new local user's password. there is nowhere in the documentation that states what a new local users password is, or how to fetch it. |
the admin user must be enabled during the password change of a new local user |
i tried this (user1 is new local user, and the admin password has been changed before): OLD_PWD=$(kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2)
argocd account update-password --account user1 --current-password "$OLD_PWD" --new-password '123456' then i got this error: finally, i duplicate admin password from apiVersion: v1
kind: Secret
name: argocd-secret
data:
accounts.user1.password: <encrypt>
accounts.user1.passwordMtime: <encrypt>
admin.password: <encrypt>
admin.passwordMtime: <encrypt>
... after that, i can update the new user's password, its current-password is the same as admin's current password: argocd account update-password --account user1 --current-password <admin password> --new-password '123456' |
The workaround of copying worked for me too, but it's terrible. IMHO The admin should be able to set passwords without the old one. |
password reset is documented now https://github.com/argoproj/argo-cd/blob/master/docs/faq.md#i-forgot-the-admin-password-how-do-i-reset-it here's the one-liner I used to set the password to admin:
|
@winmillwill Thank you so much for dropping that... Just saved me 1 hour of debugging and reporting. |
After hours of struggle i figured out that admin user password is the current-password to reset. Hope this helps. |
It is not immediately clear what the `<current-user-password>` should be as shown by this issue: #4096. This comment should make it more clear that when users are setting passwords as the default `admin` user, they should be using the `admin` password here. Signed-off-by: John Chen <[email protected]>
It is not immediately clear what the `<current-user-password>` should be as shown by this issue: argoproj#4096. This comment should make it more clear that when users are setting passwords as the default `admin` user, they should be using the `admin` password here. Signed-off-by: John Chen <[email protected]> Signed-off-by: viktorplakida <[email protected]>
Hi all. I have the admin user enabled, I can login on the UI with this admin user, and have created 2 users with a configmap. I can list and see this 2 users with :
But when I want to create password for this 2 new local users like the docs explain, it's impossible :
return to me :
EDIT : Tested with the v2.2.2 and the v2.2.3 version of argo-cd. Thx a lot if someone know what I'm doing wrong ;p |
Up tested with helm chart v2.2.5 Can't find where is the problem ! |
Thanks, @enderson-pan In my case, I just want to reset it and use the init password, which I can easily get it via command (official)
So follow up your comments, I only run these commands, then can login argocd now.
Now you can see admin's new init password and can login with it |
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a
question in argocd slack channel.
Checklist:
argocd version
.Describe the bug
I am unable to change a password for the new user via CLI
After applying this I see a list of accounts
I tried to get the default password using this call
But when I paste, I always get the following error
*** Enter current password:
FATA[0002] rpc error: code = InvalidArgument desc = current password does not match
SO right now I am stuck. And based on other answers the pod name has changed. How do I reset the user's password programmatically without knowing it's default password?
Expected behavior
Ability to update password for the user.
Version
The text was updated successfully, but these errors were encountered: