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.

Table 1. Kubernetes OIDC variables
VariableDescriptionMandatoryDefault
CLUSTER_VAR_kubernetes_oidc_disabledOverrides 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.NoDerived
KUBERNETES_OIDCEnables 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.Notrue 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. With CERT_ISSUER=acme, the certificate is publicly trusted. With CERT_ISSUER=ca or CERT_ISSUER=selfsigned, 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=false first to keep it off.
  • Kill switch: The cluster-vars phase publishes kubernetes_oidc_disabled as true until the vault-configure phase publishes the issuer, so the Cloudera Cloud Factory API never uses OIDC before OpenBao is ready. When you run the cluster-vars phase again on a cluster that already published the same issuer, the installer keeps the published value false.
  • Turning OIDC off: Set KUBERNETES_OIDC=false and run the installer again. The cluster-vars phase writes kubernetes_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.