-
Notifications
You must be signed in to change notification settings - Fork 153
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
Add 'check oidc-config' command #4146
Merged
Merged
Commits on Nov 24, 2023
-
The command validates a given OIDC configuration, either from a referenced Secret or from CLI flags. This will help users debug issues with Weave GitOps OIDC configuration as well as provide a way to validate a configuration before putting it on a cluster. The command consumes OIDC configuration from CLI flags or from a Secret on a cluster and sends the user through an OIDC authorization code flow. If it succeeds, the username and groups claims are logged to stdout. The command validates the Secret for missing fields and also prints all errors returned from the OIDC provider so that users know what went wrong. This will work out of the box with OIDC providers given they are configured to accept "http://localhost:9876" as a redirect URI.
Max Jonas Werner committedNov 24, 2023 Configuration menu - View commit details
-
Copy full SHA for b806226 - Browse repository at this point
Copy the full SHA b806226View commit details -
Use existing code for parsing ID token claims
Max Jonas Werner committedNov 24, 2023 Configuration menu - View commit details
-
Copy full SHA for e87c73e - Browse repository at this point
Copy the full SHA e87c73eView commit details -
Add
--groups-claim
flag tocheck oidc-config
This commit also aligns the existing `--claim-username` flag with the K8s one and renames it to `--username-claim`.
Max Jonas Werner committedNov 24, 2023 Configuration menu - View commit details
-
Copy full SHA for 203b8b8 - Browse repository at this point
Copy the full SHA 203b8b8View commit details -
Max Jonas Werner committed
Nov 24, 2023 Configuration menu - View commit details
-
Copy full SHA for cdbda35 - Browse repository at this point
Copy the full SHA cdbda35View commit details -
Add info about redirect URI to
check oidc-config
usage text.Max Jonas Werner committedNov 24, 2023 Configuration menu - View commit details
-
Copy full SHA for 1c7d1fe - Browse repository at this point
Copy the full SHA 1c7d1feView commit details -
Rebuild CLI reference to incorporate latest changes
Max Jonas Werner committedNov 24, 2023 Configuration menu - View commit details
-
Copy full SHA for aea5640 - Browse repository at this point
Copy the full SHA aea5640View commit details -
Max Jonas Werner committed
Nov 24, 2023 Configuration menu - View commit details
-
Copy full SHA for e370fe4 - Browse repository at this point
Copy the full SHA e370fe4View commit details
Commits on Nov 27, 2023
-
The generated files have been updated to reflect the updated version of the buf command.
Max Jonas Werner committedNov 27, 2023 Configuration menu - View commit details
-
Copy full SHA for ca74e05 - Browse repository at this point
Copy the full SHA ca74e05View commit details -
Fix unit test to align with library updates
golang.org/x/oauth2 changed its error handling in v0.8.0 (https://go-review.googlesource.com/c/oauth2/+/451076) to actually parse error responses and return the error code in the returned error variable.
Max Jonas Werner committedNov 27, 2023 Configuration menu - View commit details
-
Copy full SHA for b4e58a2 - Browse repository at this point
Copy the full SHA b4e58a2View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.