Skip to content

Control Plane API Reference ​

The HTTP endpoints currently implemented by the control plane, including request parameters and response structures, are listed below with curl examples.

API first: Every control-plane capability is exposed through the REST API as the primary interface. The Web administration interface (WebUI) is just one client of this API, on equal footing with third-party systems and automation scripts. Integrations always call the control-plane API; they never bypass the control plane to operate an Agent or the data plane directly.

The Control Plane is a persistent HTTP service on the control-plane host, responsible for:

  • Device inventory and the registration window: reporting, challenge-response, TPM attestation, and binding
  • Worker identity, system disks, and default boot disk inventory
  • Agent registration, probing, draining, and storage placement
  • Boot-chain projection (/boot-vars, /boot-assets)
  • Management identity and PKI: sessions, tokens, human/component certificates, and CRLs
  • Declaration status, dnsmasq-derived configuration, and operation auditing

It does not configure storage backends directly or host boot static files: menu.ipxe and the boot scripts live under tftp/ and are served by nginx over HTTPS (TFTP only provides the first-stage snponly.efi and the boot.ipxe pointer), while the menu's default item, timeout and OS label are projected through /boot-vars. The node Agent configures the storage backend on its host (nvmet configfs, or tgtadm/targetcli for iSCSI).

Calling Conventions ​

  • Authentication: management requests try the mTLS client certificate, management token and session cookie in order, stopping at the first success; anonymous endpoints are limited to health checks, the public CRL and boot endpoints.
  • Errors: validation failures, missing resources and conflicts return 4xx with {"detail": ...}; authentication failures return 401, principal-class mismatches 403, rate-limited boot endpoints 429 with Retry-After, and audit or startup derivation failures 503.
  • Data: requests and responses are JSON by default; /boot-vars returns an iPXE script by default and structured variables with format=json; keys, tokens and PSKs are never returned in plaintext.
  • Integration: third-party systems call the control-plane API and never bypass it to operate Agents or the data plane directly.
  • Authorization: write requests need the admin group; session-authenticated writes additionally require same-origin.

Chapters ​

PageContents
Authentication and AuthorizationCredential chain, principal classes, authorization and audit
Basics and StateEntry point, environment variables, state files and health checks
Boot and Device AdmissionBoot-chain status, boot variables, registration window and challenge-attestation
Device PoolDevice ledger, binding, revocation and attestation baselines
WorkersWorker identity, queries, rebinding and batch operations
System Disks and CredentialsDisk creation, default disk, deletion and NVMe-oF credentials
Agents and StorageAgent ledger, master tags, LUNs and the master image list
Identity and PKITokens, one-command join, sessions and certificate revocation
Operations and VerificationOperation log and the typical call sequence

Endpoint Overview ​

