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
schema_version: exactly1.job_id: canonical UUID identifying one deployment attempt.operation:save,restoreorclone. Clone is a direct physical Server-to-Client block stream. It supports unicast disk/partition fan-out and multicast whole-disk fan-out without an image artifact.image_id: simple repository identifier for save/restore; clone jobs must set it to null.target_type:disk,partitionorlogical_volume. Logical-volume targets are supported for save and restore. Save supports whole disks and logical volumes; clone supports whole disks or partitions over unicast, and whole disks only over multicast. A Client (interactive or persistent GTK mode) selects its own local destination device locally; the job never carries a Client device path. Raw LUKS2 container images use the samepartitiontarget type: unicast and multicast Clients dispatch them to the partition restore engine, which validates encrypted-container provenance and the included header UUID, writes raw ciphertext/header/keyslot bytes, verifies read-back and the resulting LUKS2 JSON metadata, and leaves the mapping closed. The Client must havecryptsetup; age-encrypted artifacts additionally need its local age identity. No passphrase or keyslot material is sent as a deployment control field. Opened-mapping plaintext images and LUKS2-on-LV remain unsupported. The persistent service and GTK API independently validate the selected LV against healthy local LVM topology before reporting READY.authorized_clients: non-empty allowlist of unique unicast MAC addresses. MAC is the operational identifier used to select and track each Client in the job.target_bindings: optional object for interactive whole-disk restore jobs, keyed by selected Client MAC. Forstart_policy: automatic, it is mandatory and must bind every authorized Client. Each value contains exactlywwnandserial; at least one must be supplied. The Client compares every supplied identifier with its own current device inventory before READY. A mismatch or missing identifier rejects the selected device. These hardware fields reduce accidental mis-targeting; they are not cryptographic device attestation and may be spoofable. The Server GTK whole-disk restore workflow can collect a binding for each selected Client; partition- and logical-volume target bindings are not currently supported because those targets require local topology-aware selection. The unattended answer workflow uses these bindings to resolve each whole-disk target locally and still performs the normal pre-write identity revalidation.network_interface: explicit Linux interface name for ISO/USB workflows;autois reserved for PXE-booted Live clients that already have DHCP networking.transport:unicastormulticast. Multicast requires an administratively scoped IPv4 group and an even UDPcast port base.multicast_groupandmulticast_port: required only for multicast.start_policy:manual,expected_clients,deadlineorautomatic; the threshold/deadline policies require exactly one matching parameter. Physical multicast clone always usesmanual: every selected Client must be READY, then independently revalidate and open its destination and start its UDPcast receiver before the Server sends data.automaticis reserved for unattended whole-disk restore answer files with explicit destructive confirmation, a managed repository and a stable target binding for every authorized Client. Every authorized Client must reach READY before the Server automatically starts the job; no operator ARM action is expected.staging_required_bytes: optional non-negative capacity requirement used only for multicast restore jobs.post_action: optionalnone,rebootorpoweroff(defaultnone); only valid for restore and clone. The Client requests the selected fixedsystemctlaction only after its own successful write/read-back verification and after sending its terminal result to the Server. A failed or interrupted Client never reboots or powers off.source_device: normalized Server-local /dev path, required only for direct clone jobs. It identifies the source, never a Client destination.source_identity: Server-generated binding for physical multicast clone jobs. It records major/minor, sysfs path, WWN/serial, capacity, sector geometry and use state at job creation; the runtime rejects any source identity drift before opening the source read-only.repository_id: optional managed repository identifier for restore jobs; it is not a filesystem path.
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.