-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
oidc: document oidc prefix flags and add note about Okta #5884
Conversation
Deploy preview ready! Built with commit 13fae14 https://deploy-preview-5884--kubernetes-io-master-staging.netlify.com |
docs/admin/authentication.md
Outdated
Kubernetes names (such as the `system:` users). For example, if the provider | ||
URL is `https://accounts.google.com` and the username claim maps to `jane`, the | ||
plugin will authenticate the user as: | ||
If `--oidc-username-prefix` isn't provided and `--oidc-username-claim` is set to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we hoist this into the table? I expected to see the default behavior and opt out info by the param there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, update
41aafde
to
c85b918
Compare
docs/admin/authentication.md
Outdated
The first option is to use the `oidc` authenticator. This authenticator takes your `id_token`, `refresh_token` and your OIDC `client_secret` and will refresh your token automatically. Once you have authenticated to your identity provider: | ||
The first option is to use the kubectl `oidc` authenticator, which set the `id_token` as a bearer token for all requests and refreshes the token once it expires. After you've logged into your provider, use kubectl to add your `id_token`, `refresh_token`, `client_id`, and `client_secret` to configure the plugin. | ||
|
||
Providers that don't return an `id_token` as part of their refresh token response (e.g. [Okta](https://developer.okta.com/docs/api/resources/oidc.html#response-parameters-4)) aren't supported by this plugin and should use "Option 2" below. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which set -> which sets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the review. updated
@ericchiang @liggitt One comment in the text. Otherwise, Docs LGTM. |
c85b918
to
13fae14
Compare
@liggitt Are you ready to give tech approval? Thanks. |
/lgtm |
Document the new
--oidc-[group|username]-prefix
flags and add a note about Okta's refreshing. Also remove the "extra-scopes" field since it's no longer used (kubernetes/kubernetes#45317).cc @kubernetes/sig-auth-pr-reviews
Docs for kubernetes/kubernetes#50875
Closes kubernetes/kubernetes#36847
This change is