Files
tailscale/cmd/containerboot
chaosinthecrd 076da81190 cmd/containerboot: resync egress rules when an FQDN target changes
The egress proxy only stored a target FQDN's addresses after a lookup
that returned some, and on a netmap update only compared them with peer
device names. Targets that failed to resolve, had no addresses or were
Tailscale Services were never rechecked, so their rules stayed missing
until a config change or Pod restart.

This fixes this by storing every lookup result, rebuilt on each sync,
and resolving each stored FQDN in shouldResync the same way sync does.
A target that leaves the netmap now triggers a resync too, so its rules
are removed straight away. serviceIPsFromNetMap returns each Service IP
once, so a Service gaining or losing a host doesn't cause a resync.

Fixes #21159
Fixes #21426

Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
2026-11-17 16:22:01 +00:00
..