Deployment job contract (schema version 1)

Server and Client modes share a validated JSON deployment-job document. The job is a declarative description sent over a TLS control session in which the Client verifies the Server certificate. It is not a credential, Client identity, target-device path or authorization to write. The Server associates each session with the MAC address reported by the Client and checks it against the active job’s selected MAC list. Each Client performs local device checks, and the Server operator explicitly ARMs the complete READY set.

Example: multi-Client restore with stable target bindings

{
  "schema_version": 1,
  "job_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "operation": "restore",
  "image_id": "golden-image-2026",
  "target_type": "disk",
  "authorized_clients": ["52:54:00:12:34:56", "52:54:00:12:34:57"],
  "target_bindings": {
    "52:54:00:12:34:56": {
      "wwn": "0x5000cca123456789",
      "serial": "TARGET-001"
    },
    "52:54:00:12:34:57": {
      "wwn": null,
      "serial": "TARGET-002"
    }
  },
  "network_interface": "enp1s0",
  "transport": "multicast",
  "multicast_group": "239.10.10.10",
  "multicast_port": 5000,
  "start_policy": "manual",
  "expected_clients": null,
  "start_deadline": null
}

Field rules

Unknown fields and unsupported schema versions are rejected. Older schema-v1 jobs without optional fields remain readable.

Safety boundary

The schema never contains a Client destination /dev path, shell command, arbitrary executable, password or private key. A stable WWN/serial binding is not a path and cannot be used to bypass local inventory or safety checks. Without a binding, the established interactive Client target-selection path remains in effect.

A logical-volume restore is preflighted against the Client local LVM inventory and must target an existing active, unmounted linear or thin LV. The restore engine re-collects inventory immediately before writing. It never creates, resizes, activates or otherwise changes PV/VG/LV metadata. RAID, striped, cache, snapshot and unknown layouts are rejected.

A parsed job does not authenticate a peer or start a write. Production control traffic uses TLS with Server-certificate verification by the Client only. The The Server associates each session with the MAC address reported by the Client and checks it against the active job’s selected MAC list. The Client checks its own selected target and reports READY only after local preflight and typed confirmation. The Server requires the complete authorized READY set and a separate explicit ARM action for interactive jobs before it sends START. The narrowly scoped automatic answer-file policy is the exception: it requires every authorized Client READY and explicit destructive opt-in in the validated job, then starts the existing authenticated control workflow without a manual ARM.

The shared answer-file workflow uses the same Server-authenticated TLS control plane and persistent deployment runtime as interactive Remote jobs. One schema-v1 JSON document is published once and consumed identically by every Client; each Client selects its own stable target binding by its local MAC. The answer is served through Caddy over the existing HTTP service, without per-Client answer variants or credentials. The Live downloader, repository resolution, target preflight and pre-write identity revalidation feed the existing whole-disk restore engine. Other repository providers, replay/expiry controls and GTK result reconciliation remain software backlog; physical/network acceptance is optional. Do not infer authorization from PXE boot, a DHCP lease, a URL or a job UUID.

Managed remote image repository

A restore job may include the optional repository_id field. It is a simple managed-repository identifier, never a filesystem path. Job creation resolves it through the root-owned repository registry and requires the corresponding mount to be active and verified before reading the image manifest. Persistent Server startup resolves the same ID again and verifies the image trust policy before accepting the job. The selected mount must remain available for the lifetime of the restore.

GTK’s remote restore workflow exposes mounted, verified repositories. Unicast and UDPcast multicast restore use the same selected repository. Save and direct clone jobs do not accept repository_id; Client captures continue to use the Server’s configured repository.