tailscale/ipn/ipnlocal
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>
2023-01-27 16:32:35 -08:00
..
c2n.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert_js.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
cert.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
dnsconfig_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
expiry_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
expiry.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
local_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
local.go ipn/ipnlocal: add /reset-auth LocalAPI endpoint 2023-01-27 16:32:35 -08:00
loglines_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
network-lock_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
network-lock.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_h2c.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_macios_ext.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
peerapi.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
profiles_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
profiles.go ipn/ipnlocal: add /reset-auth LocalAPI endpoint 2023-01-27 16:32:35 -08:00
serve_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
serve.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_stub.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
ssh.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
state_test.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00