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/ipn/localapi
James Tucker c09c95ef67 types/key,wgengine/magicsock,control/controlclient,ipn: add debug disco key rotation
Adds the ability to rotate discovery keys on running clients, needed for
testing upcoming disco key distribution changes.

Introduces key.DiscoKey, an atomic container for a disco private key,
public key, and the public key's ShortString, replacing the prior
separate atomic fields.

magicsock.Conn has a new RotateDiscoKey method, and access to this is
provided via localapi and a CLI debug command.

Note that this implementation is primarily for testing as it stands, and
regular use should likely introduce an additional mechanism that allows
the old key to be used for some time, to provide a seamless key rotation
rather than one that invalidates all sessions.

Updates tailscale/corp#34037

Signed-off-by: James Tucker <james@tailscale.com>
2 weeks ago
..
cert.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 3 months ago
debug.go types/key,wgengine/magicsock,control/controlclient,ipn: add debug disco key rotation 2 weeks ago
debugderp.go feature/featuretags: add a catch-all "Debug" feature flag 2 months ago
disabled_stubs.go all: update copyright and license headers 3 years ago
localapi.go ipn/localapi: log calls to localapi (#17880) 2 weeks ago
localapi_drive.go feature/drive: start factoring out Taildrive, add ts_omit_drive build tag 3 months ago
localapi_test.go ipn/localapi: log calls to localapi (#17880) 2 weeks ago
pprof.go cmd/tailscaled, ipn/localapi, util/eventbus: don't link in regexp when debug is omitted 2 months ago
serve.go all: add ts_omit_serve, start making tailscale serve/funnel be modular 3 months ago
syspolicy_api.go feature/featuretags: add a catch-all "Debug" feature flag 2 months ago
tailnetlock.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago