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
Denton Gentry 280c84e46a ipn/ipnserver, paths, logpolicy: move Window config files out of %LocalAppData%
C:\WINDOWS\system32\config\systemprofile\AppData\Local\
is frequently cleared for almost any reason: Windows updates,
System Restore, even various System Cleaner utilities.

The server-state.conf file in AppData\Local could be deleted
at any time, which would break login until the node is removed
from the Admin Panel allowing it to create a new key.

Carefully copy any AppData state to ProgramData at startup.
If copying the state fails, continue to use AppData so at
least there will be connectivity. If there is no state,
use ProgramData.

We also migrate the log.conf file. Very old versions of
Tailscale named the EXE tailscale-ipn, so the log conf was
tailscale-ipn.log.conf and more recent versions preserved
this filename and cmdName in logs. In this migration we
always update the filename to
c:\ProgramData\Tailscale\tailscaled.log.conf

Updates https://github.com/tailscale/tailscale/issues/2856

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
3 years ago
..
ipnlocal tailcfg, health: add way for control plane to add problems to health check 3 years ago
ipnserver ipn/ipnserver, paths, logpolicy: move Window config files out of %LocalAppData% 3 years ago
ipnstate cmd/tailscale: fix "tailscale ip $self-host-hostname" 3 years ago
localapi client/tailscale,ipn/localapi: warn on tailscale/tailscaled version skew 3 years ago
policy ipn/policy: mark peerapi4 and peerapi6 as interesting services 4 years ago
backend.go ipnlocal: accept a new opts.UpdatePrefs field. 4 years ago
doc.go Move Linux client & common packages into a public repo. 5 years ago
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 4 years ago
handle.go ipn: another controlplane synonym 3 years ago
message.go ipn: allow b to be nil in NewBackendServer 4 years ago
message_test.go ipn: allow b to be nil in NewBackendServer 4 years ago
prefs.go ipn: another controlplane synonym 3 years ago
prefs_clone.go cmd/cloner: add Clone context to regen struct assignments 3 years ago
prefs_test.go ipn, etc: use controlplane.tailscale.com 3 years ago
store.go ipn/store: add ability to store data as k8s secrets. 3 years ago
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 5 years ago