Administrative connection flow
When the control plane connects to a project cluster, it obtains a token from OpenBao, assembles the access configuration in memory, and calls the Kubernetes API.
When the control plane connects to a project cluster, the following sequence occurs:
- The control plane requests a token from OpenBao for the role that belongs to the project.
- OpenBao issues a JSON Web Token (JWT) whose audience is unique to the target cluster and whose group claim grants the administrative role.
- The control plane fetches the stored cluster access configuration, which contains the cluster address and the cluster certificate authority data but no credentials.
- The control plane adds the token to the configuration in memory as a bearer token.
- The control plane calls the Kubernetes API of the cluster with that configuration.
- The Kubernetes API server validates the issuer, the token signature, and the audience, and maps the group claim to the prefixed Kubernetes group.
The assembled configuration exists in memory only for the duration of the connection and is not written to disk. The control plane keeps a token in memory for at most five minutes before it requests a new one, and each token has a 12-hour time to live. As a result, the control plane holds no long-lived administrative key material for a project cluster that uses token-based access. This flow applies to projects that Cloudera Cloud Factory provisions while the KUBERNETES_OIDC installation setting, which is on by default, is on. Other clusters, such as imported clusters, are reached with a stored administrative kubeconfig.
