Agent relays and controlled egress
Use a signed unified package for a background service, or the Python source bundle for foreground operation. Relay-node permission is separate from scanner scope and remote-scanner pool membership. Installing a relay does not authorize agents to use it; approve their membership explicitly.
| Platform | Agent | Installer | Unified package |
|---|---|---|---|
| Windows / Windows Server x86_64 | 0.27.26 / 964 | 0.51.595 / 965 | 0.51.595 |
| Ubuntu / Debian x86_64 | 0.27.26 / 963 | 0.51.595 / 960 | 0.51.595 |
| macOS arm64 | 0.27.26 / 961 | 0.51.595 / 962 | 0.51.595 |
Set up a relay in the workspace
- Open Agents & sensors > Fleet tools > Agent relays > Register relay. Choose a dedicated node or explicitly select an enrolled agent host. Enter the HTTPS hostname and port that downstream agents can reach. A separate bootstrap port is needed for relay-only enrollment. Registration creates a draft; it does not enable forwarding.
- Open the relay's node setup. Choose the interface address and listener ports.
The default
127.0.0.1accepts only local connections; use an explicit approved interface for other hosts. Review Connection limits, then protect the downloaded configuration and one-time node credential. Use the signed unified package for your operating system: Windows, Linux, or macOS. - In Transit access, approve only the agents allowed to use this relay. Membership does not change their local route or grant remote-scanner pool access.
- Review agent routing. Select distinct primary and optional secondary relays, and explicitly decide whether direct fallback is allowed. Preserve runtime and updater routing separately.
- Review firewall access, install and diagnose the restricted node service, then explicitly enable forwarding. Refresh status and run an approved validation scan. A ready listener or published route alone does not prove a working end-to-end scan. Diagnostics and automation explains how to inspect failures without disabling TLS verification.
The sections below include source commands, platform-specific service installers, bootstrap enrollment, fleet routing and independently verified updates. Package versions and historical qualification results are intentionally separate from your current node's health.
Version-specific relay qualification and earlier release behavior
Agent 85 prevents automatic replay after an ambiguous relay interruption or HTTP rejection. Only explicit route unavailability before sending the request can be retried. Primary/secondary selection and direct fallback remain subject to the agent's explicit local policy.
Source agent 87 adds a five-second total deadline for resolving and connecting the relay's forwarding destination. At most four operating-system DNS lookups can remain outstanding; timed-out requests cannot accumulate resolver threads or use late DNS answers to open connections. Mixed public/private DNS answers are rejected before dialing. A stuck OS lookup retains its slot until it returns or the relay process exits; exhausted capacity fails closed. This deadline applies to forwarded connections, not the relay's separate control-plane HTTPS client. Use the version table above to check which compiled packages contain this change; older native agents do not gain it from a platform update alone.
Source agent 88 also bounds the relay's own control connection: DNS, TCP address attempts and the TLS handshake share a ten-second deadline. Four separate DNS slots protect control traffic from forwarding lookup exhaustion. Late answers cannot send credentials or open connections after the caller has timed out. TLS still verifies the configured control hostname before sending credentials. This is a connection-establishment bound, not a ten-second limit for the entire HTTP request. Native packages require a separately published agent update.
Windows 85 passed restricted scanner-service enrollment, live TLS scanning through a relay, scope refusal and cloud pause. After revocation the relay denied admission and the service remained idle, with no new cloud work or heartbeat; the acceptance harness then stopped and removed it. Separate native tests verify that authenticated origin HTTP 401/403 responses terminate the persistent agent, and interrupted requests or HTTP 503 are not replayed. Relay denial is not proof of origin revocation: a paused relay can also deny admission.
The unified relay-node path passed install, restart, identity preservation, DPAPI isolation and removal. A separate production-signed cloud update from Windows 75 / 653 to 85 / 692 passed scheduled replacement and an actual reboot, preserving both relay and updater identities. A fresh post-reboot heartbeat reached the control plane; local update approval was disabled again and the temporary relay retired.
Ubuntu 24.04 and Debian 12/13 passed Linux 85 scanner-service enrollment and removal. An Ubuntu relay also completed a cloud-requested 72-to85 signed replacement, preserved its identity across reboot and reported a fresh heartbeat. Red Hat UBI 8.10 and CentOS Stream 9 passed foreground loader checks; host-service, SELinux and FIPS qualification are separate. Mac86 passed signed scanner85-to86 replacement and a managed TLS scan through a relay with retained identity and direct fallback disabled. Mac relay85 has separate restricted-account replacement evidence; this does not claim a new relay86 reboot or cloud-update test.
These remain native preview releases. Review the platform-specific Windows, Linux and macOS guides for installation and qualification scope.
Source relay commands
Source agent 0.26.75 waits for normal relay admission after enrolling a runtime or updater certificate. This can take one relay refresh (normally about 25 seconds). Success confirms the mTLS relay route and the separate origin TLS connection; a direct fallback cannot satisfy this check. Certificate or node identity errors fail immediately. If admission remains unavailable, enrollment preserves the issued identity and reports how to check relay health and membership before retrying. Do not delete the identity directory to retry. The published Windows 85, Linux 85 and macOS 85 binaries include this readiness wait. Older Linux73 installations predate it; preserve their protected identity and follow the diagnostics if admission has not yet refreshed.
Source agent 0.26.79 also identifies unsupported local crypto dependencies before
reading credentials, creating identity state or contacting the control plane.
crypto-dependency-unsupported means the Python environment needs the versions in
scanner/requirements.txt (cryptography >=44,<49), or you should use the current
native package. It is not a certificate or credential failure. Preserve the
identity directory. Doctor checks this prerequisite for every relay-connected
agent, including repository-only scanning. This diagnostic change is in source
0.26.79; native package qualification remains version-specific.
Source agent 0.26.76 adds structured enrollment failure diagnostics with a stage,
bounded reason code and recovery hint. The stages distinguish protected state,
local inputs, certificate enrollment, identity confirmation and relay readiness.
Diagnostics exclude tokens, private keys and raw exception text. Preserve the
identity directory when retrying; the diagnostic also reports preserveIdentity: true.
The source Linux relay installer reports a contended installation lock as
status: "busy", retryable: true, with exit code 75 for a read-only status
request. Retry that status check after the active installation finishes. This
does not authorize automatically retrying installation, upgrade or removal.
The published Linux installer 0.51.413 / 650 includes this behavior.
The development source includes a foreground relay command shared by dedicated nodes and explicitly designated agent hosts:
python scanner/qr.py relay setup --config /absolute/private/relay.json --state-directory /absolute/private/relay-state
python scanner/qr.py relay doctor --state-directory /absolute/private/relay-state
python scanner/qr.py relay run --state-directory /absolute/private/relay-state
Setup prompts for the relay credential without echo. Unattended setup accepts
--token-file pointing to a private credential file; it does not accept a token
argument or read a relay token from the environment. Run setup and the service
under the same account, using a separate state directory for each relay. Preserve
the state directory to resume interrupted enrollment. Setup rejects replacement
with a different relay, trust configuration or credential.
The configuration contains version 1, tenantId, relayId, registered HTTPS
origin, explicit numeric listenAddress, unprivileged listenPort (1024-65535),
caCertificate, admissionTrust from the authenticated control plane, and
explicit limits (connections, per_agent, seconds, bytes). In workspace
setup, expand Connection limits only if you need to change the defaults:
64 connections, 4 per agent, 180 seconds and 512 MiB per tunnel. The downloaded
Mac instructions use /absolute/root-owned-package as a placeholder; replace it
with the absolute path of your verified, root-owned extracted unified package.
The control-plane
destination is fixed; the configuration cannot redirect a relay credential to
another server. Configuration and credential files require private permissions.
Public trust must be delivered through the approved setup channel, never copied
from an unverified relay listener.
doctor checks protected state, verifies or renews the certificate, binds the
configured listener, retrieves signed admissions, and submits an authenticated
heartbeat. It closes the temporary listener before returning. It is a pre-start
check: an already-running process holds the state lock. run owns that lock,
refreshes authorization and renews identity until stopped. SIGINT/SIGTERM close
the listener and clear forwarding permission. These commands do not yet install
an OS service.
Replace a node credential without replacing its identity
Stop the relay process, explicitly issue a replacement credential in the workspace, and deliver it as a private file to the same operating account. Keep the existing state directory. Run:
python scanner/qr.py relay rotate-credential --token-file /absolute/private/relay.token --state-directory /absolute/private/relay-state
python scanner/qr.py relay doctor --state-directory /absolute/private/relay-state
python scanner/qr.py relay run --state-directory /absolute/private/relay-state
The rotation command holds the exclusive protected-state lock. It verifies a fresh signed admission response against the existing pinned key, tenant and relay ID before replacing only the saved credential. It preserves certificate keys, configuration and pending enrollment state. Wrong-relay credentials, invalid signatures and failed control-plane requests leave local state unchanged. A paused relay can rotate its credential without enabling forwarding. Cloud issuance immediately invalidates the old credential, so coordinate the change with the node administrator. A lost delivery requires explicit replacement; it is never retried automatically by the setup page.
Obtain setup configuration
The Relay HTTPS origin is the address agents reach; the local listener port is where the restricted service binds on the host. Local ports must be 1024-65535. For an origin using standard HTTPS port 443, setup suggests a distinct unprivileged port number (normally 8443, with 8444 for bootstrap); it does not probe the host for availability. If external and local ports differ, the administrator must configure TCP pass-through forwarding that preserves TLS to the relay. Do not terminate TLS at an HTTP reverse proxy. Bootstrap and relay listeners require different local ports. Setup does not configure forwarding or firewall rules.
An administrator calls POST /api/v1/relays/{id}/setup with the relay's current
expectedRevision, explicit listenAddress, listenPort, and limits. Save the
returned configuration object as the private JSON file used by relay setup.
The registered relay origin and tenant/node identity come from QScan; the response
also supplies the public relay CA and admission verification key. The response
contains no credential or private key. Issue the node credential separately using
/relays/{id}/credential and deliver it through the protected administrator channel.
JavaScript relaySetup(id, input), Python relay_setup(id, input), and OAuth MCP
relay_setup expose the same operation. It rejects stale revisions and retired
relays, and requires workspace administrator access. Generating configuration
does not install a service, change firewall rules or enable forwarding. The
configuration API, setup UI and native relay packages are deployed. Use the
platform-specific package and qualification details at the top of this page.
The service supervisor refreshes signed permissions every 25 seconds, with a 10-second retry after failure. Failed admission retrieval, signature verification or authenticated heartbeat clears forwarding authority immediately. A newer signed revision is required to recover after invalidation; replaying the previous snapshot cannot reopen access. Diagnostics report listener state, active tunnels, admission revision and a bounded error code without exposing credentials or certificate data. Use the signed platform packages below for service provisioning; configuration generation alone does not install or start a service.
The identity manager generates P-256 keys locally and saves a pending key and CSR before sending the certificate request. Retrying an interrupted request reuses that exact request. It verifies the CA, signed tenant/node identity, listener name, key match, usage and lifetime before activating the certificate. Renewal occurs 12 hours before signed expiry, without trusting an unsigned renewal timestamp. New connections use the renewed TLS context; existing connections retain their bounded lifetimes and continuously checked forwarding permissions.
An expired certificate can be renewed over the node's own authenticated control connection. An interrupted enrollment that expired while offline starts a fresh request only after the control plane confirms there is no active current certificate. A conflicting active identity requires operator review. These node recovery paths do not yet establish relay-only bootstrap for downstream agents.
The OpenSSL loader uses temporary encrypted PKCS#8 files with fresh passwords kept in memory; it deletes the files immediately after loading. Durable Windows setup state uses account-bound DPAPI. POSIX setup state requires a private directory and file permissions. Service-account installation and permissions still require cross-platform qualification before publication.
Use a relay when agents can reach an approved internal listener but should not connect directly to the control plane. You can designate an existing agent host or deploy a dedicated relay node. Designation is explicit: joining a remote scanner pool never makes an agent a relay.
Choose an egress policy
| Mode | Intended behavior |
|---|---|
| Direct | The agent connects to the control-plane origin itself. |
| Relay | The agent tries its primary relay, then its approved secondary, if configured. |
| Direct fallback disabled | If permitted relay routes are unavailable, remain disconnected and report the routing failure. |
| Direct fallback when unavailable | Direct access is permitted only after relay availability failures. Certificate, authentication and permission failures stay closed. |
The local administrator's approved destinations are the ceiling. Fleet settings must not introduce an unapproved listener or silently turn conditional fallback into an always-direct route. An HTTP request that has already been sent must not be replayed on another route merely because its response failed.
Agent source configuration
The source agent now reads an explicit egress policy from its protected local
configuration. Relay mode additionally requires relayAgentId and an absolute
relayIdentityDirectory containing that agent's protected enrolled client
identity. Its identity must match the workspace and agent; the agent checks the
control-plane credential's own certificate before polling work. Renewal uses the
approved relay connection. A missing, invalid or mismatched identity stops the
workflow rather than opening a new direct channel.
Update supervisors read the same installed egress policy for operation polling
and downloads. If the updater runs under a separate account, use a separately
provisioned relayUpdateIdentityDirectory accessible to that account. Account-bound
Windows DPAPI state cannot simply be copied between accounts. An inaccessible
identity fails closed. Release signature and archive verification remain
independent of the selected route.
The scanner uses the runtime certificate slot; the updater uses updater.
Each slot has its own revision, private key and two-certificate rotation history.
The slot is bound into a signed certificate SAN, so editing local metadata cannot
turn a runtime identity into an updater identity. Repeated scanner renewals cannot
evict the updater certificate. Revoking the agent, its credential or relay
membership denies both slots. Updater certificates confer no extra API or scan
permissions. Configure updater state separately; it cannot silently reuse the
runtime slot.
The relay admission inventory supports 10,000 assigned agents with up to four current/overlapping certificates each, bounded to 40,000 entries and 8 MiB of signed payload. This is an inventory bound tested across the control-plane signer and Python verifier, not a production throughput or concurrency claim.
Protected state provisioning for these accounts, relay-only initial enrollment, expired downstream identity recovery, and fleet policy distribution are still being integrated. These fields are source-development configuration, not yet an installation recipe for published packages.
Relay-only bootstrap authorization
The control-plane grant API, separate bootstrap listener, client transport and source enrollment command are implemented. The published enrollment wizard and installer are still being connected. Normal forwarding continues to require an enrolled agent client certificate.
An administrator approves one active agent through one or two already-approved,
enabled relays. The setup client generates a random 32-byte secret locally,
encodes it as 64 lowercase hexadecimal characters, and sends only SHA-256 of
that UTF-8 string as secretHash to POST /api/v1/relay-bootstrap. It retains
the secret in protected enrollment state and forms the scoped bootstrap token
locally. Never put that token in a URL, log, assistant message or MCP argument.
Grants last at most ten minutes and permit at most eight connections. Creating a new grant replaces that agent's previous grant. A designated relay must redeem each connection through its own authenticated node API. Each signed lease is bound to the tenant, relay, agent, grant and connection ID, lasts at most 15 seconds, and permits at most 256 KiB of forwarded traffic. A retry with the same connection ID cannot extend expiry or consume another use. The grant is not an API credential and confers no scanning or administrative permission.
Every redemption checks the current tenant, agent credential, relay state and explicit membership. Revoking a grant stops new connections and redemption retries; already-issued leases expire within 15 seconds. Bootstrap signatures use a separate domain and schema from normal forwarding admissions. SDKs expose grant creation, inspection, revocation and node redemption. OAuth MCP exposes creation using a hash, inspection and revocation; it does not accept bootstrap secrets for redemption.
To opt a node into bootstrap, its registered policy includes bootstrapOrigin:
the same hostname as its normal origin, with a distinct HTTPS port. Setup also
requires an explicit separate bootstrapListenPort for the local bind. If these
fields are absent, the runtime starts only the normal mTLS listener. A bootstrap
grant cannot be issued through a node without this explicit bootstrap policy.
The separate listener performs server-authenticated TLS, accepts only the exact control-plane CONNECT frame with a bootstrap credential, and obtains a verified lease before opening an upstream socket. It accepts at most 16 connections and one active tunnel per agent. The byte and lifetime bounds apply to the opaque inner TLS traffic. The normal listener rejects bootstrap frames and continues to require an agent client certificate. Both listeners renew their server identity, report separate health/concurrency, and stop together.
Enroll an agent account through bootstrap
The administrator generates public setup configuration using
POST /api/v1/agents/{id}/relay-enrollment, with the current relay revisions in
primary/secondary order and an explicit directFallback choice. The response is
the protected JSON input for the source command below. SDK methods
agentRelayEnrollment / agent_relay_enrollment and OAuth MCP
agent_relay_enrollment expose this credential-free operation.
Deliver the agent API credential and short-lived bootstrap credential separately as private files. Under the account that will run the agent, run:
python scanner/qr.py relay enroll-agent --config /private/relay-enrollment.json --token-file /private/agent.token --bootstrap-token-file /private/bootstrap.token --slot runtime --state-directory /private/agent-relay-identity
For a separately operated updater, repeat under its own account with --slot updater and a different state directory. The command generates its key locally,
persists its CSR before sending, verifies the issued identity, and confirms the
control plane's active certificate before reporting success. It prints routing
fields and the identity-directory field to apply to the agent configuration,
never credentials or private keys. Repeating a completed enrollment does not
rotate the key; interrupted issuance resumes the saved request. Changed protected
enrollment settings require review rather than silent replacement.
Each initial slot enrollment uses three bounded bootstrap connections (revision,
issuance, confirmation). Runtime and updater then use normal mTLS forwarding for
polling, scans and updates; those operations consume no bootstrap uses. If a grant
is denied, exhausted or expired, request a fresh authorized grant and preserve the
identity state for retry. Direct access is possible only when explicitly approved
in both local policies. With directFallback disabled, failure stays relay-only.
The source workflow has real TLS acceptance for both slots, normal agent and updater polling, and lost-response recovery. Unified installers, bulk deployment, fleet UI delivery and native cross-platform publication remain outstanding.
What the relay can see
The agent authenticates to the relay using mutual TLS. Inside that connection, it establishes a separate TLS session to the control-plane origin and presents its own agent credential. The relay forwards encrypted bytes; it does not decrypt findings, claim jobs on behalf of agents, or receive their bearer tokens. It can see connection timing, traffic size and the approved destination, and it can interrupt availability.
The listener forwards only to its configured control-plane origin. It is not an open web proxy or a VPN. Connections, per-agent concurrency, bytes and lifetime are bounded. Endpoint software updates remain subject to the endpoint's existing release signature, digest, archive and version checks after download.
Keep these trust stores separate:
- Relay TLS CA: verifies relay and downstream client certificates.
- Admission verification key: verifies short-lived forwarding permissions.
- Control-plane TLS trust: verifies qscan.dev inside the tunnel.
- Software release key: verifies an update independently of the relay.
Do not install the relay CA as a general-purpose replacement for control-plane TLS trust. Relay private keys and agent TLS private keys are generated locally; certificate enrollment submits a signed PKCS#10 request, not the private key.
Register and authorize a relay
The administrative API uses the workspace administrator's existing credential or browser session. The OpenAPI reference describes the full request and response schemas.
POST /api/v1/relayscreates a draft with a stablerequestId, name, canonical HTTPS listener origin andnodeType.nodeType: "agent"also requires an activehostAgentId; dedicated nodes omit that field.POST /api/v1/relays/{id}/credentialissues a relay-only credential. Supply the currentexpectedRevision. The response returns the secret once; deliver it through the protected setup channel. Rotation immediately revokes the previous token.- The relay creates its key and requests its server certificate through
POST /api/v1/relay-node/certificate. Its registered listener origin and tenant/node identity determine the certificate. Requested CSR names or CA privileges cannot expand that identity. POST /api/v1/relays/{id}/membersexplicitly approves each downstream agent. An agent obtains its own client certificate throughPOST /api/v1/agents/relay-certificate. Assignment alone does not mint a certificate or change the agent's local route.- Review local listener configuration, firewall rules, agent routing and trust
provisioning before enabling the relay using
/relays/{id}/state.
Mutations carry expectedRevision. Reload the relay after a conflict; do not
blindly retry a changed destination or expanded assignment. List responses use
nextCursor; preserve filters and pass the cursor as after. Member cursors are
agent UUIDs, and pages contain at most 100 entries.
Node credentials and revocation
Relay tokens use the qrr. prefix and can access only their node's health,
certificate and admission endpoints. They cannot list findings, claim scan jobs,
enroll scanner agents or administer a workspace. Their hashes are stored on the
server; the raw credential is returned only at issuance. Dedicated node requests
reject cookies, browser Origin headers, query strings and content encoding.
Admission snapshots are signed with a separate Ed25519 key, bind the tenant, relay and each agent certificate, and currently expire after 60 seconds. Revoked/archived agents, revoked/expired credentials and revoked/expired certificates are omitted. The listener must refresh, reject rollback and invalid signatures, and close existing tunnels when authorization expires or is withdrawn. Offline relays cannot extend a snapshot locally. A wall-clock rollback cannot extend its monotonic deadline.
| State | Effect |
|---|---|
| Draft | No forwarding admissions. Complete setup and review first. |
| Enabled | Only explicitly assigned, currently authorized identities receive admissions. |
| Paused | Signed snapshots disable forwarding while the node can still report health. |
| Revoked or archived | Node credential is revoked; the relay cannot be re-enabled. |
| Deleted | Remove approved assignments first. Configuration is removed, while audit history and the deleted identity remain recorded. |
A designated host's revocation or archival also stops its relay authorization. Suspending a workspace stops relay access. Changes take effect as permissions are refreshed or expire; do not describe that bounded propagation as instantaneous termination of every remote connection.
Certificate lifecycle
The initial implementation issues P-256 certificates with SHA-256 signatures, 24-hour validity and a renewal time 12 hours after issuance. Each enrollment requires a verified CSR signature and a current identity revision. The same current request ID and CSR can be retried without issuing another certificate. One previous certificate is retained for rotation overlap; older ones stop appearing in new admissions. Authorization is rechecked after signing, before the certificate becomes active.
The source runtime renews its own certificate through the approved route; the updater uses an independent certificate slot. Relay-only bootstrap is implemented in the source enrollment command. Managed service-account delivery, recovery after extended offline periods and native installer qualification are still being integrated. These capabilities are not yet published agent packages.
Linux service identity storage
The Python and compiled Linux installers reserve
/var/lib/sectigo-quantum-ready/relay-runtime for the runtime identity. A relay
configuration must select that exact directory. The installer creates it with
mode 0700, owned by the dedicated service account, and retains it during
upgrades. It rejects a substituted symlink, unexpected ownership, extended ACLs
or broader permissions rather than rewriting an existing identity store.
The systemd sandbox permits writes to that directory only (plus rotating logs for the Python service). Installed code and configuration remain read-only. The compiled service sends logs to the journal. This applies to the generated systemd definitions for Ubuntu, Debian, Red Hat and CentOS. Ubuntu24.04 and Debian12/13 have native scanner-service acceptance. Red Hat/CentOS host-service, SELinux and FIPS qualification remain separate from their loader checks.
Creating the directory does not enroll a certificate. Enrollment must run under the actual runtime account. Keep updater enrollment and its private state under the updater account in a separate directory. In particular, Windows protected identity state must never be enrolled under an administrator and copied to a different account.
First-start enrollment
Protected local agent configuration can now carry relayEnrollment containing
the exact administrator-generated enrollment configuration, plus
relayBootstrapTokenFile pointing to a private short-lived bootstrap credential
file. The enrollment agent ID, tenant and ordered routing policy must match
relayAgentId and egress; a mismatch stops before any network request.
The running agent creates its runtime identity under its own account. The
updater independently creates its updater identity using
relayUpdateIdentityDirectory. Both paths must be absolute and separate.
No administrator-generated private key or account-bound state is copied.
After a valid identity exists, restart uses normal mTLS and does not read the bootstrap file or redeem another grant. The source acceptance test removes the bootstrap file and denies further redemption before restarting both paths. Expired or damaged identity state requires explicit recovery; startup does not silently replace it using old bootstrap credentials.
The Linux source installers accept --relay-bootstrap-token-file during initial
installation. Supply a protected credential file alongside the agent configuration
containing relayEnrollment. The installer sets the managed runtime and updater
paths; do not supply arbitrary paths or share their identity directories.
Linux installs a root-only relay-bootstrap.token and a separate root-owned
runtime-relay-bootstrap.token whose ACL grants read access only to the dedicated
runtime UID. This works with the older systemd versions used by Red Hat/CentOS
as well as newer Ubuntu/Debian systems. The updater reads its root-only copy via
relayUpdateBootstrapTokenFile; the runtime cannot read that file or write either
copy. Neither credential appears in unit arguments, environment or configuration.
Failed installation rolls back both copies. Service removal clears runtime
access but preserves the root-only credential with the other retained installation
credentials. These are short-lived grants; retention does not extend their expiry.
For independently managed systemd delivery, the source also recognizes
@systemd:relay-bootstrap and resolves only the fixed relay-bootstrap entry
inside the service credential directory. This is a Linux-specific alternative;
use the published unified installers for their platform-managed credential layout.
The Mac package guide covers native service enrollment
and its separate runtime/updater stores. Do not put raw bootstrap credentials in
configuration, command arguments or environment variables.
Windows protected setup
The Windows service setup command now accepts --relay-bootstrap-token-file
alongside its existing configuration and enrollment credential options. It reads
the bootstrap file using native private-file ACL checks. The configuration must
contain relayEnrollment matching the selected agent and local routing. Setup
chooses fixed paths below the protected product state directory.
relay-bootstrap-token grants read access to the dedicated service SID;
relay-updater-bootstrap-token grants access only to SYSTEM and Administrators.
The runtime identity directory permits the service to create and update its
protected state. The updater directory excludes the runtime service SID. Private
keys are created later under the operating account and protected using that
account's DPAPI context; setup does not generate keys under the administrator
and copy them to the service.
The setup journal stores hashes rather than credentials. Interrupted setup resumes only missing files with the original inputs, and refuses to overwrite changed files or repair unexpected ACLs. Existing removal behavior preserves protected configuration and credentials, including bootstrap files; their remote expiry and use limits remain in effect. Bootstrap files are plaintext protected by Windows ACLs, while saved Windows identity state uses DPAPI.
Windows unified package 0.51.432 includes this workflow with agent 0.26.85 / 692 and installer 0.51.413 / 649. Windows Server 2025 acceptance verified enrollment under the actual restricted service account, heartbeat and TLS scanning through an approved relay with direct fallback disabled, local-scope refusal, cloud pause and idle admission denial after revocation, followed by explicit service stop/removal. These results apply to the Windows scanner service; they do not establish macOS service qualification.
Email-verified relay handoff (development)
The enrollment-handoff API accepts an optional relay object with ordered
relays entries (id, expectedRevision) and an explicit directFallback
value. Select enabled relays with configured bootstrap listeners. The existing
email verification and configurable link expiry still apply.
Creating the link does not issue an agent credential or bootstrap grant. After the recipient verifies their email, one transaction creates the agent, approves only its selected relay memberships and creates a ten-minute bootstrap grant with eight connection uses shared across the selected relays. No remote-scanner pool membership is granted. Unrelated membership revisions do not invalidate the link, but changed relay policy, CA trust, inactive relay/host or lost administrator authority prevents redemption. A failed transaction leaves no partial agent or bootstrap grant.
The recipient page warns them to prepare the installer and local discovery scope
before verification. After verification it offers a private per-device ZIP with
agent.json, agent.token, bootstrap.token and instructions. The configuration
contains relay routing only: add the explicitly approved discovery scope before
installation. Raw credentials are in these private downloaded files, not in the
instructions or stored handoff record. Protect and dispose of downloads using
your organization's secret-handling policy.
Bootstrap expiry starts at verified redemption, independently of the longer link expiry. Downloads do not extend it. The page refuses new downloads after expiry and clears its credential references when leaving. Lost redemption responses still require administrator recovery, as with existing single-use handoffs.
The administrator handoff form now offers Agent connection: choose a direct connection or approved relays, explicitly select a primary and optional secondary, and review direct fallback (disabled by default). Only enabled relays with a bootstrap listener, current credentials and an active designated host appear. Refresh loads the paginated inventory. If a selected relay's policy changed or it became unavailable, the selection is cleared for review instead of silently approving a different destination. Selected origins remain visible below the controls on smaller screens.
The API, admin selector and recipient-page flow are deployed. End-to-end live email-handoff acceptance remains separate from the installed-service tests above. Relay inventory, draft registration, status changes and assignment review are available under Agents & sensors > Fleet tools > Agent relays. Registration supports dedicated nodes and explicit host-agent selection with paginated fleet search. The full-page Set up relay node form prepares listener settings and resource limits, then explicitly issues or replaces a node credential and downloads a private ZIP. It does not retain the credential for another download. Protect extracted files before running the source commands. Open Manage access for paginated active-agent search, explicit transit approval, and per-agent revocation. These actions do not change local routes or scanner-pool permissions. Retired relays can be deleted from that page after revoking all approved assignments; the server checks the full inventory. Open Edit configuration for a full-page policy form with paginated host search. Changes use the reviewed revision; uncertain saves and conflicts require reviewing current state before another edit. Changing the host or destination requires a fresh node credential and explicit re-enablement. Unchanged settings are not submitted. These management pages are deployed. Published Windows and Linux relay package versions and their qualification scope are listed at the top of this page; unified macOS package 0.51.426 is also published with a managed relay service and foreground scanners.
Diagnostics and automation
For an installed service, start with the unified package's relay-node status command and refresh its workspace status. Installer status is a read-only inspection of registration and protected installation records; it does not prove runtime integrity, cloud reachability or successful forwarding. Check the reported verification fields rather than interpreting exit code zero as healthy.
The foreground relay doctor --state-directory ... command is different: it
loads the relay identity, may obtain or renew certificates, binds the configured
listeners and refreshes signed admissions. Do not run it alongside a service
using the same identity directory or ports. Diagnose the installed service first;
if a foreground check is needed, arrange a maintenance window and stop that
service explicitly before using its protected state under the correct service
account. Preserve the identity directory and restore the reviewed service after
the check. A port or state-lock conflict is not a reason to delete identity files
or disable TLS verification.
Changing a registered relay's host type, designated host, forwarding origin or bootstrap origin invalidates its existing node credential and clears the old health report. The relay returns to draft. Provision a fresh credential for the reviewed node configuration, then explicitly enable forwarding. An old node cannot obtain new admissions with its previous credential; existing signed admissions remain bounded by their expiry. A name-only policy edit keeps the credential but also requires explicit re-enablement. Downstream agent identities and assignments are preserved. Changed destinations still require approval in each agent's protected local routing policy; cloud edits cannot bypass that limit.
Relay health reports contain listener state, active tunnel count, applied admission revision and a bounded error code. They must never contain tokens, private keys, raw findings or arbitrary upstream error text. A recent heartbeat is a node report, not proof that a downstream scan completed.
The inventory and detail page prioritize retired or paused state, unavailable credentials and designated hosts, then forwarding errors. A ready listener with an admission failure is shown as Forwarding authorization unavailable. Reports older than two minutes are unavailable in the API and shown as No recent report; the last-contact timestamp remains visible. Listener reported ready still requires a validation scan from an approved agent to establish connectivity.
| Result | Next step |
|---|---|
| Credential expired/revoked | Verify the node's state and protected credential; use administrator-controlled rotation. |
| Certificate rejected | Check purpose, hostname, validity and the separately provisioned relay trust. Never disable verification. |
| Admission unavailable | Check assignment, agent/certificate status, signing trust and the last successful refresh. Remain closed until valid authority returns. |
| Revision conflict | Read the current relay or certificate revision and review the requested change. |
| Origin unavailable | Check the relay's approved outbound destination and DNS; do not broaden proxy destinations. |
| Host inactive | Restore or replace the explicitly designated host; remote-scanner membership does not authorize a replacement. |
The JavaScript and Python SDKs expose registration, listing, state, membership,
credential issuance, certificate enrollment, node health and signed admissions.
Use the node credential only with the dedicated relayNode* / relay_node_*
methods. Software must verify the admission signature before accepting its
contents; decoding base64url is not verification.
The existing OAuth MCP connection exposes relays, relay, relay_create,
relay_update, relay_state, relay_delete, relay_members,
relay_member_update and relay_admission_trust. Every mutation still requires
workspace administrator authorization. Secret issuance and key material stay in
the protected setup/API flow rather than assistant tool arguments.
Fleet routing and acknowledgements
The runtime can validate and persist a narrowed fleet route in its protected identity state before acknowledging configuration. It restores that route after restart, rejects stale/conflicting revisions, and preserves its certificate keys. A policy must remain within the locally approved relay IDs, origins and fallback permission. A conditional fallback does not permit forcing direct mode. Omitting routing from a subsequent scan configuration does not reset the active route.
Per-agent fleet publication is deployed in the API and available through the OAuth MCP tool. The agent connection routing page checks runtime and updater acknowledgements independently every ten seconds, and shortly after route publication. Check application status refreshes reports without discarding unsaved edits. If the published configuration changes elsewhere, the page preserves the edits but blocks publication until you explicitly refresh and review the new revision. Retired agents cannot publish routes. Failed status reads are identified as stale and do not retry a routing mutation. An applied report is not proof of downstream connectivity; validate the approved route from the agent.
The full-page routing editor and bounded fleet preview/publication operations are deployed. A live development-workspace check with compiled macOS agent 0.26.78 verified publication, runtime acknowledgement, restart persistence and rejection of a forced-direct policy outside local approval. Restoring the approved route allowed a TLS scan through the relay; revocation then blocked further contact. This is one runtime's acceptance, not fleet-scale performance or independent updater acceptance. The local routing policy remains the installation authority.
Publish a reviewed agent route
Use the existing POST /api/v1/agents/{id}/configuration operation with the
current configuration expectedRevision and complete scan settings. Add:
{
"egress": {
"version": 1,
"mode": "relay",
"relays": [
{ "id": "11111111-1111-4111-8111-111111111111", "origin": "https://primary.example:8443" },
{ "id": "22222222-2222-4222-8222-222222222222", "origin": "https://secondary.example:8443" }
],
"directFallback": "disabled"
}
}
This fragment belongs inside settings; use real registered IDs and origins.
Order determines primary then secondary. The server requires each relay to be
enabled with a current credential, an active designated host where applicable,
and an existing approved assignment for this agent. It checks the exact registered
origin and tenant. Publication never creates relay assignments. The endpoint
still requires administrator authorization and an exact configuration revision.
The agent independently enforces its local ceiling and opt-in before acknowledging.
Omitting egress on a later scan-settings update preserves the previously
published route. To explicitly request direct routing, use version 1, mode
direct, an empty relays list and directFallback: "disabled". Relay-only local
approval rejects that request even if conditional fallback was allowed. The runtime configuration acknowledgement and updaterRoutingStatus are separate reports.
Neither is independent attestation; compare both revisions to the current configuration.
JavaScript publishAgentConfiguration(id, revision, settings), Python
publish_agent_configuration(id, revision, settings), and OAuth MCP
agent_configuration_publish carry the same settings. After an uncertain response,
read the agent's current configuration and history before republishing. These
APIs and the full-page fleet editor are deployed. Bulk deployment plans use
separate relay authorization and per-device approval/bootstrap; they do not accept
unassigned fleet egress settings. Validate runtime and updater acknowledgements
individually after publishing a route.
Independent updater routing
A managed update supervisor reads GET /api/v1/agents/egress using its existing
approved transport. This delivers only its own desired routing, without changing
runtime heartbeat or scan state. It validates the local ceiling, persists an
accepted revision in its own protected identity directory, and switches transport
before reporting to POST /api/v1/agents/egress-status. It then uses that route
for update polling, operation reconciliation and independently verified release
downloads. Signed release verification and replacement authorization are unchanged.
Rejected policy, invalid state or a failed acknowledgement stops that update cycle. No automatic route expansion or direct escape is introduced. Restart uses the updater's persisted route; it does not read or overwrite the runtime's keys or routing state. Routing still depends on the route being reachable: an operator must review recovery if an explicitly selected path prevents contact.
updaterRoutingStatus appears in the authenticated agent record separately from
configurationStatus. Publishing a new configuration clears both reports. A
status is bound to the current desired revision; stale reports return 409. These
are reports from the agent credential, not cryptographic proof of which process
sent them. The GET/POST operations require the agent role and cannot select another
agent. JavaScript agentDesiredEgress() / reportUpdaterRouting(input) and Python
agent_desired_egress() / report_updater_routing(data) expose these agent-only
operations. Administrative OAuth MCP inspection uses the existing agent_status
tool; these agent-only reporting operations are not administrative MCP tools.
The source updater transport passed a live development-workspace check with a separately enrolled updater certificate: independent acknowledgement, restart persistence, rejection outside local approval, unchanged runtime identity, and revocation blocking further polling. This does not qualify a compiled updater supervisor or managed replacement through the changed route; those require separate native acceptance.
Review and edit routing in the workspace
Open an agent's Configuration page, then Connection routing and updater status. The full-page editor shows runtime configuration and updater routing reports independently against the current revision. It offers Keep current route, Direct connection, or Approved relays with explicit primary/secondary choices and direct fallback disabled by default. Primary and secondary must be distinct.
Relay inventory is loaded in bounded pages and only enabled, credential-ready nodes with an active host are offered. Agent membership is checked by the server when publishing; the editor links to relay transit-access management. A previously selected relay whose destination changed is not silently reselected. Publication preserves every existing scan setting. If this is the first managed configuration, new scans default to disabled with empty scope.
The editor shows publication separately from application. After a successful or uncertain publication, use Refresh and discard edits to review current state before another change. Viewer access is read-only. This interface does not install an agent, approve new local routes or grant scanner-pool permissions. Runtime and updater reports remain independent; publication alone does not confirm either.
Controller-prepared bulk relay enrollment
A relay-only device cannot contact the public enrollment endpoint before it has a bootstrap grant. Prepare its individual package on the authenticated management controller, then deliver it through Intune, Jamf, Ansible or another protected per-device channel. Do not distribute a shared agent or bootstrap credential.
- Create an ordinary deployment plan with its scan settings and an optional
top-level
relayobject containing orderedrelays: [{id, expectedRevision}]and explicitdirectFallback. This captures approved destinations and trust.settings.egressis not a substitute for deployment relay authorization. - Allocate each device with its stable UUID through the existing devices API.
- Just before installation, call
POST /api/v1/agent-deployments/{id}/devices/{deviceId}/relay-packagewith{}as an administrator. It creates that device's agent credential, approved relay assignments and a ten-minute, eight-connection bootstrap grant atomically. - In protected controller memory, combine
settingswithrelay.configurationandmanagedConfiguration: trueforagent.json. Savetokenseparately asagent.tokenandrelay.bootstrapTokenseparately asbootstrap.token. Use private files and the platform-specific unified scanner-service relay enrollment parameters. The receiving local administrator must approve the supplied scope. Keep credentials out of command arguments, logs and shared packages. See the Mac service enrollment guide for its native installer commands. Intune/Jamf assignment and controller-to-device delivery need their own rollout validation. - Retain the device's stable enrollment identity for retry and acknowledge only after its credentials are securely saved. Enrollment acknowledgement alone does not prove installation or successful scans.
Retrying preparation returns the same encrypted delivery while the plan, agent, relay approval, trust and bootstrap remain valid. It does not extend expiry, reset connection usage or create another agent. Changed destinations, revoked access, paused relays, exhausted/expired bootstrap and lost administrator authority prevent delivery. Expired bootstrap requires explicit recovery for the existing agent using the device's Relay package action or the API below. Direct device redemption is rejected for relay-authorized plans. Existing direct deployment plans are unchanged.
JavaScript prepareDeploymentRelayPackage(id, deviceId), Python
prepare_deployment_relay_package(id, device_id) and OAuth MCP
deployment_relay_package expose preparation. These responses contain secrets
for the designated device. Public plan/device inspection does not contain them.
The deployment setup page now offers direct or approved-relay routing, ordered
primary/secondary selection and explicit direct fallback. Available relays must
be enabled, credentialed, host-ready and have a bootstrap listener. Selection
captures relay revisions; changed policies require review. The reviewed request
is frozen after dispatch so an uncertain response retries the same authorization.
For a pilot device, the UI can prepare and download its private relay package, including approved scan scope. The Relay package action can retrieve an already prepared, unacknowledged delivery without creating another agent. It does not extend bootstrap expiry. For an unacknowledged prepared device, choose Renew for 10 minutes under Bootstrap access to invalidate its old bootstrap grant and download a replacement. The current bootstrap ID must be available; refresh deployment details if it is missing. Renewal preserves the agent credential, identity, device slot and approved scope. Prepare the target device first. After an uncertain response, retry the same operation. The form retains its recovery request ID and expected bootstrap ID; it does not silently renew again. Credentials are kept out of rendered text and cleared when the download closes.
These source API/UI paths are implemented; provider orchestration and end-to-end installer acceptance for this bulk path are not yet complete or deployed.
Explicit bulk bootstrap recovery
The deployment UI offers this operation for prepared, unacknowledged devices. Controllers can use the API directly as follows.
For a prepared but unacknowledged device whose bootstrap expired, read its device
status and review relayBootstrapId (an identifier, not a secret). Call the same
relay-package endpoint with:
{
"recovery": {
"requestId": "33333333-3333-4333-8333-333333333333",
"expectedBootstrapId": "44444444-4444-4444-8444-444444444444"
}
}
Use a fresh request UUID and the actual current bootstrap ID. Recovery atomically revokes the old grant, creates a new ten-minute/eight-use grant, and updates the encrypted delivery. It preserves the agent ID, API credential, scan settings and approved route. Deliver the replacement bootstrap file privately; keep existing agent identity state to resume interrupted certificate enrollment.
An exact retry returns the same replacement while valid. Changing the expected ID, replaying a superseded recovery, or using an old current ID fails. Revoked agents, deployments, device grants, bootstrap grants or relay memberships cannot be revived by this operation. Changed trust/destinations and paused relays also block recovery. Each device permits at most 32 recovery requests for bounded history; reaching the limit requires reviewing the deployment. Acknowledged devices use their locally saved credentials and are outside this enrollment recovery path.
JavaScript passes {recovery: {...}} as the third argument to
prepareDeploymentRelayPackage; Python passes the recovery object as the third
argument to prepare_deployment_relay_package. OAuth MCP accepts the optional
recovery object on deployment_relay_package. These API capabilities are deployed; provider-managed installation acceptance remains unfinished.
Streaming controller preparation (Python SDK)
sdk/python/relay_deployment.py provides
prepare_relay_deployment_devices(client, plan_id, devices, deliver). It accepts
an iterable of persisted device IDs and names and a synchronous protected
per-device delivery callback. Each callback must finish before the iterator
prepares the next device. The helper yields non-secret delivery metadata;
installationVerified remains false until independently checked on the host.
from quantum_ready import QuantumReady
from relay_deployment import prepare_relay_deployment_devices
client = QuantumReady(endpoint="https://qscan.dev", token=admin_token)
for status in prepare_relay_deployment_devices(
client, plan_id, persisted_device_inventory, protected_device_delivery
):
save_controller_checkpoint(status)
Supply admin_token from the controller's secret store. The callback receives
deviceId, agentId, files and bootstrapExpiresAt. Its files mapping contains
private credentials; do not log it or store it in shared deployment artifacts.
The helper clears retained secret fields after the callback returns, which is
not a claim of memory erasure. Use a synchronous callback; awaitable callbacks
are rejected rather than reported as successful delivery.
Errors expose only the preparation phase and device ID. Stop and review that
device before retrying with its persisted ID. Optional per-device recovery
contains the reviewed requestId and expectedBootstrapId. Neither SDK helper
automatically renews access, acknowledges installation, writes files, executes
installers or provides a provider-managed delivery channel. Intune, Jamf and
Ansible delivery adapters remain separate integration work.
Streaming controller preparation (JavaScript source SDK)
sdk/javascript/relay-deployment.mjs provides
prepareRelayDeploymentDevices(client, planId, devices, deliver) for a controller
that already has a protected per-device delivery channel. devices can be an
async iterable, so the controller need not load the fleet inventory into memory.
Each item contains a persisted device UUID and name. Optional recovery contains
the explicitly reviewed request/current-bootstrap IDs described above.
import {QuantumReady} from './sdk/javascript/index.mjs';
import {prepareRelayDeploymentDevices} from './sdk/javascript/relay-deployment.mjs';
// Obtain adminToken from your controller's secret store. Do not log it.
const client = new QuantumReady({endpoint: 'https://qscan.dev', token: adminToken});
for await (const status of prepareRelayDeploymentDevices(
client, planId, persistedDeviceInventory,
async ({deviceId, files, bootstrapExpiresAt}) => {
// Implement with your management system's authenticated per-device channel.
// Resolve only after all three private files are safely delivered.
await protectedChannel.deliver(deviceId, files, {expiresAt: bootstrapExpiresAt});
}
)) {
await saveControllerCheckpoint(status); // Contains identifiers/status, not secrets.
}
The helper waits for each delivery before preparing the next bootstrap. It checks
existing device state, allocates only missing devices, reuses prepared identities,
includes approved scan scope in agent.json, and refuses invalid/expired delivery.
It never renews automatically or acknowledges enrollment. Persist device IDs and
recovery request IDs before invoking it. After failure, retry the same item;
delivery callbacks must safely tolerate redelivery to that same device.
The callback receives credential-bearing agent.token and bootstrap.token
strings in memory. Do not log them, write them to a shared installer, or defer
delivery after the callback resolves. The helper clears its object fields before
yielding status; this is reference cleanup, not guaranteed memory zeroization.
An exception stops consumption and exposes only the failing phase/device ID.
Provider-specific transport, file ACLs, installation, acknowledgement and scan
validation remain the controller's responsibility. This source helper is tested
with simulated clients/channels; it is not provider-managed deployment acceptance.
Restart routing and certificate enrollment
Runtime and updater retain their own protected fleet routing revision across restarts. A valid existing identity does not need the bootstrap token again. Explicit certificate enrollment also honors the saved relay subset, order and fallback policy, using those relays' corresponding bootstrap listeners. It does not reset routing to the broader original installation approval. Invalid saved routing stops enrollment before contacting a relay; preserve the protected state and investigate the configuration rather than deleting identity files.
Dedicated Linux service account (source preview)
The relay runs separately from discovery agents, including when both share a designated host. Give it its own non-login account and matching group. It needs outbound HTTPS to the control plane and inbound access on the configured relay ports, not scanner privileges or membership in remote-scanner pools.
The source CLI can generate a reviewable systemd definition:
quantum-ready relay service-plan \
--executable /opt/qscan-relay/quantum-ready \
--config /etc/qscan-relay/config.json \
--token-file /etc/qscan-relay/initial.token \
--state-directory /var/lib/qscan-relay \
--user qscan-relay
This prints JSON containing the unit and prerequisites; it does not install it.
The executable path must refer to a verified complete standalone distribution
that contains these commands. Published Linux 85 includes them; the unified
package provides the managed installation path. The unit uses relay serve to provision certificates under the
dedicated account on first start and then run the relay. It refuses root execution.
Configuration and initial token remain administrator-owned, with read access
granted only to that account. The account owns its separate mode-0700 state
directory; code and configuration must be outside that writable directory and
outside home directories.
After successful provisioning, the initial token file can be removed. Restart uses protected state and preserves explicit credential rotation. An interrupted certificate issuance resumes its pending key. Configuration changes that differ from saved approval stop startup for review; they do not silently replace trust or listener settings. Stop the service before credential rotation or foreground diagnostics because the state store permits only one process at a time.
The unit uses an empty capability set, read-only system protection and one writable state directory. It changes no firewall rules. Native systemd 255 syntax has been checked. The source unit definition alone is not an installed-service qualification. Published compiled Linux packages have separate Ubuntu/Debian lifecycle evidence and Ubuntu relay update/reboot evidence; see the current platform scope at the top of this guide. Older-distribution service qualification remains open.
macOS relay service definition
The transactional Mac installer now implements protected installation, separate updater provisioning, local approval, cloud-update coordination, and journaled schedule setup/reconfiguration. See macOS relay installation and updates for the command sequence, status and recovery behavior. The arm64 relay has passed installed service, reboot and production-signed scheduled update acceptance. The foreground binary is published; unified installer delivery remains separate. The lower-level plan below is still useful for inspecting a forwarding definition, but does not install it.
Source agent 0.26.73 adds relay service-plan --platform macos. It generates a
reviewable LaunchDaemon plist; it does not install or start a service. Use a
installer-provisioned non-login account _qscanrelay, separate from the scanner
and updater accounts. Code and enrollment inputs must be outside writable state.
python3 scanner/qr.py relay service-plan --platform macos \
--executable '/Library/Application Support/Sectigo/relay/quantum-ready' \
--config /private/etc/sectigo-relay/relay.json \
--token-file /private/etc/sectigo-relay/relay.token \
--state-directory /private/var/db/sectigo-relay/node \
--user _qscanrelay
The executable path is for an independently verified native distribution; generating this plan does not install a service. Use the qualified installer workflow rather than manually applying a generated plan. Review the returned ownership requirements before using administrator commands.
The current source startup path uses relay macos-service. Its initial root
process validates the protected account plan, clears supplementary groups, drops
to the dedicated UID/GID and verifies that root cannot be regained before reading
enrollment inputs or opening a listener. The forwarder runs without root access.
This startup path passed native restricted-account acceptance. Older compiled
agents must not be paired with a service definition they do not support.
macOS setup state now rejects extended directory ACLs even when the directory
shows mode 0700. If setup reports a directory-permissions error, have the local
administrator inspect its ownership and ACLs; do not broaden access to resolve it.
Transactional Linux relay installer
The published Linux installer provides a relay-node command group. It verifies the
signed native archive, expected version and minimum release sequence before
installing a separate relay service. For individual signed release inputs:
sudo quantum-ready-service relay-node install \
--manifest /root/relay-package/manifest.json \
--signature /root/relay-package/manifest.sig \
--archive /root/relay-package/agent.zip \
--trusted-key /root/relay-package/release-key.json \
--expected-version VERSION --minimum-sequence SEQUENCE \
--config /root/relay-package/relay.json \
--token-file /root/relay-package/relay.token
Replace VERSION and SEQUENCE with the reviewed release values. The signing key
must come from your independently trusted release configuration. Published Linux
installer 0.51.413 / 650 includes this command. The equivalent source entry point is
python3 scanner/linux_binary_service.py relay-node with the same arguments.
Installation creates sectigoqr-relay, isolated from sectigoqr, and a separate
sectigo-quantum-ready-relay.service. Original inputs stay administrator-owned;
derived credential/configuration files grant read access to precisely the relay
UID. Only /var/lib/sectigo-quantum-ready-relay/node is writable by the running
relay. Releases and installer receipts stay administrator-owned. No firewall
rules or remote-scanner memberships are created.
relay-node upgrade accepts a new signed release and preserves enrollment.
start, stop, status, remove and recover use the protected installation
receipt. Installation and upgrade journal changes before activation and restore
previous definitions on failure. An interrupted transaction requires recover.
Removal disables the service and removes its derived delivery files; it preserves
private identity, original credentials and releases for deliberate recovery.
Keep those administrator-owned inputs while the managed installation exists.
The installer checks process stability before committing, which does not prove control-plane connectivity. Check fleet relay health after installation. Local transaction tests use a simulated service manager, supplemented by native Ubuntu/Debian service and reboot acceptance and a production-signed Ubuntu relay cloud update. See the platform-specific versions at the top of this page; these results do not establish acceptance on every Linux distribution.
Unified Linux package commands
The unified launcher source exposes the same relay-node lifecycle:
sudo ./Deploy-QuantumReady.sh relay-node install \
--config /private/relay.json --token-file /private/relay.token
sudo ./Deploy-QuantumReady.sh relay-node status
sudo ./Deploy-QuantumReady.sh relay-node upgrade
sudo ./Deploy-QuantumReady.sh relay-node recover
sudo ./Deploy-QuantumReady.sh relay-node remove
relay-node start and relay-node stop control only the relay service. Installation
and upgrade use the package's signed release and reviewed sequence. Per-node
configuration and credentials are delivered separately from the shared package.
Relay-node actions do not enroll a scanner or operate its updater. Both services
can coexist on an explicitly designated agent host using separate accounts.
The next Linux installer includes a structured response when relay-node status
cannot acquire the installation lock: status: "busy",
error: "installation-operation-in-progress", retryable: true, and exit code75.
Retry the status observation after the current operation finishes; do not delete
protected state or replay an install/update command. This response does not claim
that the service is healthy or installed. Published installer408 and qualification
candidate413 still emit the older lock-contention error.
To install a scanning agent that connects through relays, use install-relay
with the agent configuration, agent token and short-lived bootstrap token instead.
The launcher rejects mixing these input sets before invoking either binary. A
failed relay operation stops immediately; its success/status message is not shown.
These commands are included in published Linux unified package 0.51.431. Native
service qualification covers the versions and distributions listed above.
Provider-managed enrollment and newer candidate packages require their own
acceptance; launcher orchestration tests alone do not establish that result.
Windows service identity (source preview)
The Windows relay host uses SectigoQuantumReadyRelay and the separate virtual
account NT SERVICE\SectigoQuantumReadyRelay. It rejects the discovery service's
account, elevated tokens, missing restricted SIDs and extra privileges before
opening relay state or reading enrollment inputs. Its allowed privilege is
SeChangeNotifyPrivilege; relay forwarding does not require scanner privileges.
The relay windows-service source entry point accepts --config, --token-file
and --state-directory and must be started through Windows Service Control Manager.
First provisioning runs under the relay account so its DPAPI identity state is
never transferred from an administrator or the scanner. Stop and shutdown requests
are forwarded to the relay runtime; listeners and the protected state lock are
closed on exit. An unexpected runtime exit is reported as a service failure.
This is the service-host implementation, not a released Windows installer. Installer registration, ACL setup and real virtual-account execution passed Windows Server native acceptance, including scheduled update and reboot. Unified Windows package 0.51.432 includes this installer. Do not configure the relay to run as SYSTEM or an administrator to bypass account validation.
Windows relay installation commands (source preview)
The installer source exposes relay-node install and relay-node recover. A
candidate containing these commands accepts the following in an elevated terminal:
.\quantum-ready-service.exe relay-node install `
--manifest C:\Private\relay-package\manifest.json `
--signature C:\Private\relay-package\manifest.sig `
--archive C:\Private\relay-package\agent.zip `
--trusted-key C:\Private\relay-package\release-key.json `
--version VERSION --minimum-sequence SEQUENCE `
--config C:\Private\relay-package\relay.json `
--token-file C:\Private\relay-package\relay.token
Use the reviewed version and sequence and an independently trusted signing key.
Configuration and token inputs must have private file permissions. The source
equivalent is python scanner/windows_service.py relay-node install with the same
arguments. This installs a signed standalone agent distribution as the relay.
Published Windows installer 0.51.413 / 649 includes these commands, and unified
Windows package 0.51.432 supplies the launcher and signed inputs together.
If initial setup is interrupted, use relay-node recover with the original
package, configuration, token and release arguments. Recovery requires existing
protected relay roots and a matching installation journal. It preserves relay
identity and cannot adopt an unrelated service or changed enrollment inputs.
An expired package can be used only when its exact release was previously admitted
and recorded in that protected journal; a new expired download is rejected.
The same candidate supports local lifecycle commands without enrollment inputs:
.\quantum-ready-service.exe relay-node status
.\quantum-ready-service.exe relay-node stop
.\quantum-ready-service.exe relay-node remove
Stop disables the relay service. Remove stops and deletes the exact registered relay service, preserving credentials, identity and package files. Neither action revokes its cloud identity; revoke relay access in the workspace separately when decommissioning. These commands do not change the scanner service.
If removal reports removal-pending, allow service handles to close and repeat
relay-node remove. If status reports recovery-required, repeat the indicated
pending stop or remove action. An interrupted initial installation still requires
relay-node recover with its original inputs. A changed service identity or
command requires investigation; the installer will not adopt it.
Local RUNNING status does not establish cloud reachability. Check relay health in the workspace after installation. Native-account lifecycle acceptance and a production-signed scheduled update followed by reboot have passed on Windows Server. Unified Windows package 0.51.432 includes the tested relay installer.
To start a stopped relay, use relay-node start with the original --manifest,
--signature, --archive, --trusted-key, --version and --minimum-sequence
arguments. Omit --config and --token-file: start uses the protected installed
inputs. It verifies the original signed release and exact installed files before
activation, including their permissions. An expired manifest is accepted only for
the exact previously admitted release. This command does not download or upgrade
the relay. Keep the signed package and independently trusted key available.
A failed start leaves the service stopped and disabled. Retry relay-node start
with the same evidence after correcting the problem, or use relay-node stop to
cancel the pending start before removal. Local start success reports service
state only, not cloud connectivity.
Windows unified relay-node deployment
The unified launcher source uses -Action RelayNode for a relay service. This is
separate from -Action InstallRelay, which enrolls a scanner agent that connects
through a relay. These commands are included in Windows unified package 0.51.432.
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Install `
-ConfigurationPath C:\Private\relay.json -RelayNodeTokenPath C:\Private\relay.token
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Status
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Stop
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Start
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Remove
For unattended deployment, invoke the script from 64-bit PowerShell with
-NoProfile -NonInteractive -File, using your management tool's protected cache
and script execution policy. Deliver relay configuration and the relay credential
privately, outside the package. Use Recover with the original configuration and
credential paths after an interrupted installation. Start and recovery use the
package's original signed service release; keep that package available. A newer
package is not an implicit relay upgrade.
Status, stop and removal need no enrollment files. All actions return structured
native relay status after package integrity verification. A successful exit does
not prove cloud health or completed deletion: check status and handle
removal-pending as described above. The scanner service and its updater are not
queried or modified by this relay-node mode.
Windows relay upgrades (source preview)
Recovery preserves runtime files after service activation may have occurred. If the service already points to the replacement release, recovery verifies its existing signed inventory before making service changes. A missing or altered runtime stops recovery for administrator review instead of recreating files beneath the service. Initial-install recovery after registration and completed install retries apply the same rule. Keep the protected journals and original package when investigating a failed verification.
Linux native installers likewise reject a same-release upgrade if its recorded active runtime directory is missing. This preserves service state for review; the installer does not recreate that directory before stopping the service.
Use a newer signed candidate package with
-Action RelayNode -RelayNodeAction Upgrade. The standalone equivalent is
relay-node upgrade with the new release's manifest, signature, archive,
independently trusted key, version and minimum sequence. Do not supply enrollment
inputs: the upgrade preserves the relay identity and configuration.
The installer verifies and stages the release before stopping the service. It
requires a higher release sequence, the existing signing identity and no version
downgrade. If activation or a receipt write fails, the owned relay is stopped and
disabled. Preserve both package versions and protected relay state. Run Upgrade
again with the same target package to resume; status reports recovery-required
and pendingAction: upgrade. Recovery verifies the exact admitted release even
after its manifest expires. Stop remains available during recovery and preserves
the pending upgrade journal. Other lifecycle operations wait for that upgrade to
finish. Recovery proceeds to the admitted target; it does not automatically
restart the old version. Verify cloud health after local completion.
Repeating a completed upgrade with its exact package re-verifies the signed
release, installed files and enrollment inputs, then reports already-current
with the actual service state. It does not restart a relay that was subsequently
stopped. Use Start explicitly when required.
Managed relay updates
Managed update APIs and native supervisor execution are implemented. Linux has passed offline Ubuntu signed replacement, TLS forwarding, identity preservation and reboot tests. Windows Server and macOS have also passed production-signed scheduled relay replacement and reboot acceptance. These receipts do not qualify every scanner service or unified installer path. Use the published platform availability information above when choosing a deployment package; unified macOS package0.51.434 includes native installer433; Windows unified package 0.51.432 includes its qualified relay installer.
Linux source now includes separate relay updater provisioning, a local opt-in
policy and journaled supervisor registration. The relay-node installer branch
provides provision-updater, update-policy, register-supervisor, and
supervisor-status|start|stop|remove|recover. Registration verifies the signed
installer archive against the locally trusted release key before installing the
dedicated sectigo-quantum-ready-relay-updates.service. It does not enable update
permission. The forwarding service cannot read the root-only updater credential.
The policy binds the tenant, relay and node generation and selects explicit
versions and sequence bounds. Published Linux installer 0.51.413 / 650 includes
these commands. The separate updater credential and explicit local approval
remain required even when using the unified package.
The supervisor persists its claim and replacement state before acting. An
interrupted replacement is reconciled from protected installation evidence rather
than automatically replayed. Use supervisor-recover for an interrupted supervisor
registration or removal, and the relay installer's recover for an interrupted
relay replacement. Neither recovery command grants a new cloud update operation.
Published Windows installer 0.51.413 / 649 provides relay-node provision-updater --updater-file,
relay-node update-policy --policy-file, and
relay-node supervise-once --trusted-key. Inputs require private Windows ACLs;
updater state excludes both the forwarding and scanner service identities. A
pending replacement requires recovery with its exact signed package before the
coordinator reports completion. The installer also supports relay-node register-supervisor
with a signed installer package and supervisor-status|enable|disable|remove for
the separate relay task. Registration starts disabled; enabling requires local
permission. Disable before removal and let any in-flight update finish. Native
scheduled replacement from agent 0.26.75 / 653 to 0.26.85 / 692, followed
by reboot and a fresh cloud heartbeat, passed on Windows Server 2025. This
qualifies the relay updater; generic scanner-service managed updates remain
a separate acceptance requirement.
Configure updater access in the workspace
In Agent relays, open the relay, choose Relay updates, then Configure updater access. An administrator can issue or replace the separate updater credential and download its private setup archive. Existing credentials can also be revoked here. Replacement invalidates the old credential immediately; revocation cannot undo an installation already in progress.
The archive contains relay-updater.json and platform-specific instructions.
It contains a plaintext secret: ZIP packaging is not encryption. Deliver it only
through an approved confidential channel and extract into administrator-only
storage. The updater credential must remain inaccessible to forwarding and
scanner service accounts. Provision it with the qualified installer's
relay-node provision-updater --updater-file command. Remove downloaded copies
after protected provisioning. Credentials expire after 90 days.
Provisioning does not enable updates. The node administrator must separately
approve explicit release versions and sequence bounds with a time-limited local
policy and register the supervisor using independently verified installer
artifacts. Published Linux and Windows installers 0.51.413 include this workflow;
use each platform's argument names and independently trusted release inputs.
macOS combined package0.51.426 exposes its separate relay-node schedule-updates
and recover-schedule commands; scheduling does not enable local update approval.
The full-page update view explains readiness blockers, lists reviewed compatible releases and refreshes status every ten seconds. Arrange a secondary agent route, pause forwarding and wait for drained connections before requesting an update. Only pending requests can be cancelled. If credential delivery or update submission has an uncertain outcome, refresh and inspect current state before deliberately retrying. No mutation is automatically retried.
GET /api/v1/relays/{id}/update-options returns compatible reviewed releases,
the current operation and a specific readiness blocker. A recent native platform
report allows release inspection before pausing forwarding. Selection alone
never grants installation permission. Updater provisioning, an explicit pause,
current signed pause acknowledgement and zero forwarding/bootstrap tunnels are
required before requesting replacement.
OAuth MCP provides relay_update_options, relay_update_current,
relay_update_status, relay_update_request and relay_update_cancel. Request
and cancellation require workspace administrator access. Preserve the request ID
and exact inputs for retries. The local updater handles replacement claims and
outcome reports through its separate credential; these are not MCP actions.
An installed-reported outcome still needs independent verification of the new
process and forwarding. An expired claimed update becomes outcome-unknown and
must be reconciled before another update for that node. Replacing the designated
node advances its generation, preventing inheritance of old update authority.
Fleet route operations
Open Agents & sensors > Fleet tools > Fleet connection routing to prepare a reviewable selection across all matching agent pages, then publish the chosen route in bounded background batches. Set fleet filters before opening a new route change. The full-page workflow includes preview issues, paginated results and links to each agent's runtime and updater application status. API, SDK and MCP clients expose the same review and explicit-publication boundary.
Every selected agent needs an existing managed scan configuration. A routing operation preserves its enabled state, polling interval and all scan scope. It never grants relay transit membership or remote-scanner pool membership. Prepare relay access first; the operation rechecks relay state, destination and membership when it publishes each agent's configuration. Missing configurations, revoked or archived agents, and configuration revisions changed after selection are reported as conflicts. No settings are silently replaced to resolve a conflict.
- Create an operation with a persistent request ID, inventory filters and an explicit direct or relay policy. Preserve the exact body for a lost-response retry by the same administrator.
- Poll until
ready; inspect the paginated items and eachpreviewIssue. Preparation collects selection over time and excludes newer enrollments; it is not a globally atomic inventory snapshot. No configuration is published yet. - Explicitly apply the reviewed operation using its current
revisionasexpectedRevision. Administrator authority is checked before each batch. - Follow the outcome totals and per-agent results.
appliedmeans a desired configuration was published. Check the individual agent's runtime and updater acknowledgements before treating that route as active. Host-local approvals still apply; publication cannot expand them.
Operations expire after 24 hours. At most ten may be active in a workspace. Authorization loss pauses processing; an administrator must explicitly resume under current authority. Cancellation stops remaining work and preserves earlier publications. Detailed outcomes expire 30 days after termination; aggregate history remains. After an uncertain apply, resume or cancel response, read the operation before deciding whether to retry.
JavaScript uses createAgentRoutingOperation, agentRoutingOperations,
agentRoutingOperation, agentRoutingOperationItems, applyAgentRoutingOperation,
resumeAgentRoutingOperation and cancelAgentRoutingOperation. Python exposes
matching snake_case methods. MCP exposes the agent_routing_* tools through the
existing authenticated server; prepare and apply are distinct actions.