Token model for cluster access

The control plane hosts an OpenID Connect discovery endpoint, and each project cluster trusts that issuer and validates the tokens with native Kubernetes OIDC support.

The control plane hosts an OpenID Connect (OIDC) discovery endpoint, which makes Cloudera Cloud Factory an OIDC issuer in front of the OIDC provider of OpenBao. Each project cluster trusts that issuer, and the Kubernetes API server of the project cluster validates the tokens with its native OIDC support. Because Kubernetes performs the validation, cluster authentication relies on a standard Kubernetes capability instead of a custom implementation.

CKP configures the following API server settings on each project cluster to establish the trust:

Table 1. API server settings for token trust
SettingValuePurpose
AudienceA value unique to the cluster, which includes the project identifierRestricts a token to the single cluster that it was issued for
Group prefixA prefix applied to every group in a token, which is oidc: by defaultSeparates a group in a token from the built-in Kubernetes groups, so that a token cannot claim a privileged built-in group
Issuer URLThe OIDC discovery endpoint that the control plane hostsTells the cluster where to fetch the key set that validates the token signature

A cluster role binding on the project cluster grants the administrative cluster role to the prefixed group in the token.

This token-based access is on by default. It is controlled by the KUBERNETES_OIDC installer option, and it replaces a stored admin.conf file for projects that Cloudera Cloud Factory provisions. Projects that you import, virtual clusters, air-gapped projects, and projects that existed before the feature was turned on continue to use the stored administrator configuration.