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/ipn/ipnlocal
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
..
testdata ipn/ipnlocal: fix the path for writing cert files (#7203) 2 years ago
c2n.go log: use logtail to log and upload sockstat logs 2 years ago
cert.go ipn/ipnlocal: use atomicfile.WriteFile in certFileStore 2 years ago
cert_js.go all: update copyright and license headers 2 years ago
cert_test.go ipn/ipnlocal: fix the path for writing cert files (#7203) 2 years ago
dnsconfig_test.go all: update copyright and license headers 2 years ago
expiry.go ipn/ipnlocal: handle more edge cases in netmap expiry timer 2 years ago
expiry_test.go ipn/ipnlocal: handle more edge cases in netmap expiry timer 2 years ago
local.go ipn/ipnlocal: automatically upload sockstats logs when the period ends 2 years ago
local_test.go all: pass log IDs as the proper type rather than strings 2 years ago
loglines_test.go all: pass log IDs as the proper type rather than strings 2 years ago
network-lock.go cmd/tailscale: surface node-key for locked out tailnet-lock peers 2 years ago
network-lock_test.go ipn,cmd/tailscale: implement resigning nodes on tka key removal 2 years ago
peerapi.go sockstats: remove per-interface stats from Get 2 years ago
peerapi_h2c.go all: update copyright and license headers 2 years ago
peerapi_macios_ext.go all: update copyright and license headers 2 years ago
peerapi_test.go ipn/ipnlocal: drop not required StateKey parameter 2 years ago
profiles.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2 years ago
profiles_notwindows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2 years ago
profiles_test.go ipn/ipnlocal: use presence of NodeID to identify logins 2 years ago
profiles_windows.go ipn/ipnlocal, util/winutil/policy: modify Windows profile migration to load legacy prefs from within tailscaled 2 years ago
serve.go ipn/ipnlocal: [serve/funnel] use actual SrcAddr as X-Forwarded-For (#7600) 2 years ago
serve_test.go all: update copyright and license headers 2 years ago
ssh.go all: update copyright and license headers 2 years ago
ssh_stub.go all: update copyright and license headers 2 years ago
ssh_test.go ipn/ipnlocal: drop not required StateKey parameter 2 years ago
state_test.go all: pass log IDs as the proper type rather than strings 2 years ago