tailscale/types
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
..
dnstype net/dns, types/dnstypes: update some comments, tests for DoH 2022-09-08 17:16:13 -07:00
empty types/empty: add Message, stop using mysterious *struct{} 2020-02-14 13:35:49 -08:00
flagtype types/flagtype: fix bug showing the default port value (shown in --help) 2020-10-19 20:18:31 -07:00
ipproto net/packet, wgengine/filter: support SCTP 2021-03-20 21:34:13 -07:00
key all: store NL keys per profile 2022-11-15 19:51:52 +00:00
logger all: remove old +build tags 2022-11-04 07:25:42 -07:00
netlogtype types/netlogtype: add constants for maximum serialized sizes of ConnectionCounts (#6163) 2022-11-09 15:50:07 -08:00
netmap cmd/tailscale: make "up", "status" warn if routes and --accept-routes off 2022-11-11 10:56:50 -08:00
nettype net/netaddr: start migrating to net/netip via new netaddr adapter package 2022-07-25 16:20:43 -07:00
opt all: fix spelling mistakes 2022-09-29 13:36:13 -07:00
persist all: store NL keys per profile 2022-11-15 19:51:52 +00:00
preftype types/preftype: don't use iota for consts persisted to disk 2021-04-02 09:02:54 -07:00
structs types/structs: add structs.Incomparable annotation, use it where applicable 2020-05-03 14:05:32 -07:00
tkatype client,cmd/tailscale,ipn,tka,types: implement tka initialization flow 2022-08-22 11:35:16 -07:00
views ipn/prefs: add views 2022-10-24 15:57:00 -07:00