From ce7e1dea45e1e6a3c8c92556a949ee28632af7f9 Mon Sep 17 00:00:00 2001 From: Andrew Lytvynov Date: Wed, 17 Dec 2025 17:27:35 -0800 Subject: [PATCH] types/persist: omit Persist.AttestationKey based on IsZero (#18241) IsZero is required by the interface, so we should use that before trying to serialize the key. Updates #35412 Signed-off-by: Andrew Lytvynov --- types/persist/persist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/persist/persist.go b/types/persist/persist.go index 4b62c79dd..80bac9b5e 100644 --- a/types/persist/persist.go +++ b/types/persist/persist.go @@ -26,7 +26,7 @@ type Persist struct { UserProfile tailcfg.UserProfile NetworkLockKey key.NLPrivate NodeID tailcfg.StableNodeID - AttestationKey key.HardwareAttestationKey `json:",omitempty"` + AttestationKey key.HardwareAttestationKey `json:",omitzero"` // DisallowedTKAStateIDs stores the tka.State.StateID values which // this node will not operate network lock on. This is used to