Engineering guide · ICAM

Managed Native Operation Authority

Status: implemented; focused PostgreSQL Docker validation prepared but not yet executedReviewed: 2026-07-26Audience: ICAM architects, directory engineers, endpoint security engineers, assessors
On this pageAuthority compositionLifecycleCommand and receipt cryptographyDurable defensesEvidence and privacyThreat decisionsValidation disposition

Atlas models live directory queries and managed-browser remediation as typed, short-lived authority transitions. The subsystem does not own or copy the application, group, user, device, Chrome profile, or edge-agent source of truth.

application authority + directory group + active AD agent
                         |
                         v
              typed directory query

directory user + managed device + explicit Chrome profile + active agent
                         |
                         v
       proposal -- independent approval --> typed cookie/cache clear
                         |
                         v
        signed command -- mTLS agent --> signed terminal receipt
                         |
                         v
              HMAC state + append-only evidence

Authority composition

The operation pins and revalidates existing authorities:

Authority Pinned facts

Application authority

Exact tenant, application ID, active status and version, plus signed references to one AD identity source and one AD agent pool.

Universal Directory

Exact tenant and group for a query, or exact tenant and user for browser remediation. A directory query additionally requires one active imported group entity in the application’s exact signed identity source whose TargetID equals the canonical group.

Identity-source authority

Active AD metadata, direct ready connector, source generation, revision, anchor and evidence head, plus the imported group entity’s privacy-safe anchor and generation. Raw external group identifiers never enter the operation.

Directory agent-pool authority

Active AD type, immutable member set, pool version and evidence head. Only a fresh capable member of this exact pool is eligible.

Managed-device authority

Active managed device, immutable owner, device revision, P-384 key generation, explicit managed-Chrome profile ID and revision, observation agent evidence, and current authority seal.

Edge-agent authority

Agent ID and version, active status, explicit operation capability, exact certificate digest, attestation digest, attested device-key ID, freshness, secure boot, and attestation integrity.

Managed-operation authority

Request digest, HMAC-blinded replay and actor references, 256-bit nonce, command signature, lease, receipt, terminal state, and evidence chain.

The managed Chrome projection is deliberately not an OS-account projection. It stores an opaque profile reference and management status, not a local username, browser username, email address, Google identifier, browsing history, URL, cookie, cache object, token, or credential. A device observation after device-key rotation must be renewed at the new generation before a command is eligible.

Lifecycle

A directory query enters QUEUED. Chrome fan-out enters PENDING_APPROVAL; a different phishing-resistant AAL3 actor advances each item to QUEUED. The exact pinned agent advances an operation to LEASED. Only a certificate-key signed receipt advances it to SUCCEEDED or FAILED. An uncompleted item advances to EXPIRED under compare-and-swap.

From To Gate

create

QUEUED

Exact active application, exact tenant group, allowlisted attributes, fresh directory agent, signed command.

create

PENDING_APPROVAL

Exact user, atomic 1–32 profile fan-out, fresh phishing-resistant AAL3 maker.

PENDING_APPROVAL

QUEUED

Exact version, different actor, fresh phishing-resistant AAL3 checker, complete authority revalidation, signed command.

QUEUED or expired LEASED

LEASED

Exact fresh pinned mTLS agent, exact verified state, unexpired operation, maximum five attempts.

LEASED

SUCCEEDED or FAILED

Exact lease and nonce, microsecond time bound, exact TLS certificate, certificate-key receipt signature, fresh target generations.

nonterminal

EXPIRED

Expiry observed and won the exact state version race.

SUCCEEDED

SUCCEEDED

Privacy-bearing directory result is purged after retention through a new signed evidence transition.

The completion-versus-expiry race is intentional. Both mutate from the same version. Exactly one compare-and-swap can win; the loser rereads and returns the already committed terminal result. This prevents a late expiry worker from rewriting a valid completion, and prevents a late receipt from reviving an expired operation.

Command and receipt cryptography

Atlas signs commands with a stable ECDSA P-384 authority key. The signed canonical statement includes:

  • operation ID and kind;

  • exact target IDs and every pinned generation;

  • application-bound AD source and pool provenance, including evidence anchors;

  • exact agent ID, version, certificate, attestation, and device-key evidence;

  • requested directory attributes or the fixed CACHE and COOKIES scope;

  • a random 256-bit globally unique nonce; and

  • operation expiry.

The agent receipt binds operation, lease, nonce, terminal status, bounded result or error code, and completion time. Atlas verifies ES384 under the key from the same client certificate used for mutually authenticated TLS. A valid signature from a different enrolled certificate is insufficient.

