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/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>
2 years ago
..
chal.go client/tailscale, tsnet, ipn/ipnlocal: prove nodekey ownership over noise 2 years ago
control.go types/key: add ControlPrivate.Shared wrapper too 2 years ago
control_test.go types/key: add a special key with custom serialization for control private keys (#2792) 3 years ago
disco.go all: fix spelling mistakes 2 years ago
disco_test.go types/key: fix license header on disco files. 3 years ago
machine.go types/key: add MachinePrecomputedSharedKey.Open 2 years ago
machine_test.go types/key: add MachinePrecomputedSharedKey.Open 2 years ago
nl.go all: store NL keys per profile 2 years ago
nl_test.go tka: support rotating node-keys in node-key signatures 2 years ago
node.go tka,types/key: implement direct node-key signatures 2 years ago
node_test.go types/key: add missing ChallengePublic.UnmarshalText 2 years ago
util.go tka,types/key: implement NLPrivate glue for tailnet key authority keys 2 years ago
util_test.go types/key: add a special key with custom serialization for control private keys (#2792) 3 years ago