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/cmd/tailscaled
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>
2 years ago
..
childproc all: update copyright and license headers 2 years ago
debug.go cmd/tailscale, cmd/tailscaled: move portmapper debugging into tailscale CLI 2 years ago
depaware.txt ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2 years ago
generate.go cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 2 years ago
install_darwin.go all: update copyright and license headers 2 years ago
install_windows.go all: update copyright and license headers 2 years ago
manifest_windows_386.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
manifest_windows_amd64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
manifest_windows_arm64.syso cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
proxy.go all: update copyright and license headers 2 years ago
required_version.go all: update to Go 1.20, use strings.CutPrefix/Suffix instead of our fork 2 years ago
ssh.go all: update copyright and license headers 2 years ago
taildrop.go all: update copyright and license headers 2 years ago
tailscaled.defaults cmd/tailscaled: rename relaynode reference in defaults file comment 5 years ago
tailscaled.go net/tshttpproxy: don't proxy through ourselves 2 years ago
tailscaled.openrc tstest/integration/vms: use an in-process logcatcher (#2360) 3 years ago
tailscaled.service cmd/tailscaled: use explicit equal sign in --port=$PORT in tailscaled.service 2 years ago
tailscaled_bird.go all: update copyright and license headers 2 years ago
tailscaled_notwindows.go all: update copyright and license headers 2 years ago
tailscaled_test.go all: update copyright and license headers 2 years ago
tailscaled_windows.go all: pass log IDs as the proper type rather than strings 2 years ago
windows-manifest.xml cmd/{tailscale,tailscaled}: embed manifest into Windows binaries 2 years ago
with_cli.go all: update copyright and license headers 2 years ago