MethodPathDescription
GET/healthzHealth check (see Basics and State)
GET/boot-assetsBoot-chain status: whether the UEFI firmware, script chain, and menu are usable (see Boot chain)
GET/whoamiCurrent request identity (authenticator chain result, see Authentication)
POST/sessionExchange credentials for a session cookie (registry-backed sign-in, see Identity and PKI)
DELETE/sessionSign out (delete the session registry entry and clear the cookie, see Identity and PKI)
GET/sessionsList active sessions (admin, see Identity and PKI)
DELETE/sessions/{session_id}Revoke one session (admin, see Identity and PKI)
DELETE/sessionsSign out all: clear the registry and bump epoch (admin, see Identity and PKI)
GET/boot-varsDynamic iPXE boot variable injection, no auth required (see Boot and Device Admission)
GET/devices/reportiPXE device info reporting (no auth, 11 fingerprint fields + TPM AK, see Devices)
GET/devices/challengeOne-time nonce issuance (no auth, challenge-response, see Boot chain)
POST/devices/{mac}/approve-baselineApprove the device's most recently reported PCR baseline (admin, see Devices)
GET/devicesDevice pool list (state filter, see Devices)
GET/devices/{mac}Single device detail (see Devices)
POST/devicesManually register a device into the pool (see Devices)
POST/devices/importBulk import device manifest (see Devices)
POST/devices/{mac}/bindBind a device to a Worker (force performs an atomic rebind, see Devices)
DELETE/devices/{mac}/bindUnbind a device and return it to the pool (see Devices)
POST/devices/bind/batch/previewBatch-bind preview: pairing table and conflict classification (see Devices)
POST/devices/bind/batchBatch-bind execution (per-item independent, see Devices)
DELETE/devices/{mac}Revoke a device (see Devices)
DELETE/devices/revokedPurge all revoked devices (optional dry_run preview, see Devices)
GET/settings/registration-windowGet registration window status (see Boot chain)
POST/settings/registration-windowOpen the registration window (TTL hard cap 1-60 min; optional admission quota max_devices 1-1000, see Boot chain)
DELETE/settings/registration-windowClose the registration window early (see Boot chain)
GET/settings/enforcementGet the TPM attestation enforcement switch (see Boot chain)
PUT/settings/enforcementToggle the TPM attestation enforcement switch (see Boot chain)
GET/configRuntime declaration configuration and derived-artifact consistency (see Basics)
GET/agentsList Agents and their capabilities (see Agents and Storage)
POST/agentsRegister a new Agent (writes agents.yml; 409 if id exists, see Agents and Storage)
POST/agents/probeProbe an Agent and auto-derive registration parameters (preview, no file writes, see Agents and Storage)
PUT/agents/{agent_id}Update an Agent’s configuration (id cannot be changed, see Agents and Storage)
POST/pki/tokensIssue a node-bound bootstrap token (default single-use, 60 minutes) or a management token (scope/TTL, see Identity and PKI)
GET/pki/tokensList the unexpired token ledger (see Identity and PKI)
DELETE/pki/tokens/{token_id}Revoke a token (deletion takes effect immediately, see Identity and PKI)
POST/pki/users/{cn}Issue a certificate for a registered user from a CSR (the private key never leaves the requester, see Identity and PKI)
GET/pki/usersList certificates issued by the users CA (revoked/expired included, see Identity and PKI)
DELETE/pki/users/{cn}Revoke certificates (optional serial for a single one): re-sign CRL + reload nginx + kick sessions (see Identity and PKI)
GET/pki/componentsList nodes-domain component certificates (revoked/expired included, see Identity and PKI)
DELETE/pki/components/{agent_id}Revoke component certificates (optional serial): write the nodes CRL + reload nginx + delete bootstrap tokens (see Identity and PKI)
GET/pki/controlList control-domain certificates (control-plane clients, revoked/expired included, see Identity and PKI)
DELETE/pki/control/{cn}Revoke a control-domain certificate (optional serial): write the control CRL (see Identity and PKI)
GET/enroll/crlFetch the nodes + control CRLs as a component (component mTLS, see Identity and PKI)
POST/enrollFirst-time component enrollment: exchange a bootstrap token for certificates and trust anchors (see Identity and PKI)
POST/enroll/renewRenew component certificates (component principal only, see Identity and PKI)
GET/crl/nodes.crlPublic read-only nodes CRL (unauthenticated, GET/HEAD only, for revoked-component startup self-check; see Identity and PKI)
DELETE/agents/{agent_id}Remove an Agent’s registry entry (incl. master-tag cleanup, see Agents and storage)
GET/agents/{agent_id}/lunsList targets/LUNs on a given Agent (NVMe-oF primary path and iSCSI compatibility backends, see Agents and Storage)
GET/mastersAggregate master image inventory from all storage nodes (merged with registered tags, for clone selection, see Agents and Storage)
PUT/agents/{agent_id}/masters/{master_name}/tagRegister a master tag (os / os_version annotations, see Agents and storage)
DELETE/agents/{agent_id}/masters/{master_name}/tagClear a master tag (see Agents and storage)
POST/agents/{agent_id}/luns/diskCreate a disk LUN on a given Agent (master clone / empty disk, see Agents and Storage)
POST/agents/{agent_id}/luns/cdCreate a CD (ISO virtual drive) LUN on a given Agent (see Agents and Storage)
DELETE/agents/{agent_id}/lunsDelete a LUN/target on a given Agent (see Agents and Storage)
POST/agents/{agent_id}/luns/scanTrigger an Agent to scan its image directory and rebuild targets (see Agents and Storage)
POST/workersRegister a Worker identity (hostname binding; mac optional — providing it binds the device directly, see Workers)
POST/workers/batchBulk-create Workers (count + naming rule, per-item independent, optional macs direct bind, see Workers)
POST/workers/{worker_id}/luns/diskCreate a system disk LUN for a given Worker (see System Disks and Credentials)
POST/workers/luns/disk/batchBatch create system disks for multiple Workers (per-item node naming, or workers placed by the control plane; dry_run returns a plan, see System Disks and Credentials)
DELETE/workers/{worker_id}/luns/disk/{os_tag}Delete a single system disk of a Worker (with option to keep/delete .img file, see System Disks and Credentials)
PUT/workers/{worker_id}/default-diskSet the Worker’s default boot configuration (default disk os_tag / menu item / timeout, see System Disks and Credentials)
PUT/workers/{worker_id}/macRebind the Worker’s MAC (device ledger is authoritative; missing dnsmasq projection is rewritten; old/new MAC audited, see Workers)
GET/workersList Workers (see Workers)
GET/workers/{worker_id}Query a single Worker (see Workers)
GET/workers/{worker_id}/statusQuery Worker inventory and real-time status (see Workers)
DELETE/workers/{worker_id}Delete a Worker (see Workers)
POST/workers/delete/batchBatch delete Workers (each item processed independently, with success/failure summary, see Workers)
PUT/workers/{worker_id}/credentialSet/rotate the NVMe-oF authentication key (DHHC-1 validation; nvmet disk creation already issues one, see System disks)
DELETE/workers/{worker_id}/credentialDelete the NVMe-oF authentication key (revoke authentication, see System disks)
GET/workers/{worker_id}/credentialQuery credential metadata (never returns plaintext, see System disks)
GET/operationsRead operation audit log (see Operations and Verification)