tailscale/types/key
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
..
chal.go client/tailscale, tsnet, ipn/ipnlocal: prove nodekey ownership over noise 2022-11-02 09:22:26 -07:00
control_test.go types/key: add a special key with custom serialization for control private keys (#2792) 2021-09-03 13:17:46 -07:00
control.go types/key: add ControlPrivate.Shared wrapper too 2022-07-19 14:49:01 -07:00
disco_test.go types/key: fix license header on disco files. 2021-10-29 13:45:49 -07:00
disco.go all: fix spelling mistakes 2022-09-29 13:36:13 -07:00
machine_test.go types/key: add MachinePrecomputedSharedKey.Open 2022-07-22 12:05:29 -07:00
machine.go types/key: add MachinePrecomputedSharedKey.Open 2022-07-22 12:05:29 -07:00
nl_test.go tka: support rotating node-keys in node-key signatures 2022-08-24 10:41:01 -07:00
nl.go all: store NL keys per profile 2022-11-15 19:51:52 +00:00
node_test.go types/key: add missing ChallengePublic.UnmarshalText 2022-10-27 11:12:38 -07:00
node.go tka,types/key: implement direct node-key signatures 2022-08-03 15:42:27 -07:00
util_test.go types/key: add a special key with custom serialization for control private keys (#2792) 2021-09-03 13:17:46 -07:00
util.go tka,types/key: implement NLPrivate glue for tailnet key authority keys 2022-07-29 12:16:32 -07:00