Istio crashes when a waypoint‑linked ServiceEntry has no endpoints
A nil‑pointer dereference occurs in istiod when generating inbound clusters for a DNS ServiceEntry attached to a waypoint that resolves to zero endpoints, causing the control plane to enter a crash loop.
In ambient mode, ServiceEntries of type STRICT_DNS or DNS_ROUND_ROBIN that lack endpoints produce a nil cluster, which istiod later dereferences while building waypoint inbound VIP clusters.
- The nil is returned from
buildClusterfor empty locality endpoints and is not filtered beforegetOrCreateIstioMetadata. - Only the inbound waypoint path lacks a guard; the outbound path already checks for nil.
- The panic is unprotected by any
recover(), so istiod exits and repeatedly restarts. - Fixed in 1.30.9, 1.31.5, and 1.32.1 by early‑returning on nil clusters and filtering them out.
Engineering Takeaway: Guard all cluster‑building paths against nil results, especially when user‑defined resources can produce empty configurations.





