types/persist: omit Persist.AttestationKey based on IsZero (#18241) (#18242)

IsZero is required by the interface, so we should use that before trying
to serialize the key.

Updates #35412


(cherry picked from commit ce7e1dea45)

Signed-off-by: Andrew Lytvynov <[email protected]>
This commit is contained in:
Andrew Lytvynov authored and GitHub committed 2025-12-18 10:04:26 -08:00
1 parent 5065307fb8
commit 9ae9dfd2d4
1 file changed
+1 -1
+1 -1
View File
@@ -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