cmd/tailscale: use text format for TKA head

Updates tailscale/corp#23258

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2025-06-27 11:54:01 +02:00 committed by Kristoffer Dalby
parent 4a7b8afabf
commit df786be14d

View File

@ -639,7 +639,11 @@ func nlDescribeUpdate(update ipnstate.NetworkLockUpdate, color bool) (string, er
return "", fmt.Errorf("decoding: %w", err)
}
fmt.Fprintf(&stanza, "%supdate %x (%s)%s\n", terminalYellow, update.Hash, update.Change, terminalClear)
tkaHead, err := aum.Hash().MarshalText()
if err != nil {
return "", fmt.Errorf("decoding AUM hash: %w", err)
}
fmt.Fprintf(&stanza, "%supdate %s (%s)%s\n", terminalYellow, string(tkaHead), update.Change, terminalClear)
switch update.Change {
case tka.AUMAddKey.String():