Enabling TLS for Hubble Relay with cert-manager and OpenBao PKI
A guide to enabling TLS on the Hubble Relay[1] server in a Cilium cluster with cert-manager and the OpenBao[2] PKI, whose intermediate CA[3] signs the certificates; all manifests are managed with ArgoCD. During a Cilium upgrade a warning appeared that TLS was not enabled for the Hubble Relay server: the automatic issuance through cert-manager only covers the segment between the relay and the Cilium agents on the nodes, which is already encrypted by default, while the segment from hubble-ui and the Hubble CLI to the relay works without encryption by default. The setup gives each cert-manager ClusterIssuer[4] its own OpenBao auth role, policy, and PKI role, and allows certificate signing only for the three Hubble subdomains. Four errors occurred, each caused by a security check working as intended: missing certificate secrets, a PKI role that did not allow the Hubble domains, a token audience mismatch, and a requested certificate lifetime of three years that exceeded the intermediate CA's own expiry, fixed by shortening the validity to 365 days. The remaining TODO items include rotating the intermediate CA before it expires on 2028-08-09 and adding an alert when less than half a year of validity is left.
Sources
-
JPZenn JA
cert-managerとOpenBao PKIでHubble RelayをTLS化する

