Files
tailscale/cmd
Kabir Sikand 3617eb33af cmd/tailscale/cli: drop node-local prefs from blueprint locked-fields
Brings the v1 locked-field set to spec v2 (§11). The v1 list inherited
ten entries from the v1.1-era KB doc; the latest spec narrowed the set
to fields the blueprint actually owns, dropping:

  - hostname / operator: node-local concerns the blueprint has no
    opinion on, per the join-flag rationale at the bottom of §11.
  - shields-up / webclient: not in the v2 prefs allowlist (the v1
    projection also drops them; see the followup commit).

Six entries remain: advertise-tags, advertise-routes,
advertise-connector, ssh, accept-dns, accept-routes. advertise-routes
also covers advertise-exit-node, since exit-node advertisement is
stored as the v4+v6 default routes in Prefs.AdvertiseRoutes and shares
its MaskedPrefs bit.

TestCheckBlueprintSetLocked_AllLockedFields shrinks accordingly. A new
TestCheckBlueprintSetLocked_NodeLocalFieldsAllowed pins the negative
contract: each of the four dropped fields must NOT be rejected on a
bound node, so a future regression can't silently re-add them.

Updates #cleanup

Signed-off-by: Kabir Sikand <[email protected]>
2026-05-19 15:30:54 +00:00
..