Commands expire after ten minutes for directory queries and five minutes for Chrome remediation. A lease lasts 60 seconds. Directory result JSON is AES-256-GCM encrypted before the operation is committed. Its 256-bit key is derived from the runtime authority key with a distinct context plus exact tenant and operation IDs; associated data binds tenant, operation, request, and signed command hashes. Only ciphertext, nonce, and a ciphertext digest are persisted, so database readers do not receive a low-entropy plaintext dictionary oracle. Results are retained for 15 minutes and then the ciphertext and nonce are cryptographically purged under CAS while the digest tombstone remains.

Durable defenses

Migration 107_managed_native_operations.sql creates:

  • atlas_managed_operations, the sealed aggregate and duplicated indexed columns;

  • atlas_managed_operation_events, contiguous immutable evidence; and

  • atlas_managed_operation_replays, request-bound fan-out replay receipts.

Application verification authenticates the complete aggregate with an HMAC-SHA-256 key held outside the database. SQL independently enforces:

  • UUID tenant/operation identity and exact target shape by kind;

  • bounded 128 KiB state, 16 versions/events, five attempts, 32 attributes, 48 KiB encoded result ciphertext, and a 32 KiB decrypted result validated before encryption;

  • exact duplicated kind, status, version, target IDs, agent binding, nonce, lease, timestamps, and evidence head;

  • UTC microsecond-normalized timestamps;

  • globally unique command nonce;

  • exact compare-and-swap transitions and terminal immutability;

  • contiguous event sequences and deferred event-head validation;

  • replay tenant/request/operation consistency;

  • explicit managed-profile linkage to the device-authority aggregate; and

  • delete and arbitrary-update denial.

The SQL loader treats both the signed JSON and duplicated columns as hostile. It validates all duplicates before dispatch, caps the event read at 17 before allocating, rejects an aggregate version above 16, and dispatches only a verified signed QUEUED operation or a genuinely expired signed lease.

Evidence and privacy

Every transition appends an event with:

  • a monotonic sequence;

  • event type;

  • purpose-separated HMAC actor reference;

  • state digest;

  • prior evidence hash;

  • occurrence time; and

  • evidence hash.

Maker/checker compares actor references, not session references. Starting a new session cannot approve one’s own proposal. Administrative reasons, idempotency keys, actor IDs, receipt errors, and failure detail are stored as purpose-separated HMAC or SHA-256 references where their raw values are not needed for execution.

Administrator responses omit native trust, command material, and directory result ciphertext, nonce, names, or values. Only the authorized exact application/group result API decrypts specifically requested allowlisted values in memory, and ciphertext is automatically purged. Chrome outcomes never contain cookie, cache, URL, history, credential, or token content.

Threat decisions

Threat Fail-closed behavior

LDAP injection or graph extraction

Reject wildcards, filters, operators, executable syntax, member, and memberOf; send a typed allowlisted attribute array only.

Cross-tenant or path substitution

Resolve tenant from the verified principal and recheck exact application, group, user, operation, device, and profile IDs.

Whole-device or personal-profile wipe

No such command kind exists. Only explicit active managed profile projections can receive fixed cookie/cache scope.

Stale agent or replaced certificate

Revalidate active capability, version, heartbeat, secure-boot attestation, certificate, attestation hash, and device-key ID before lease and completion.

Replay

HMAC-bound idempotency, global nonce uniqueness, exact lease/nonce receipt, and terminal immutable state reject repeats.

Database-owner forgery

Shape triggers reject invalid rows; application HMAC and contiguous evidence verification reject valid-looking unsigned edits.

Oversized state or result

Application and SQL bounds reject before attacker-controlled allocation or dispatch.

Key rotation

Historical device evidence remains verifiable, but a command requires a fresh profile observation at the current device revision and key generation.

Validation disposition

Focused unit and race tests cover allowlist denial, signed lease and receipt, tamper and tenant denial, atomic profile fan-out, maker/checker separation, per-profile mixed outcomes, expiry/completion races, replay, key-rotation staleness, SQL duplicate-column forgery, and bounded loading.

A focused PostgreSQL Docker scenario and evidence-manifest runner are prepared. They are intentionally not claimed as passed until executed on a host with sufficient memory. Active Directory behavior and Chrome Enterprise native deletion still require platform-specific agent acceptance even after the Atlas-owned persistence scenario passes.

For requests and native DTOs, see Directory Group Queries And Managed Chrome Remediation.