Engineering guide · Security
Authentication policy and attack protection
On this page
Passwordless and phishing-resistant enforcementLockout modelAuthenticator attack orderingStorage and evidenceVerificationThe authentication control plane is the single tenant authority for login-method admission and brute-force behavior. Login services consume only active, integrity-verified revisions. Invalid evidence, unavailable PostgreSQL, or an unavailable required dependency fails closed; a pending proposal has no runtime effect.
Passwordless and phishing-resistant enforcement
passwordMode=DISABLED rejects password login before credential acceptance. requirePhishingResistance=true admits only WebAuthn or CAC/PIV flows that Atlas can verify as phishing resistant. requireDeviceBound and requireUserVerification are part of the activated policy contract; they are not inferred from an administrator’s UI choice. Allowed methods and method chains are normalized and strictly validated, and an authentication policy cannot activate while a referenced SMS, voice, or email authority is disabled.
Atlas does not upgrade assurance because a factor record exists. A delivery factor reaches AAL2 only after a provider-acknowledged, server-bound, expiring, attempt-limited challenge is verified. WebAuthn/CAC remain the supported phishing-resistant paths; SMS, voice, email, and passwords are never labeled phishing resistant.
Lockout model
The active user-lockout document controls independent counters for a tenant/user tuple and a tenant/source tuple. Tenant identity is included in every limiter key, preventing one tenant from poisoning another tenant’s counters.
When preventBruteForceLockoutFromUnknownDevices=true, pre-authentication failures can still lock the attack source but cannot lock the victim username. Atlas conservatively treats pre-authentication traffic as unknown until authentication establishes trusted-device proof. This prevents distributed username lockout abuse without granting the source a bypass. Window, threshold, and duration values are bounded by policy validation.
The exact Okta compatibility resource is:
/attack-protection/api/v1/user-lockout-settings
and the exact compatibility field is preventBruteForceLockoutFromUnknownDevices. See the Okta Attack Protection API. Atlas additionally exposes and enforces the actual threshold, window, and duration values instead of leaving the storage and runtime contract implicit.
Authenticator attack ordering
The exact compatibility resource /attack-protection/api/v1/authenticator-settings accepts verifyKnowledgeSecondWhen2faRequired. When enabled, Atlas rejects password-first multi-factor login because the present flow cannot prove the requested knowledge-second order. This is intentionally fail-closed, never simulated success. Atlas extensions also govern knowledge-first rejection, challenge device binding, and single-use challenges.
Storage and evidence
Authentication revisions, lifecycle events, factor enrollments, and challenges are tenant-scoped PostgreSQL records. Control changes use serializable transactions, optimistic concurrency, actor-bound idempotency, different-operator activation, and append-only HMAC-chained evidence. OTP plaintext exists only in the transient delivery request. Recipient ciphertext uses AES-GCM with resource-bound associated data; logs and public models contain only keyed references.
Progressive-registration codes follow the same no-plaintext rule. Registration ciphertext binds tenant and transaction ID as AES-GCM associated data. A reserved user UUID binds evidence before materialization. PostgreSQL rejects terminal state unless that tenant user and every immutable policy auto-group membership exist in the same transaction.
Anonymous bootstrap tokens are 256-bit random capabilities stored only as keyed references. They are tenant-, client-, policy-generation-, and expiry-bound, and their only authority is creating and verifying one registration transaction. Existing-user progressive updates require an authenticated self-profile capability and atomically bind the authoritative directory mutation to immutable prompt evidence.
Migration 081_authentication_control_plane.sql installs constraints, one-active-revision indexes, replay tables, and append-only evidence triggers. Production requires ATLAS_AUTHENTICATION_CONTROL_KEY_B64 with at least 256 bits and must not use the ephemeral development key.
Verification
Focused unit tests cover strict policy validation, maker-checker enforcement, CAS and replay behavior, recipient non-disclosure, real-delivery gating, anti-toll-fraud policy, expiration, attempts, login binding, and single use. Run:
Internal implementation checks are omitted from this public guide.
Run PostgreSQL/Docker validation serially on constrained workstations. Do not run competing compose suites merely to obtain a green status: the parity ledger must retain an explicit Docker-evidence residual until migration, restart, isolation, and tamper tests complete.
The serialized suite passed on 2026-07-26. Its checksum manifest is artifacts/authentication-control-docker-validation/20260726T214309Z/manifest.sha256. The result proves the PostgreSQL migration, maker-checker and CAS lifecycle, restart recovery, append-only events, and immutable policy documents in that environment. It does not prove the remaining full device-bound ceremony matrix or a multi-node/distributed lockout limiter.
Anonymous bootstrap, verified registration, transactional policy auto-groups, and progressive-profile atomicity passed the independent tmpfs PostgreSQL proof recorded at artifacts/registration-docker-validation/20260726T224411Z/manifest.sha256. That evidence includes a transactionally enforced five-capability tenant/client window, bound capability consumption, an immutable bootstrap-to-registration link, concurrent code consumption, restart recovery, durable privacy inspection, atomic user/group invariants, forced profile/event rollback, and direct tamper rejection.