mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-02 06:32:32 -08:00
PeerRelay replicas got a single-use auth key minted on config Secret creation and never again, so a replica that lost its login (device deleted, state Secret lost, key expiry) could never re-auth despite containerboot writing the reissue_authkey signal. Port the shouldReissueAuthKey pattern already used by ProxyGroup and Recorder: track in-flight reissues per replica, rate-limit re-issuance per PeerRelay, and delete the stale device before minting a new key. Updates #20544 Signed-off-by: chaosinthecrd <[email protected]>