cilium (Fix): hubble-relay certificate chain - expired rotating CA #1771
No reviewers
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters!1771
Loading…
Reference in a new issue
No description provided.
Delete branch "hubble-ca-expiry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the cilium HelmRelease failure on mini (Ready=False since 2026-11-20 16:29Z, right after the #1753 renovate bump to 1.20.5).
Root cause
hubble-relaycrash-loops (138+ restarts) with:The served leaf is fine:
*.default.hubble-grpc.cilium.io, valid to 2029-08-31. What expired is the CA in the leaf secrets'ca.crt:cert-manager/internal-root-cais a cert-managerCertificatewith noduration, so it gets the 90-day default and renews about every 60 days. cert-manager 1.21's defaultrotationPolicy: Alwaysgives every renewal a new key. It is on revision 3 now (valid 2026-09-29 to 2026-12-28).ClusterIssuer internal-ca-issuerwithcertValidityDuration: 1095(3 years). Issued 2026-08-31, they're nowhere near renewal, so their secrets still carry the CA generation that expired 2026-10-29. They're signed by a key that no longer exists.ca.crt. The old relay pod survived on an established connection; the 1.20.5 rollout started a new pod, which can't handshake, so helm's wait fails onDeployment/hubble-relay status: Failed.Only these two leaves come from
internal-ca-issuer; nothing else trusts that CA.Fix
internal-root-ca:duration: 87600h(10y),renewBefore: 8760h,privateKey.rotationPolicy: Never. With a stable key, a leaf keeps verifying across CA renewals, which is the bug class here. The change re-issues the CA once with its current key (rotationPolicy Never reuses the key in the secret).hubble.tls.auto.certValidityDuration: 365. Leaves are shorter than the CA and renew yearly, picking up the current bundle.Rollout (after merge)
cert-manager-resources, which re-issuesinternal-root-ca(same key, 10y). Check:kubectl -n cert-manager get certificate internal-root-ca -o jsonpath='{.status.notAfter}'gives about 2036.cmctl renew -n kube-system hubble-server-certs hubble-relay-client-certs(or
kubectl -n kube-system delete secret hubble-server-certs hubble-relay-client-certs; cert-manager recreates them).kubectl -n kube-system rollout restart deploy/hubble-relay.kubectl -n kube-system get hr cilium→ Ready. hubble-relay Running, no restarts.hubble statusvia the relay works.Risk: datapath is unaffected. Hubble TLS is observability only, and cilium agents don't restart for a cert change.
Checks
kustomize build clusters/mini/ciliumOK.kubectl --context mini apply --dry-run=serverofcluster-issuers.yamlaccepted.generic-templates/standard/cert-manageris also used by other clusters that render generic-templates (not c1, which is cluster-local). The change is safe there too: any cert-manager CA gets the same fix.