Engineering guide · ICAM
Edge Agents, Directory, And Desktop
On this page
EnrollmentAttestationEncrypted Work QueueExecutable portable protocol workerPersistence and protocol invariantsNative artifact boundaryThe edge-agent control plane provides one certificate-bound protocol for:
-
Active Directory synchronization;
-
delegated authentication;
-
desktop single sign-on;
-
desktop MFA and device-access challenges;
-
SSH/RDP privileged gateways;
-
bounded local server accounts.
Capabilities are explicit at enrollment and cannot be expanded by a heartbeat or command result.
Enrollment
-
An AAL2 administrator calls
POST /api/v1/icam/agents. -
Atlas returns a 256-bit, ten-minute enrollment token once.
-
PostgreSQL stores only its SHA-256 digest.
-
The agent connects to
POST /api/v1/agent/{tenantId}/{agentId}/enrollwith a verified TLS client certificate. -
Atlas binds the certificate SHA-256 fingerprint to the agent and consumes the enrollment exactly once.
The agent protocol does not accept a bearer token as a substitute for its verified TLS certificate. A request with no verified certificate chain is rejected before enrollment, heartbeat, polling, result, or recording processing.
Attestation
POST /api/v1/agent/{tenantId}/{agentId}/heartbeat submits version, platform, hostname, secure-boot state, device-key identifier, observation time, nonce, and bounded posture data.
Atlas rejects stale and future observations and stores an attestation digest with the agent version.
The executable worker refreshes this report before each poll; a failed
heartbeat suppresses command execution for that cycle. The mTLS channel binds
the report to the enrolled agent certificate. secureBoot remains host
posture reported by that process and must not be described as independent TPM
proof unless a deployment supplies and validates that additional evidence.
Pools of fresh directory agents can receive independently approved, content-addressed releases through bounded, certificate-bound waves. See Directory Agent Pool Update Authority and Directory Agent Pools API.
Encrypted Work Queue
Administrators queue work at:
POST /api/v1/icam/agents/{agentId}/commands
Agents lease work at:
GET /api/v1/agent/{tenantId}/{agentId}/commands
An idempotency key is bound to the canonical payload.
Reusing the key with different input returns 409 Conflict.
Leases are 30 seconds, attempts are bounded at three, and terminal results cannot be changed.
Command and result envelopes bind tenant, agent, command, and content digests before Vault Transit encryption.
Raw password, secret, credential, token, and private-key fields are rejected.
Delegated authentication uses an approved reference such as vault://…; the command database never stores the credential plaintext.
Executable portable protocol worker
Atlas service is a real long-running worker for the portable protocol surface. It:
-
connects to the Atlas command API with one TLS 1.3 client certificate;
-
submits a fresh, nonce-bearing version/platform/host/device-key posture heartbeat before every poll and skips work whenever that refresh fails;
-
resolves CA certificates, service credentials, delegated credentials, keytabs, and Kerberos configuration from Vault references inside the process;
-
performs paged directory searches over verified LDAPS or LDAP StartTLS;
-
escapes the supplied username, requires exactly one matching DN, and performs delegated authentication through a second TLS-protected LDAP bind;
-
acquires a Kerberos TGT from a keytab and executes an HTTP SPNEGO exchange;
-
returns bounded results and digests through the certificate-bound command lease; and
-
reports only safe error classes without logging command payloads or resolved secrets.
The base worker requires these deployment values in addition to its Vault configuration:
ATLAS_EDGE_AGENT_GATEWAY_URL=https://atlas.example
ATLAS_EDGE_AGENT_TENANT_ID=<tenant UUID>
ATLAS_EDGE_AGENT_ID=<enrolled agent ID>
ATLAS_EDGE_AGENT_TLS_CERT=/etc/atlas/agent/tls.crt
ATLAS_EDGE_AGENT_TLS_KEY=/etc/atlas/agent/tls.key
ATLAS_EDGE_AGENT_TLS_CA=/etc/atlas/agent/atlas-ca.pem
ATLAS_EDGE_AGENT_VERSION=2.1.0
ATLAS_EDGE_AGENT_DEVICE_KEY_ID=<stable host/device-key identifier>
ATLAS_EDGE_AGENT_SECURE_BOOT=true
The gateway URL must be HTTPS, the client key remains local, and the CA file
must validate the gateway. Set ATLAS_EDGE_AGENT_SECURE_BOOT=true only when
the host installation has established that posture; the control protocol does
not infer it from the operating-system name.
The portable command payloads and result fields are documented in Portable Directory, Delegated Authentication, And Desktop SSO API.
Persistence and protocol invariants
PostgreSQL contains only Vault Transit ciphertext for protocol payloads and results. The persisted digest binds tenant, agent, command kind, and canonical content. Database guards reject:
-
physical deletion of an enrolled agent, enrollment, or command;
-
replacement of an enrolled certificate fingerprint;
-
payload or result evidence mutation;
-
illegal agent and command state transitions; and
-
decreasing lease, completion, or update timestamps.
The integration fixture executes both LDAP TLS modes and delegated
authentication against OpenLDAP, and TGT/SPNEGO against an MIT Kerberos KDC.
It also proves wrong-certificate rejection, cross-tenant rejection, terminal
completion replay rejection, raw SPNEGO authenticator replay rejection,
restart recovery, encrypted-at-rest privacy, and direct SQL tamper rejection.
The current evidence manifest is
artifacts/portable-agent-protocol-validation/20260726T233946Z/manifest.sha256.
Native artifact boundary
The portable worker proves network protocol execution. It does not emulate or claim operating-system integration. Full native capability validation still requires separately built and signed packages and real platform tests for:
-
Windows service installation, machine identity, and domain join;
-
Active Directory incremental/delta semantics beyond portable LDAP paging;
-
production browser integrated Windows authentication;
-
Windows and macOS desktop MFA enforcement, and offline desktop factors;
-
secure upgrade, rollback, and device-key rotation.
The parity ledger keeps these native limitations explicit; portable protocol proof must not be interpreted as evidence for a signed Windows deployment.
The separately implemented managed-device authority supplies durable
registration, dual-signed posture, provider, policy, and online MFA challenge
authority. Atlas now includes a Linux pam_exec-compatible online client; see
Linux PAM And Desktop Access. See also
Managed Device Authority And Access
Boundary. Windows/macOS providers, signed installers, offline factors,
upgrade/rollback, device-bound SSO, and logout interception remain outside the
proved native boundary.