@@ -594,44 +594,49 @@ type WorkspaceSecurityConfig struct {
594594// Authentication settings.
595595type Auth struct {
596596 // Public URL of the Identity Provider server.
597+ // For OpenShift with built-in OAuth, this field is not used, as OpenShift provides its own OAuth server.
597598 // +optional
598599 IdentityProviderURL string `json:"identityProviderURL,omitempty"`
599- // Name of the OpenShift `OAuthClient` resource used to set up identity federation on the OpenShift side.
600+ // Defined the OIDC client id.
601+ // For OpenShift with built-in OAuth, this is the name of the `OAuthClient` resource used to set up identity federation.
600602 // +optional
601603 OAuthClientName string `json:"oAuthClientName,omitempty"`
602- // Name of the secret set in the OpenShift `OAuthClient` resource used to set up identity federation on the OpenShift side.
603- // For Kubernetes, this can either be the plain text oAuthSecret value, or the name of a kubernetes secret which contains a
604- // key `oAuthSecret` and the value is the secret. NOTE: this secret must exist in the same namespace as the `CheCluster`
605- // resource and contain the label `app.kubernetes.io/part-of=che.eclipse.org`.
604+ // Defines the OAuth client secret.
605+ // It can either be a plain text secret value or the name of a Kubernetes secret
606+ // containing a key `oAuthSecret` with the secret value. The Kubernetes secret must exist in the same namespace
607+ // as the `CheCluster` resource and have the label `app.kubernetes.io/part-of=che.eclipse.org`.
608+ // For OpenShift with built-in OAuth, this is the secret set in the `OAuthClient` resource used to set up identity federation.
606609 // +optional
607610 OAuthSecret string `json:"oAuthSecret,omitempty"`
608- // Access Token Scope .
609- // This field is specific to Che installations made for Kubernetes only and ignored for OpenShift .
611+ // Defines the scope requested from the OIDC provider .
612+ // For OpenShift with built-in OAuth, the scope `user:full` is used by default .
610613 // +optional
611614 OAuthScope string `json:"oAuthScope,omitempty"`
612- // Inactivity timeout for tokens to set in the OpenShift `OAuthClient` resource used to set up identity federation on the OpenShift side.
615+ // Inactivity timeout for tokens in seconds.
616+ // This field is specific to OpenShift with built-in OAuth. It is set on the `OAuthClient` resource.
613617 // 0 means tokens for this client never time out.
614618 // +optional
615619 OAuthAccessTokenInactivityTimeoutSeconds * int32 `json:"oAuthAccessTokenInactivityTimeoutSeconds,omitempty"`
616- // Access token max age for tokens to set in the OpenShift `OAuthClient` resource used to set up identity federation on the OpenShift side.
620+ // Access token max age in seconds.
621+ // This field is specific to OpenShift with built-in OAuth. It is set on the `OAuthClient` resource.
617622 // 0 means no expiration.
618623 // +optional
619624 OAuthAccessTokenMaxAgeSeconds * int32 `json:"oAuthAccessTokenMaxAgeSeconds,omitempty"`
620- // Identity token to be passed to upstream. There are two types of tokens supported: `id_token` and `access_token`.
621- // Default value is `id_token`.
622- // This field is specific to Che installations made for Kubernetes only and ignored for OpenShift.
625+ // Identity token type to be passed to upstream services. Defaults to `id_token`.
626+ // For OpenShift with built-in OAuth, defaults to `access_token`.
623627 // +optional
624628 // +kubebuilder:validation:Enum=id_token;access_token
625629 IdentityToken string `json:"identityToken,omitempty"`
626630 // Gateway settings.
627631 // +optional
628632 // +kubebuilder:default:={configLabels: {app: che, component: che-gateway-config}}
629633 Gateway Gateway `json:"gateway,omitempty"`
630- // Advance authorization settings. Determines which users and groups are allowed to access Che.
631- // User is allowed to access Che if he/she is either in the `allowUsers` list or is member of group from `allowGroups` list
632- // and not in neither the `denyUsers` list nor is member of group from `denyGroups` list.
634+ // Advanced authorization settings. Determines which users and groups are allowed to access Che.
635+ // A user is allowed to access Che if the user is in the `allowUsers` list or is a member of a group in the `allowGroups` list,
636+ // and is not in the `denyUsers` list nor a member of a group in the `denyGroups` list.
633637 // If `allowUsers` and `allowGroups` are empty, then all users are allowed to access Che.
634- // if `denyUsers` and `denyGroups` are empty, then no users are denied to access Che.
638+ // If `denyUsers` and `denyGroups` are empty, then no users are denied access to Che.
639+ // Note: group-based authorization (`allowGroups` and `denyGroups`) is currently supported on OpenShift only.
635640 // +optional
636641 AdvancedAuthorization * AdvancedAuthorization `json:"advancedAuthorization,omitempty"`
637642}
0 commit comments