You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Courier can drop its Device-incarnation checks unnoticed #264
For an enrolled Device pinned by UID, Courier.Deliver refuses delivery when the Device UID, or the custody state's Device-UID label, does not match the pinned UID. No test covers that refusal. Courier.Collect has the same gap for a Device whose UID changed after delivery. A regression in either could deliver to, or accept results from, a recreated Device.
Done when tests cover each case below, and each fails with its check removed:
Evidence at cf6d3e1: replacing the device.UID != uid || state.Labels[ops.LabelDeviceUID] != string(uid) condition in Courier.Deliver with a no-op and running go test ./internal/delivery ./cmd/fleet-manager gives ok for both. Sites.Serving checks the Device UID too, which hides the first half; nothing exercises the label half. Collect has no UID-change test.
Activity
ecv commentedon Nov 30, 2026
Evidence at cf6d3e1: replacing the
device.UID != uid || state.Labels[ops.LabelDeviceUID] != string(uid)condition inCourier.Deliverwith a no-op and runninggo test ./internal/delivery ./cmd/fleet-managergivesokfor both.Sites.Servingchecks the Device UID too, which hides the first half; nothing exercises the label half.Collecthas no UID-change test.