tailscale/ipn/ipnserver
Maisem Ali 235309adc4 all: store NL keys per profile
This moves the NetworkLock key from a dedicated StateKey to be part of the persist.Persist struct.
This struct is stored as part for ipn.Prefs and is also the place where we store the NodeKey.

It also moves the ChonkDir from "/tka" to "/tka-profile/<profile-id>". The rename was intentional
to be able to delete the "/tka" dir if it exists.

This means that we will have a unique key per profile, and a unique directory per profile.

Note: `tailscale logout` will delete the entire profile, including any keys. It currently does not
delete the ChonkDir.

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-11-15 19:51:52 +00:00
..
proxyconnect_js.go ipn/ipnserver: fix build on js/wasm 2022-05-19 15:01:27 -07:00
proxyconnect.go all: remove old +build tags 2022-11-04 07:25:42 -07:00
server_test.go ipn/ipnserver, cmd/tailscaled: fix peerapi on Windows 2022-06-03 12:24:47 -07:00
server.go all: store NL keys per profile 2022-11-15 19:51:52 +00:00