Credential types
This table compares the administrative access token that automation uses with the user kubeconfig, including the lifetime of each credential.
The following table compares the two kinds of cluster access credential:
| Credential | Used by | Lifetime |
|---|---|---|
| Administrative access token | The Cloudera Cloud Factory automation that connects to a project cluster | A JSON Web Token (JWT) that OpenBao issues, with a 12-hour time to live |
| User kubeconfig | A user who runs commands against a project cluster | A client certificate that stays valid for the validity period that the user selects when generating the kubeconfig |
The administrative token is scoped to a single project cluster, so no long-lived administrative credential persists in the control plane for a cluster that Cloudera Cloud Factory provisions with the KUBERNETES_OIDC installation setting on, which is the default. Imported clusters, virtual clusters, and projects that were created before the setting was turned on keep a stored administrative kubeconfig. For more information, see Authentication and cluster access token model.
When you generate a user kubeconfig, you select the admin, edit, or view role and a validity period. The kubeconfig remains valid until the end of that period. For more information, see Kubeconfig files in Overview.
