tailscale/cmd
Brad Fitzpatrick 515866d7c6 ipn, ipnserver, cmd/tailscale: add "server mode" support on Windows
This partially (but not yet fully) migrates Windows to tailscaled's
StateStore storage system.

This adds a new bool Pref, ForceDaemon, defined as:

// ForceDaemon specifies whether a platform that normally
// operates in "client mode" (that is, requires an active user
// logged in with the GUI app running) should keep running after the
// GUI ends and/or the user logs out.
//
// The only current applicable platform is Windows. This
// forced Windows to go into "server mode" where Tailscale is
// running even with no users logged in. This might also be
// used for macOS in the future. This setting has no effect
// for Linux/etc, which always operate in daemon mode.

Then, when ForceDaemon becomes true, we now write use the StateStore
to track which user started it in server mode, and store their prefs
under that key.

The ipnserver validates the connections/identities and informs that
LocalBackend which userid is currently in charge.

The GUI can then enable/disable server mode at runtime, without using
the CLI.

But the "tailscale up" CLI was also fixed, so Windows users can use
authkeys or ACL tags, etc.

Updates #275
2020-10-12 14:28:21 -07:00
..
cloner cmd/cloner: generate a package-level Clone function 2020-09-04 16:25:18 -07:00
derper cmd/derper: add missing html.EscapeString calls in /debug page 2020-09-15 15:00:19 -07:00
microproxy cmd/microproxy: add -insecure flag 2020-09-15 15:07:56 -07:00
mkpkg cmd/mkpkg: support adding empty directories. 2020-05-04 17:57:13 -04:00
tailscale ipn, ipnserver, cmd/tailscale: add "server mode" support on Windows 2020-10-12 14:28:21 -07:00
tailscaled all: upgrade to latest version of depaware 2020-10-02 20:35:13 -07:00
tsshd wgengine/monitor: don't call LinkChange when interfaces look unchanged 2020-03-10 11:03:19 -07:00