Commit Graph
2 Commits
Author SHA1 Message Date
Nick Khyl 3696f58e46 util/syspolicy: make exit node, DNS and subnet settings per-profile
In this PR, we make ExitNodeID, ExitNodeIP, ExitNode.AllowOverride,
AllowedSuggestedExitNodes, ExitNodeAllowLANAccess, EnableDNSRegistration,
UseTailscaleDNSSettings, UseTailscaleSubnets and ReconnectAfter profile
settings, so they can be configured by a policy source in the current
profile's scope as well as for the device.

We also make the current profile's scope the default one, so that tailscaled
uses settings from such sources. Device settings still take precedence,
and nothing changes until a profile-scoped source is registered.

Updates tailscale/corp#51945

Change-Id: I472595eb723cd3419003a02de8c66b0d8ebf9417
Signed-off-by: Nick Khyl <[email protected]>
2026-11-30 18:03:04 -08:00
kari-ts a89b32904f ipn/localapi: use caller scope for syspolicy requests (#21701)
This resolves unscoped policy requests to the connected user's effective
policy instead of the default scope.

Tested by changing the device-scoped AlwaysOn policy at runtime and
running tailscale syspolicy reload. Cofnirmed tailscaled immediately
enforced the updated policy with tailscale down

Updates tailscale/corp#41463

Signed-off-by: kari <[email protected]>
2026-10-08 08:35:14 -07:00