From 2d93449efa8a43c9654b8ecba6fb5e00d613f50f Mon Sep 17 00:00:00 2001 From: Kabir Sikand Date: Fri, 15 May 2026 22:21:52 +0000 Subject: [PATCH] control/controlclient: handle Node BlueprintID/BlueprintConfig in peerChangeDiff peerChangeDiff iterates every Node field reflectively and panics if it encounters one it does not know how to compare. After tailcfg.Node grew BlueprintID and BlueprintConfig (capver 139), it needed cases for both. Any change to either field forces a peer re-fetch rather than producing a delta PeerChange, matching how other identity-shaping fields like Tags and MachineAuthorized are handled. Updates tailscale/corp#cleanup Signed-off-by: Kabir Sikand --- control/controlclient/map.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/control/controlclient/map.go b/control/controlclient/map.go index 34b5ecc55..fdef290ce 100644 --- a/control/controlclient/map.go +++ b/control/controlclient/map.go @@ -1047,6 +1047,16 @@ func peerChangeDiff(was tailcfg.NodeView, n *tailcfg.Node, onFalse func(string)) onFalse(field) return nil, false } + case "BlueprintID": + if was.BlueprintID() != n.BlueprintID { + onFalse(field) + return nil, false + } + case "BlueprintConfig": + if !was.BlueprintConfig().Equal(n.BlueprintConfig.View()) { + onFalse(field) + return nil, false + } case "PrimaryRoutes": if !views.SliceEqual(was.PrimaryRoutes(), views.SliceOf(n.PrimaryRoutes)) { onFalse(field)