feature/tpm: implement key.HardwareAttestationKey (#17256)

Updates #15830

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
This commit is contained in:
Andrew Lytvynov
2025-09-25 11:54:41 -07:00
committed by GitHub
parent a40f23ad4a
commit c49ed5dd5a
3 changed files with 367 additions and 0 deletions
+5
View File
@@ -28,6 +28,7 @@ import (
"tailscale.com/ipn/store"
"tailscale.com/paths"
"tailscale.com/tailcfg"
"tailscale.com/types/key"
"tailscale.com/types/logger"
)
@@ -39,6 +40,10 @@ func init() {
hi.TPM = infoOnce()
})
store.Register(store.TPMPrefix, newStore)
key.RegisterHardwareAttestationKeyFns(
func() key.HardwareAttestationKey { return &attestationKey{} },
func() (key.HardwareAttestationKey, error) { return newAttestationKey() },
)
}
func info() *tailcfg.TPMInfo {