Open aaaaahaaaaa opened 6 months ago
This is currently an adoption blocker for my organization to use ArgoCD; we cannot enable domain-wide delegation because it is considered "too risky". Implementing this feature request would be great for us!
Second this, I would want to avoid domain-wide delegation as it's impersonating a privileged account and it could be challenging to audit. Would prefer to use service account with tightly scoped permissions.
Terrform documentation re: Google Workspace provides an alternative that could work: https://registry.terraform.io/providers/hashicorp/googleworkspace/latest/docs#authentication
Preflight Checklist
Problem Description
Google supports authenticating with the Groups API using a service account without domain-wide delegation. AFAICT from testing, DEX's connector doesn't support that method.
Tested with the following approach:
A
with access to the Group API without DWDoA using the documentation above.B
withiam.serviceAccountTokenCreator
role over service accountA
.serviceAccountFilePath
to credentials of SAB
.domainToAdminEmail
with email of SAA
.The following error is returned:
Proposed Solution
Connector should allow the same level of configuration for example as Vault's OIDC provider.
Additional Information
Additionally, the flow should also works if
serviceAccountFilePath
points directly to credentials of the SAA
, even without impersonation.