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
Mihai Parparita 4973956419 ipn/ipnlocal: add /reset-auth LocalAPI endpoint
The iOS has a command to reset the persisted state of the app, but it
was doing its own direct keychain manipulation. This proved to be
brittle (since we changed how preferences are stored with #6022), so
we instead add a LocalAPI endpoint to do do this, which can be updated
in tandem.

This clears the same state as the iOS implementation (tailscale/corp#3186),
that is the machine key and preferences (which includes the node key).
Notably this does not clear the logtail ID, so that logs from the device
still end up in the same place.

Updates tailscale/corp#8923

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
1 year ago
..
ipnauth all: update copyright and license headers 1 year ago
ipnlocal ipn/ipnlocal: add /reset-auth LocalAPI endpoint 1 year ago
ipnserver all: update copyright and license headers 1 year ago
ipnstate all: update copyright and license headers 1 year ago
localapi ipn/ipnlocal: add /reset-auth LocalAPI endpoint 1 year ago
policy all: update copyright and license headers 1 year ago
store all: update copyright and license headers 1 year ago
backend.go all: update copyright and license headers 1 year ago
doc.go all: update copyright and license headers 1 year ago
fake_test.go all: update copyright and license headers 1 year ago
ipn_clone.go all: update copyright and license headers 1 year ago
ipn_view.go all: update copyright and license headers 1 year ago
prefs.go all: update copyright and license headers 1 year ago
prefs_test.go all: update copyright and license headers 1 year ago
serve.go all: update copyright and license headers 1 year ago
store.go all: update copyright and license headers 1 year ago