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
James Tucker 7988303d30
types/key,wgengine/magicsock,control/controlclient,ipn: add 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>
1 month ago
..
appctype appc,*: publish events for route updates and storage (#17392) 2 months ago
bools types/bools: fix doc typo (#15021) 10 months ago
dnstype types/dnstype: delete unused func, move other one to its sole caller 2 months ago
empty all: update copyright and license headers 3 years ago
flagtype all: update copyright and license headers 3 years ago
geo types/geo: add geo.Point and its associated units (#16583) 5 months ago
iox types/iox: add function types for Reader and Writer (#14366) 1 year ago
ipproto all: use Go 1.22 range-over-int 2 years ago
jsonx types/jsonx: add package for json/v2 helpers (#15756) 8 months ago
key types/key,wgengine/magicsock,control/controlclient,ipn: add disco key rotation 1 month ago
lazy types/lazy: document difference from sync.OnceValue 2 months ago
logger types/logger: release ArgWriter destination after use 7 months ago
logid types/logid: add Add method (#12478) 1 year ago
mapx types/mapx, ipn/ipnext: add ordered map, akin to set.Slice 8 months ago
netlogfunc net/connstats: prepare to remove package (#17554) 2 months ago
netlogtype wgengine/netlog: include node OS in logged attributes (#17755) 1 month ago
netmap ipn/ipnlocal, types: plumb tailnet display name cap through to network profile (#17045) 3 months ago
nettype wgengine/magicsock, types/nettype, etc: finish ReadFromUDPAddrPort netip migration 3 years ago
opt types/opt: de-weird the API a bit with new True and False consts 2 months ago
persist Revert "control/controlclient: back out HW key attestation (#17664)" (#17732) 1 month ago
prefs cmd/viewer: add field comments to generated view methods 3 months ago
preftype cmd/tailscaled,*: add start of configuration file support 2 years ago
ptr all: update copyright and license headers 3 years ago
result types/result, util/lineiter: add package for a result type, use it 1 year ago
structs all: update copyright and license headers 3 years ago
tkatype types/tkatype: add test for MarshaledSignature's JSON format 2 years ago
views types/views: add min/max helpers to views.Slice 4 months ago