Argo CD – 单点登录后无法登录到用户界面

huangapple go评论58阅读模式
英文:

Argo CD - Can't Login To UI After SSO Login

问题

以下是您要求的代码部分的翻译:

I setup the Dex Github connector and can login successfully.
我设置了Dex Github连接器,并成功登录。

This is from the Dex server logs.
这是来自Dex服务器日志的内容。

This is from the argocd server logs.
这是来自argocd服务器日志的内容。

However, after login the screen blinks and I am back to the login page.
然而,在登录后,屏幕会闪烁,然后我回到登录页面。

This is my RBAC setup.
这是我的RBAC设置。

英文:

I setup the Dex Github connector and can login successfully.

This is from the Dex server logs.
msg="login successful: connector \"github\"

This is from the argocd server logs.

│ time="2023-03-07T14:09:52Z" level=info msg="Initializing OIDC provider (issuer: https://argocd.dev.xxx.com/api/dex)"                                                          │
│ time="2023-03-07T14:09:52Z" level=info msg="received unary call /session.SessionService/GetUserInfo" grpc.method=GetUserInfo grpc.request.content= grpc.service=session.SessionSer │
│ vice grpc.start_time="2023-03-07T14:09:52Z" span.kind=server system=grpc                                                                                                           │
│ time="2023-03-07T14:09:52Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=GetUserInfo grpc.service=session.SessionService grpc.start_time="2023-03-07 │
│ T14:09:52Z" grpc.time_ms=8.645 span.kind=server system=grpc

However, after login the screen blinks and I am back to the login page.

This is my RBAC setup.

configs:
  cm:
    accounts.xxx-admin: apiKey, login
    accounts.xxx-developer: apiKey, login
    url: "https://argocd.dev.xxx.com"
    dex.config: |
      connectors:
        - type: github
          id: github
          name: GitHub
          config:
            clientID: $dex.github.clientID:dex.github.clientID
            clientSecret: $dex.github.clientsecret:dex.github.clientSecret
            orgs:
            - name: xxxorg
  rbac:
    create: true
    policy.default: role:none
    policy.csv: |
      p, role:none, *, *, */*, deny
      p, role:xxxadmin, applications, *, */*, allow
      p, role:xxxadmin, clusters, get, *, allow
      p, role:xxxadmin, repositories, get, *, allow
      p, role:xxxadmin, repositories, create, *, allow
      p, role:xxxadmin, repositories, update, *, allow
      p, role:xxxadmin, repositories, delete, *, allow
      g, xxx-admin, role:admin
      g, xxx-developer, role:readonly
      g, xxxorg:devops, role:admin
      g, xxxorg:engineering, role:admin
      g, xxxorg:app, role:readonly
      g, xxxorg:automation, role:readonly
      g, xxxorg:automation-qa, role:readonly
      g, xxxorg:de, role:readonly

答案1

得分: 1

尝试重新启动 argocd-server pod。

英文:

Try restarting argocd-server pod

huangapple
  • 本文由 发表于 2023年3月7日 22:17:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/75663159.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定