posture: add HealthTracker for serial number retrieval (#19181)

Device posture checking can fail while enabled if tailscaled does not
have access to smbios. Previously, this was only observable by looking
in the tailscaled logs.

Fixes tailscale/corp#39314

Signed-off-by: Evan Lowry <evan@tailscale.com>
This commit is contained in:
Evan Lowry
2026-04-25 15:42:47 -03:00
committed by GitHub
parent f3b2f9b0ef
commit 3a05c450ce
3 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ package posture
import (
"errors"
"fmt"
"tailscale.com/types/logger"
"tailscale.com/util/syspolicy/policyclient"
@@ -19,5 +20,5 @@ import (
// GetSerialNumber returns client machine serial number(s).
func GetSerialNumbers(polc policyclient.Client, _ logger.Logf) ([]string, error) {
return nil, errors.New("not implemented")
return nil, fmt.Errorf("not implemented: %w", errors.ErrUnsupported)
}