Engineering guide · Security
Custom Authenticator Push Security Boundary
On this page
Trust DecompositionInvariantsExternal Protocol IsolationPrivacy ModelOperational Failure SemanticsAtlas separates push notification from push authentication.
The APNs/FCM authority can wake an enrolled custom authenticator after a challenge is committed. It cannot read the number-match answer, choose an answer, sign for a device, transition a challenge, create a session, or mint a token. The authentication authority remains the Atlas Authenticator device-key protocol and serializable challenge store.
Trust Decomposition
| Authority | May do | May not do |
|---|---|---|
Provider control plane |
Configure redacted APNs/FCM metadata, bind Vault references, record probes, and independently activate an exact generation. |
Receive or persist raw provider credentials or device tokens; activate at creation; silently carry bindings across rotation. |
Notification adapter |
Resolve one credential and target reference, perform a bounded operation to a compiled provider host, and return a classified outcome. |
Select an arbitrary endpoint or OAuth scope; follow redirects; mutate a challenge; retain secrets or targets. |
Challenge service |
Commit a pending challenge, expose signed polling data, verify enrolled-device signatures and number matching, and atomically resolve and consume it. |
Treat notification acceptance, provider response, or possession of the opaque challenge ID as approval. |
Mobile authenticator |
Poll its owned pending challenges and sign a decision over the server nonce. |
Approve without the enrolled private key and correct human number match. |
Invariants
The implementation preserves these invariants:
-
Challenge persistence precedes notification dispatch.
-
Notification work is asynchronous, bounded, and discardable.
-
Polling is always available and is the only notification correctness fallback.
-
APNs/FCM failure never approves, denies, expires, or consumes a challenge.
-
An approval signature binds challenge ID, device ID, selected number, approve/deny decision, and server nonce.
-
The challenge store permits only one pending-to-terminal transition and only one approved-to-consumed transition.
-
A provider can be active only after exact-version, exact-generation, recently successful proof by a different actor and fresh phishing-resistant AAL3 approval by a third actor.
-
A binding is valid only for an active exact provider generation.
-
Rotation cannot inherit a target population implicitly.
-
Provider and binding tombstones preserve evidence and cannot be physically deleted through the application contract.
External Protocol Isolation
Atlas’s internal signing and evidence policy remains P-384/ES384 where those protocols are under Atlas control.
APNs mandates P-256/ES256 provider tokens. The APNs adapter accepts only a P-256 private key and uses it only to construct the short-lived Apple provider JWT.
FCM service-account OAuth mandates RS256. The FCM adapter accepts an RSA key of at least 2048 bits only at that boundary. Its JWT scope is compiled to the Firebase Messaging scope, audience is the fixed Google token endpoint, and lifetime is five minutes. Neither exception registers a weaker internal Atlas signer or changes evidence algorithms.
Privacy Model
Durable control-plane state includes external-secret references because they are retrieval coordinates, not credential values. Public state replaces those coordinates with tenant-keyed HMACs.
Raw values absent from PostgreSQL evidence and API responses include:
-
APNs
.p8key material and provider JWTs; -
FCM private keys, OAuth assertions, and access tokens;
-
raw mobile device tokens;
-
raw challenge IDs in delivery history;
-
wake-up payload bodies; and
-
provider response bodies.
The Vault resolver rejects user information, queries, fragments, traversal,
control characters, and non-vault schemes. Secret values are copied only
into the short-lived adapter operation.
Operational Failure Semantics
An external provider is an availability dependency for immediate wake-up, not for authentication correctness. During an outage:
-
already committed challenges remain pending until their normal TTL;
-
a device that polls can retrieve and approve them normally;
-
sign-in status continues to observe the authoritative challenge state;
-
a failed adapter attempt produces signed failure evidence when persistence remains available; and
-
operators can deactivate the provider without invalidating challenges or device enrollments.
If the provider control-plane state or HMAC cannot be verified, managed notification fails closed. Atlas does not fall back to a deployment-global APNs/FCM credential or copy a device token into another store.
See APNs And FCM Push Provider Administration for request contracts, examples, lifecycle, and validation commands.