Files
tailscale/ipn/ipnlocal
Kabir Sikand 78e1e4a4e9 ipn/ipnlocal: move BlueprintConfig copy out of peerStatusFromNode
peerStatusFromNode is shared by both the Self-status path and the
peer iteration in populatePeerStatusLocked, so the BlueprintConfig
copy added in the prior commit was leaking onto peer PeerStatus
entries whenever the server included BlueprintConfig in a peer's
Node record. The ipnstate.PeerStatus.BlueprintConfig docstring and
the v2 design both promise nil on peer entries.

Move the copy into MutateSelfStatus, alongside the other Self-only
fields. BlueprintID stays in the shared helper since both Self and
peers legitimately surface it (the status subcommand filters peers
by it).

Adds TestPeerStatusFromNodeDoesNotCopyBlueprintConfig to lock in
the invariant.

Updates #cleanup

Signed-off-by: Kabir Sikand <[email protected]>
2026-05-27 20:20:29 +00:00
..