Engineering guide · ICAM

Privileged Gateway And Local Accounts

Status: currentReviewed: 2026-07-27Audience: privileged-access developers, security engineers, auditors
On this pageStart A RecordingOn-Demand Local AccountsCompletion Boundary

Existing PAM request, approval, checkout, revocation, break-glass, rotation, and action APIs remain under /api/v1/pam/. The edge control plane adds protocol-gateway and local-account APIs without bypassing those approvals.

Vault-backed application and platform account CRUD, ownership, maker/checker activation, target-convergent rotation, reconciliation, and retirement are implemented at /api/v1/pam/managed-accounts. See Vault-Backed Managed Application And Platform Accounts for the complete REST and connector contract.

Atlas also owns a tenant/team to resource-group to project hierarchy and a bounded security-policy authority with authoritative directory-subject and exact resource-generation binding. See Privileged-Access Resource Hierarchy And Security Policies for Okta-friendly paths, maker-checker lifecycle, deny-by-default evaluation, and the external native-enforcement boundary. Its real tmpfs PostgreSQL proof is checksummed at artifacts/pam-resource-authority-validation/20260727T021750Z/manifest.sha256.

Start A Recording

An AAL3 actor with icam.pam.gateway.manage calls:

POST /api/v1/icam/pam-recordings

The request binds an active PAM session to the same tenant, requesting user, exact target resource, and unexpired authorization. Atlas takes the credential reference from that session; callers cannot substitute it. Recording creation and the encrypted pam.gateway-start command commit in one database transaction.

The portable Linux agent implements a bounded non-interactive SSH command gateway. It pins the SSH host key, disables PTY and agent forwarding, resolves credentials from Vault at execution time, and fails the command if any frame cannot enter the server-owned recording chain. RDP remains in the server protocol contract for a separately accepted native Windows executor and is not represented as validated. The certificate-bound gateway appends recording frames at:

POST /api/v1/agent/{tenantId}/{agentId}/recordings/{recordingId}/chunks/{sequence}
Content-Type: application/octet-stream

Frames are limited to 4 MiB. Atlas hashes their plaintext content, binds recording ID, sequence, content digest, and prior hash, then encrypts the frame with Vault Transit. Only encrypted frames and non-sensitive chain metadata reach PostgreSQL. Sequence replacement, gaps, updates, and deletes are rejected.

The agent closes the chain with /recordings/{recordingId}/end. Auditors read metadata and the complete chain at GET /api/v1/icam/pam-recordings/{recordingId}. Recording bytes are never returned from that endpoint.

On-Demand Local Accounts

An AAL3 phishing-resistant actor calls POST /api/v1/icam/local-accounts with an active tenant/user/resource-bound PAM session, agent, target, portable-safe username, idempotency key, and TTL from one minute through eight hours. The TTL cannot exceed the PAM session. Atlas queues an encrypted pam.local-account-create command. The Linux executor generates 288 bits of credential entropy, places the password in create-only Vault KV custody, and invokes absolute useradd and chpasswd binaries without a shell. It never adopts a pre-existing username.

A root-only ownership marker binds account ID, target, username, PAM session digest, credential-reference digest, and expiry. A non-exportable Vault Transit key seals the marker; a syntactically valid filesystem rewrite fails before retry or revocation can touch a native user.

Command completion transactionally moves the server record from provisioning to active. It requires the exact deterministic Vault reference and native evidence digest. Revocation is explicit or TTL-driven:

POST /api/v1/icam/local-accounts/{accountId}/revoke
POST /api/v1/icam/local-accounts/reconcile-expired
GET  /api/v1/icam/local-accounts/{accountId}/events

Native deletion happens before Vault retirement. The sealed revoked marker is retained so retries cannot delete an unrelated re-created username. PostgreSQL projects create and revoke completion in the same serializable transaction as the terminal agent command and appends a versioned lifecycle event.

The combined PostgreSQL, Vault, OpenSSH, and native Linux Docker proof passed with checksummed evidence at artifacts/pam-executable-validation/20260727T002327Z/manifest.sha256. It includes host-key mismatch and recording-outage negative paths, forged ownership-marker rejection, direct SQL tamper denial, Vault CAS retirement, and restart recovery.

Completion Boundary

See PAM Executable Gateway And Native Local-Account APIs for request schemas, transitions, failure modes, and operator configuration.

The parity rows remain partial: the portable boundary implements SSH command execution and Linux accounts, but interactive SSH proxying, RDP, Windows local accounts, signed release artifacts, and their external platform acceptance remain open.