gpt4 book ai didi

How to log in ArgoCD using SSO with Google email(如何通过Google电子邮件使用SSO登录ArgoCD)

转载 作者:bug小助手 更新时间:2023-10-25 14:07:21 28 4
gpt4 key购买 nike



I am trying to make it possible for us to long in ArgoCD using google accounts.
Has anyone done it, and could it give me the confog and if possible some other tips arround it. Do we need rbac as weel, create groups for the users and assign policiies?
would appreciate it

我正试图使我们有可能长期在ArgoCD使用谷歌帐户。有没有人做过,它可以给我confog,如果可能的话,围绕它的一些其他提示。我们需要rbac作为weel,为用户创建组和分配策略?将不胜感激


I have tried this config

我已经尝试过此配置


Argo Configs


configs:
cm:
# -- Create the argocd-cm configmap for [declarative setup]
create: true
# -- Argo CD's externally facing base URL (optional). Required when configuring SSO
url: https://company.com/api/dex/callback

# Dex configuration

dex.config: |
connectors:
- config:
clientID: "${clientID}"
clientSecret: "${clientSecret}"
orgs:
- name: https://accounts.google.com
type: oidc
id: google
name: Google

更多回答

You don't need RBAC to be able to log in using SSO.

您不需要RBAC即可使用SSO登录。

Have you checked argo-cd.readthedocs.io/en/stable/operator-manual/… and dexidp.io/docs/connectors/google?

你查过argo-cd.readthedocs.io/en/stable/operator-manual/…了吗和dexidp.io/docs/Connectors/Google?

You seem to have used type: oidc but you could use type: google.

您似乎使用了type:oidc,但您也可以使用type:google。

@GaëlJ I havent implemented rbac yet, I am trying to authenticate from google for now

@Gaëlj我还没有实现RBAC,我现在正在尝试从Google进行身份验证

@GaëlJ used type : google and got this error Failed to query provider "company.com/api/dex": Get "argocd-dex-server:5556/api/dex/.well-known/openid-configuration": EOF

@Gaëlj使用类型:GOOGLE并获得此错误,查询提供商“COMPANY.com/api/dex”失败:Get“argocd-dex-server:5556/api/dex/.well-known/openid-configuration”:EOF

优秀答案推荐

you should use this:

您应该使用以下命令:


dex.config: |
connectors:
- type: oidc
id: google
name: Google
config:
issuer: https://accounts.google.com
clientID: $argocd-iap-oauth-client:client_id
clientSecret: $argocd-iap-oauth-client:client_secret

更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com