Files
tailscale/ipn
Kabir Sikand a86a228350 ipn/ipnlocal: drop shields-up + webclient from blueprint prefs allowlist
Brings the client-side blueprint pref projection to spec v2. The v1
table had five entries (accept-dns, accept-routes, ssh, shields-up,
webclient); the latest spec (§6 in-scope #10, §13) lists four
(accept-dns, accept-routes, ssh, funnel). The v1.1-era shields-up and
webclient were retracted; pref:funnel is added in concept but has no
ipn.Prefs boolean to project onto — funnel eligibility today flows
through tailcfg.NodeAttrFunnel via the existing nodecap path, not
through ipn.Prefs.

For the client reconciler that means three rows:

  pref:accept-dns    -> Prefs.CorpDNS
  pref:accept-routes -> Prefs.RouteAll
  pref:ssh           -> Prefs.RunSSH

pref:funnel falls through as an "unknown pref" on the projection side;
the compile-time allowlist in corp still accepts it. The gap is
documented in BLUEPRINTS-FOLLOWUPS.md so a future change adding a
first-class Prefs.FunnelEligible bool can plug the table cleanly.

Tests:

  - TestReconcileBlueprintPrefs_PresenceIsOnAbsenceIsOff loses its
    ShieldsUp/RunWebClient columns and gains funnel + v1-legacy
    coverage rows.
  - New TestReconcileBlueprintPrefs_LegacyPrefsLeaveLocalFieldsAlone
    pins the distinguishing behavior: pref:shields-up and
    pref:webclient must not flip the corresponding bool either way
    (no silence-forces-OFF, no presence-forces-ON), even if a
    blueprint still lists them. That catches a regression where
    someone re-adds the v1 setters by accident.

Updates #cleanup

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