You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When DEX is running on GCP, there is no need to export a GCP service account credential and make it available as serviceAccountFilePath. In fact, it is bad security practice to generate long-term credentials such as GCP service account user-managed keys.
Proposed Solution
If no serviceAccountFilePath is provided, obtain the Application Default Credential (ADC) from the environment.
Preflight Checklist
Problem Description
The Google provider documentation for fetching groups requires the parameter
serviceAccountFilePath
.When DEX is running on GCP, there is no need to export a GCP service account credential and make it available as
serviceAccountFilePath
. In fact, it is bad security practice to generate long-term credentials such as GCP service account user-managed keys.Proposed Solution
If no
serviceAccountFilePath
is provided, obtain the Application Default Credential (ADC) from the environment.See https://pkg.go.dev/cloud.google.com/go#hdr-Authentication_and_Authorization
Alternatives Considered
No response
Additional Information
To my understanding, the
adminEmail
is also no longer needed either. You can have the GCP service account access the GSuite directory API directly, without having to impersonate another user: https://support.google.com/a/answer/162106#zippy=%2Cset-up-domain-wide-delegation-for-a-clientThe text was updated successfully, but these errors were encountered: