Skip to content
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

update-password failed unable to extract token claims #1256

Open
pikomen opened this issue May 3, 2022 · 15 comments
Open

update-password failed unable to extract token claims #1256

pikomen opened this issue May 3, 2022 · 15 comments

Comments

@pikomen
Copy link

pikomen commented May 3, 2022

Describe the bug

error on update-password with argocd cli tool

argocd account get --account qa
Name:               qa
Enabled:            true
Capabilities:       apiKey, login

Tokens:
NONE
argocd account update-password --account qa --current-password ADMIN_PASS --new-password NEW_PASS
ERRO[0000] finished unary call with code Unknown         error="unable to extract token claims" grpc.code=Unknown grpc.method=UpdatePassword grpc.service=account.AccountService grpc.start_time="2022-05-03T17:07:55+03:00" grpc.time_ms=0.069 span.kind=server system=grpc
FATA[0000] rpc error: code = Unknown desc = unable to extract token claims

Related helm chart

argo-cd

To Reproduce

argo-cd-4.5.8
k8s v1.21.3

  config:
  # Argo CD's externally facing base URL (optional). Required when configuring SSO
    accounts.qa: apiKey, login
    accounts.dev: apiKey, login
    accounts.qa.enabled: "true"
    accounts.dev.enabled: "false"

Expected behavior

change password for new user created by config

Screenshots

No response

Additional context

No response

@github-actions
Copy link

github-actions bot commented Jul 3, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@theilgaard
Copy link

This is still present when using argocd cli and --core.

argocd@argocd-server-75f759c8c6-745kt:~$ argocd account update-password --account api_user --core
*** Enter new password for user api_user: 
*** Confirm new password for user api_user: 
ERRO[0002] finished unary call with code Unknown         error="unable to extract token claims" grpc.code=Unknown grpc.method=UpdatePassword grpc.service=account.AccountService grpc.start_time="2022-08-25T14:12:44Z" grpc.time_ms=0.068 span.kind=server system=grpc
FATA[0002] rpc error: code = Unknown desc = unable to extract token claims 

@acoyiu
Copy link

acoyiu commented Oct 6, 2022

This is still present when using argocd cli and --core.

argocd@argocd-server-75f759c8c6-745kt:~$ argocd account update-password --account api_user --core
*** Enter new password for user api_user: 
*** Confirm new password for user api_user: 
ERRO[0002] finished unary call with code Unknown         error="unable to extract token claims" grpc.code=Unknown grpc.method=UpdatePassword grpc.service=account.AccountService grpc.start_time="2022-08-25T14:12:44Z" grpc.time_ms=0.068 span.kind=server system=grpc
FATA[0002] rpc error: code = Unknown desc = unable to extract token claims 

Same situation here, does any have idea how to fix?

@giepa
Copy link

giepa commented Mar 8, 2023

Same for me

@xiaoweihong
Copy link

same

@IvanaDohop
Copy link

Same here.
How can we take this forward, should we reopen this issue or should someone create a new one?

@Joao-1
Copy link

Joao-1 commented May 15, 2023

~$ argocd account update-password --account dev --new-password <>     
ERRO[0003] finished unary call with code Unknown         error="unable to extract token claims" grpc.code=Unknown grpc.method=UpdatePassword grpc.service=account.AccountService grpc.start_time="2023-05-15T16:45:39-03:00" grpc.time_ms=0.045 span.kind=server system=grpc
FATA[0003] rpc error: code = Unknown desc = unable to extract token claims

Same here.

@ralf-berger
Copy link

Same. But creating a token for an apiKey account works.

@saracm93
Copy link

saracm93 commented May 28, 2023

I found a workaround by executing the request inside of the argocd-server pod:
kubectl exec -it -n argocd argocd-server-77d7885dcc-qcxpt bash
argocd login --username admin --password argocd-server
argocd account update-password --account qa --new-password

I hope this may help someone.

@sieczak-a
Copy link

Same here. Image argocd:v2.5.4.

I can create user, but could not change password

argocd account update-password --account alice --current-password 'MY_ADMIN_PASS' --new-password  mysecurepass
ERRO[0000] finished unary call with code Unknown         error="unable to extract token claims" grpc.code=Unknown grpc.method=UpdatePassword grpc.service=account.AccountService grpc.start_time="2023-06-06T10:28:37Z" grpc.time_ms=0.061 span.kind=server system=grpc
FATA[0000] rpc error: code = Unknown desc = unable to extract token claims

@jerguslejko
Copy link

same here 😢

@CryptoTr4der
Copy link

Same here!

@rishikanthc
Copy link

Facing the same on argocd:v2.8.2

@rishikanthc
Copy link

I was able to resolve this by changing the connection protocol for login. I used the steps below:

Login with argocd login <hostname> --username admin --grpc-web-root-path /
Check access by listing all users argocd account list

I was then able to update my password with
argocd account update-password --account <new-username> --new-password <new-password>

Hope this helps someone else !

@rshiva777
Copy link

rshiva777 commented Dec 20, 2023

We can do login to argocd using admin user, and the change password for a local user as below:

kubectl  exec -it -n argocd argocd-server-56788cb95f-s2hd9  bash
argocd login localhost:8080 --insecure
Username: admin
Password: 
'admin:login' logged in successfully
Context 'localhost:8080' updated

The issue is, when we are into kubernetes cluster context, and logged into argocd using core login as below, getting an errror

argocd login --core
Context 'kubernetes' updated

argocd account update-password --account ro-user --new-password  ro-test@123
ERRO[0001] finished unary call with code Unknown         error="unable to extract token claims" grpc.code=Unknown grpc.method=UpdatePassword grpc.service=account.AccountService grpc.start_time="2023-12-20T07:47:58Z" grpc.time_ms=0.042 span.kind=server system=grpc
FATA[0001] rpc error: code = Unknown desc = unable to extract token claims 

so, how can we update password using the core login ? any leads would be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests