argoproj-labs / terraform-provider-argocd

Terraform provider for Argo CD
Mozilla Public License 2.0
427 stars 89 forks source link

rpc error: code = Unauthenticated desc = invalid session: Token is not valid yet when using un/pass #454

Open md850git opened 1 month ago

md850git commented 1 month ago

Terraform Version, ArgoCD Provider Version and ArgoCD Version

Terraform version: 1.6.6
ArgoCD provider version: 6.1.1
ArgoCD version:v2.10.1+a79e0ea

Terraform configuration

provider "argocd" {
  server_addr = local.argo_hostname
  username    = "admin"
  password    = data.aws_secretsmanager_secret_version.mysecret.secret_string
  insecure    = true
  grpc_web    = true
  user_agent  = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"
}

Question

rpc error: code = Unauthenticated desc = invalid session: Token is not valid yet

how do i fix this issue. i can login fine through the console fine with the same admin creds

mkilchhofer commented 1 month ago

i can login fine through the console fine with the same admin creds

What do you mean by "through the console"? Via the Argo CD CLI client? If so, can you share the command which worked?

md850git commented 1 month ago

i can login fine through the console fine with the same admin creds

What do you mean by "through the console"? Via the Argo CD CLI client? If so, can you share the command which worked?

I used the gui to login

mkilchhofer commented 1 month ago

Very strange that you use username and password and it errors something about the token

rpc error: code = Unauthenticated desc = invalid session: Token is not valid yet