You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/util/winutil
Aaron Klotz 90fd04cbde ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled
I realized that a lot of the problems that we're seeing around migration and
LocalBackend state can be avoided if we drive Windows pref migration entirely
from within tailscaled. By doing it this way, tailscaled can automatically
perform the migration as soon as the connection with the client frontend is
established.

Since tailscaled is already running as LocalSystem, it already has access to
the user's local AppData directory. The profile manager already knows which
user is connected, so we simply need to resolve the user's prefs file and read
it from there.

Of course, to properly migrate this information we need to also check system
policies. I moved a bunch of policy resolution code out of the GUI and into
a new package in util/winutil/policy.

Updates #7626

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
1 year ago
..
policy ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 1 year ago
mksyscall.go all: update copyright and license headers 1 year ago
svcdiag_windows.go all: update copyright and license headers 1 year ago
winutil.go all: update copyright and license headers 1 year ago
winutil_notwindows.go all: update copyright and license headers 1 year ago
winutil_windows.go all: update copyright and license headers 1 year ago
winutil_windows_test.go all: update copyright and license headers 1 year ago
zsyscall_windows.go cmd/tailscaled, util/winutil: log Windows service diagnostics when the wintun device fails to install 2 years ago