v0.63.0: surface agent wipe_durable_id (F20-BUG2) + guest_attached (F9) on /api/disks
The agent (v0.31.0) now returns these on /disks, but the controller dropped them when re-marshalling into its agentapi.DiskInfo mirror. Added both fields (additive) so they reach /api/disks + the dashboard: wipe_durable_id (gate scheme, for the wipe-confirm) and guest_attached (drive bound into THIS guest vs merely host-present). Controller behaviour otherwise unchanged.
This commit is contained in:
@@ -245,6 +245,14 @@ type DiskInfo struct {
|
||||
// fs UUID (strip the "uuid:" prefix) is the key the controller passes to AssignDisk — it's the
|
||||
// only way the de-privileged controller learns a mount key it cannot read off the device itself.
|
||||
DurableID string `json:"durable_id"`
|
||||
// WipeDurableID is the device's wipe-binding id in the gate's scheme (byid:<wwn>/byuuid:<uuid>) —
|
||||
// the id a customer-confirmed data-bearing wipe must carry (F20-BUG2). DISTINCT from DurableID
|
||||
// (uuid:, used for assign): confirming a wipe with DurableID was rejected (binding_mismatch).
|
||||
WipeDurableID string `json:"wipe_durable_id,omitempty"`
|
||||
// GuestAttached reports whether the drive is actually bound into THIS guest (usable in-guest), as
|
||||
// opposed to merely present on the host (F9) — the signal whose absence let the HDD look available
|
||||
// when it wasn't attached.
|
||||
GuestAttached bool `json:"guest_attached"`
|
||||
}
|
||||
|
||||
// FSUUID returns the raw filesystem UUID from a "uuid:<…>" DurableID, or "" if this disk's identity
|
||||
|
||||
Reference in New Issue
Block a user