Kubernetes OIDC variables
Enable Kubernetes OIDC so that the Cloudera Cloud Factory API reaches managed clusters with short-lived identity tokens from OpenBao.
When Kubernetes OIDC is enabled, the Cloudera Cloud Factory API reaches the clusters that it manages with short-lived identity tokens from OpenBao instead of a stored administrator kubeconfig. The vault-configure phase configures the OpenBao identity token issuer, the clusters signing key, the ccf-cluster-tokens policy, and a Kubernetes authentication role with a token lifetime of 10 minutes. The phase then publishes the issuer URL, https://<taikun_api_host>/v1/identity/oidc, and sets kubernetes_oidc_disabled to false in the cluster-vars ConfigMap. The Cloudera Cloud Factory API creates the per-project roles, not the installer.
| Variable | Description | Mandatory | Default |
|---|---|---|---|
| CLUSTER_VAR_kubernetes_oidc_disabled | Overrides the kill switch that the Cloudera Cloud Factory API reads. The value false means that OIDC is on, and the value true means that OIDC is off. Any other value fails the cluster-vars phase. When KUBERNETES_OIDC is false, the installer ignores the value false and prints a warning. | No | Derived |
| KUBERNETES_OIDC | Enables or disables identity token authentication to the managed clusters. Valid values: true, false. The installer turns OIDC on when bootstrap.env does not set this variable. | No | true when the variable is absent |
Observe the following about Kubernetes OIDC:
- Requirements: BASE_HOST or CLUSTER_VAR_taikun_api_host must be set to a valid host name, and CLUSTER_VAR_cluster_env must be a lowercase DNS label (letters a to z, digits, and hyphens, with a maximum of 63 characters). The preflight checks fail otherwise.
- Certificate trust: The kube-apiserver of each managed cluster must trust the certificate of the Cloudera Cloud Factory API host. In an air gap, set
CERT_ISSUER=caorCERT_ISSUER=selfsigned, because a public ACME service is not reachable. With these modes, the Cloudera Cloud Factory API hands the root certificate to new clusters as--oidc-ca-file, so OIDC works with a private CA. Without CERT_ISSUER, the installer prints a warning. - Upgrades: A bootstrap.env file that does not contain KUBERNETES_OIDC turns OIDC on at the next run. Set
KUBERNETES_OIDC=falsefirst to keep it off. - Kill switch: The
cluster-varsphase publishes kubernetes_oidc_disabled astrueuntil thevault-configurephase publishes the issuer, so the Cloudera Cloud Factory API never uses OIDC before OpenBao is ready. When you run thecluster-varsphase again on a cluster that already published the same issuer, the installer keeps the published valuefalse. - Turning OIDC off: Set
KUBERNETES_OIDC=falseand run the installer again. Thecluster-varsphase writeskubernetes_oidc_disabled=true, and the Cloudera Cloud Factory API stops creating roles. The OpenBao objects and the published issuer stay in place, and the installer prints a warning.
