Engineering guide · ICAM

Directory Agent Pool Update Authority

Status: currentReviewed: 2026-08-17Audience: directory architects, platform engineers, security operations
On this pageAuthority modelSigned safety envelopeArtifact and agent proofStorage and tamper resistanceOperational responseValidation and boundary

Atlas models a directory-agent update as a signed distributed-system transition, not as a mutable version flag. The public surface retains the useful Agent Pools resource shape from the Okta Agent Pools API, while Atlas adds content-addressed artifacts, two-person activation, certificate-bound acknowledgements, health-floor wave dispatch, exact compare-and-swap, durable replay receipts, and cryptographically verifiable evidence.

The pool authority does not download or execute code. A native agent obtains only a rollout assignment authorized for the certificate already bound at enrollment. The separately supplied agent validates and installs the OCI artifact and returns its observed result.

Authority model

AAL3 maker                            AAL3 independent checker
    | create pool / stage update                |
    v                                           v
signed STAGED revision --------------------> ACTIVATE
                                                  |
                           fresh agent health + settings snapshot
                                                  |
                                                  v
                                     bounded DISPATCHED wave
                                                  |
                         verified mTLS certificate acknowledgement
                                                  |
                    +-----------------------------+------------------+
                    | success                                        | failure
                    v                                                v
             next bounded wave                              fail-closed PAUSED
                    |                                                |
                    v                                      reviewed RETRY only
          all members SUCCEEDED                                      |
          and quorum satisfied <-------------------------------------+
                    |
                    v
             signed COMPLETED

A pool has two to 50 unique active AD-directory agents. Membership is immutable in the current resource generation: an operator creates a new pool to change the trust set. PostgreSQL binds each member to an enrolled tenant-local edge agent and prevents one directory agent from being silently placed in multiple pools.

Pool creation and settings replacement require fresh phishing-resistant AAL3. Staging requires fresh AAL2. Activation requires a different actor with fresh phishing-resistant AAL3. Stop also requires phishing-resistant AAL3 because it withdraws an in-progress release. Pause, resume, and reviewed retry require fresh AAL2.

Signed safety envelope

The settings snapshot travels with the staged update:

Setting Enforcement

batchSize

Maximum number selected for a new wave.

maxUnavailable

Maximum DISPATCHED or STARTED members at once.

minHealthyAgents

Health floor preserved before every dispatch. An all-at-once update that would cross this floor is invalid.

requiredSuccesses

Certificate-bound completion quorum. Atlas currently also requires every pool member to report SUCCEEDED before COMPLETED; the quorum cannot weaken that invariant.

heartbeatFreshnessSeconds

Maximum age, from 30 through 600 seconds, of the most recent member attestation at creation, settings replacement, activation, and dispatch.

requireSecureBoot

Requires each member’s current signed heartbeat to report secure boot.

maintenanceWindow

Optional enforced IANA time zone, weekday set, start minute, and bounded duration. Activation outside the signed window fails closed.

Settings cannot change while an update is open. Activation reloads the pool, compares the exact staged snapshot, and revalidates every member. This prevents a maker from staging under one safety policy and obtaining approval under another.

Artifact and agent proof

artifactRef must be an OCI reference ending in @sha256:<artifactSha256>. A mutable tag is not accepted. The authority has no field for binary content, repository credentials, passwords, access tokens, refresh tokens, client secrets, or private keys.

Each rollout entry captures:

  • the purpose-separated digest of the agent certificate bound at staging;

  • status and attempt number;

  • dispatch, start, and completion times;

  • installed version and artifact digest on success;

  • a digest of the certificate-bound success attestation; or

  • a digest-only failure reference.

The agent endpoint accepts exactly one verified TLS client certificate and no bearer-token substitute. A success is rejected unless the installed version and artifact digest exactly equal the signed target. A failure automatically pauses the aggregate. Ordinary resume cannot conceal the failure: an operator must choose retry, which creates a new attempt in a bounded wave, or phishing-resistant stop, which creates a terminal STOPPED revision and cancels outstanding assignments.

Storage and tamper resistance

Migration 089_directory_agent_pool_updates.sql stores separate pool, membership, update, evidence, and replay authorities. One serializable transaction commits:

  • the exact next aggregate revision;

  • its P-384 signature and signer identifier;

  • the matching next evidence event;

  • the new evidence-chain head; and

  • the actor- and canonical-request-bound replay receipt.

Deferred constraints require a matching event for every aggregate revision and require signed membership and rollout JSON to equal the relational membership. Triggers reject revision skips, target replacement, terminal reopening, physical aggregate deletion, membership mutation, evidence mutation, replay mutation, event-chain discontinuity, secret-shaped fields, and a completed update containing anything other than succeeded members.

Reads verify the state digest and P-384 signature before returning authority. Evidence reads additionally verify every signature, version, prior hash, and chain head. A storage administrator who changes JSON without the external signing key causes Atlas to fail closed with an integrity error.

Operational response

To contain a suspected release:

  1. pause dispatch at the current exact version;

  2. preserve and inspect the update evidence chain;

  3. quarantine the registry digest outside this authority;

  4. use stop if the digest is untrusted, or retry only after the failed member and artifact are reviewed;

  5. rotate affected agent certificates through the enrollment authority when certificate compromise is suspected; and

  6. stage a new content digest for any replacement binary.

Atlas never deletes the prior update or rewrites its failure result.

Validation and boundary

Unit and gateway tests cover settings validation, exact replay, maker/checker, bounded waves, certificate visibility, success, fail-closed pause, retry/completion, pause/resume/stop, concurrent CAS, signature tampering, and the OpenAPI contract.

The bounded Docker scenario uses PostgreSQL 16, Vault Transit for the shared edge-control store, and the real migration stack. It proves restart recovery, signed-chain verification, certificate-bound quorum, failure/retry, serializable concurrent pause, secret non-disclosure, and direct SQL rejection of aggregate deletion, membership deletion, evidence mutation, and a revision without matching evidence:

./scripts/test/run-agent-pool-update-docker-validation.sh

The latest successful proof was independently rechecked at artifacts/agent-pool-update-validation/20260815T070734Z/manifest.sha256.

This proof covers the Atlas server authority. It does not claim that a native AD or LDAP package has downloaded, verified, installed, health-checked, or rolled back a release. Those behaviors require signed platform artifacts and real directory-environment acceptance tests.

See Directory Agent Pools API for exact routes, request examples, and error behavior, and Edge Agents, Directory, And Desktop for the broader native-agent boundary.