mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-22 02:50:42 +00:00
posture: add network hardware addresses to posture identity
If an optional `hwaddrs` URL parameter is present, add network interface hardware addresses to the posture identity response. Just like with serial numbers, this requires client opt-in via MDM or `tailscale set --posture-checking=true` (https://tailscale.com/kb/1326/device-identity) Updates tailscale/corp#21371 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
This commit is contained in:

committed by
Anton Tolchanov

parent
b546a6e758
commit
874972b683
@@ -55,13 +55,17 @@ type C2NUpdateResponse struct {
|
||||
Started bool
|
||||
}
|
||||
|
||||
// C2NPostureIdentityResponse contains either a set of identifying serial number
|
||||
// from the client or a boolean indicating that the machine has opted out of
|
||||
// posture collection.
|
||||
// C2NPostureIdentityResponse contains either a set of identifying serial
|
||||
// numbers and hardware addresses from the client, or a boolean flag
|
||||
// indicating that the machine has opted out of posture collection.
|
||||
type C2NPostureIdentityResponse struct {
|
||||
// SerialNumbers is a list of serial numbers of the client machine.
|
||||
SerialNumbers []string `json:",omitempty"`
|
||||
|
||||
// IfaceHardwareAddrs is a list of hardware addresses (MAC addresses)
|
||||
// of the client machine's network interfaces.
|
||||
IfaceHardwareAddrs []string `json:",omitempty"`
|
||||
|
||||
// PostureDisabled indicates if the machine has opted out of
|
||||
// device posture collection.
|
||||
PostureDisabled bool `json:",omitempty"`
|
||||
|
Reference in New Issue
Block a user