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]>
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]>