Skip to content

Commit 64d70fb

Browse files
committed
ipn/ipnlocal: log a summary of posture identity response
Perhaps I was too opimistic in tailscale#13323 thinking we won't need logs for this. Let's log a summary of the response without logging specific identifiers. Updates tailscale/corp#24437 Signed-off-by: Anton Tolchanov <[email protected]>
1 parent 020cacb commit 64d70fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ipn/ipnlocal/c2n.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ func handleC2NPostureIdentityGet(b *LocalBackend, w http.ResponseWriter, r *http
350350
res.PostureDisabled = true
351351
}
352352

353+
b.logf("c2n: posture identity disabled=%v reported %d serials %d hwaddrs", res.PostureDisabled, len(res.SerialNumbers), len(res.IfaceHardwareAddrs))
354+
353355
w.Header().Set("Content-Type", "application/json")
354356
json.NewEncoder(w).Encode(res)
355357
}

0 commit comments

Comments
 (0)