Skip to content

chore: add warning log if misconfigured groups oidc #7874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 8, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jun 6, 2023

This is not perfect, but if we find a 'groups' claim and it is not
configured, put out a warning log to give some information

Also update the docs.

Rational

We can't just assume the default is groups if their scope is something like MemberOf. This is because we want to determine if the groups is enabled purely by the config settings (before a user logs in). If the scope is something besides groups, we cannot know what claims it will return.

So if the scope is MemberOf, the deployment must also set --oidc-group-field=groups

Emyrk added 3 commits June 6, 2023 09:23
This is not perfect, but if we find a 'groups' claim and it is not
configured, put out a warning log to give some information
@Emyrk Emyrk requested a review from bpmct June 6, 2023 15:26
Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for this.

@Emyrk Emyrk merged commit b232432 into main Jun 8, 2023
@Emyrk Emyrk deleted the stevenmasley/groups_claim_not_used branch June 8, 2023 13:52
@github-actions github-actions bot locked and limited conversation to collaborators Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants