forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for google transitive groups (argoproj#9487)
Signed-off-by: Trung <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]> Co-authored-by: pasha-codefresh <[email protected]> Signed-off-by: Kevin Lyda <[email protected]>
- Loading branch information
Showing
1 changed file
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,17 +142,6 @@ data: | |
|
||
## OpenID Connect plus Google Groups using Dex | ||
|
||
--- | ||
!!! warning "Limited group information" | ||
|
||
When using this feature you'll only receive the list of groups the user is a direct member. | ||
|
||
So, lets say you have this hierarchy of groups and subgroups: | ||
`[email protected] --> [email protected] --> [email protected] --> [email protected]` | ||
The only group you would receive through Dex would be `[email protected]` | ||
|
||
--- | ||
|
||
We're going to use Dex's `google` connector to get additional Google Groups information from your users, allowing you to use group membership on your RBAC, i.e., giving `admin` role to the whole `[email protected]` group. | ||
|
||
This connector uses two different credentials: | ||
|
@@ -229,6 +218,20 @@ Go through the same steps as in [OpenID Connect using Dex](#openid-connect-using | |
5. Login to Argo CD and go to the "User info" section, were you should see the groups you're member | ||
![User info](../../assets/google-groups-membership.png) | ||
6. Now you can use groups email addresses to give RBAC permissions | ||
7. Dex (> v2.31.0) can also be configure to fetch transitive group membership as follows: | ||
|
||
dex.config: | | ||
connectors: | ||
- config: | ||
redirectURI: https://argocd.example.com/api/dex/callback | ||
clientID: XXXXXXXXXXXXX.apps.googleusercontent.com | ||
clientSecret: XXXXXXXXXXXXX | ||
serviceAccountFilePath: /tmp/oidc/googleAuth.json | ||
adminEmail: [email protected] | ||
fetchTransitiveGroupMembership: True | ||
type: google | ||
id: google | ||
name: Google | ||
### References | ||
|
||
|