Engineering guide · ICAM

Progressive Enrollment UI Schemas

Status: implemented; unit, gateway, OpenAPI, and PostgreSQL Docker validation passReviewed: 2026-07-25Audience: identity application developers, enrollment UI engineers, Universal Directory administrators, security reviewers
On this pageResource lifecycleAPI mapCreate a schemaPublish independentlyResolve and validateDocument rulesConcurrency and failure behaviorPersistence and evidenceVerification

Atlas provides the familiar UI-schema resource family used by progressive-profile integrations and extends it with a governed publication boundary. The external compatibility baseline is the five-operation GET, POST, GET by ID, PUT, and DELETE family documented by the Okta UI Schemas API. Atlas keeps those paths and the Group, Control, JSON pointer, label, button label, and control-format concepts.

An Atlas UI schema is presentation policy, not executable UI code and not a second identity schema. Every control binds to an attribute in one exact, integrity-verified Universal Directory user-type revision. The published document can control order, labels, progressive steps, safe browser hints, and localization. The authoritative profile continues to control field existence, type, allowed values, required status, sensitivity, mastering, precedence, and durable user storage.

Resource lifecycle

State Operation Security invariant

DRAFT

POST /api/v1/meta/uischemas

A fresh AAL2 author creates a non-operative document. Atlas validates every control against the selected user type and stores the exact profile revision.

DRAFT

PUT /api/v1/meta/uischemas/{uiSchemaId}

A fresh AAL2 author replaces the full draft using If-Match. A live publication, if present, remains unchanged.

PUBLISHED

POST /api/v1/meta/uischemas/{uiSchemaId}/publish

A different phishing-resistant AAL3 reviewer re-resolves the profile, rejects revision drift, revalidates the document, and signs a canonical snapshot with ECDSA P-384.

PUBLISHED with pending draft

PUT /api/v1/meta/uischemas/{uiSchemaId}

The aggregate reports hasUnpublishedChanges: true; /published still returns the earlier signed snapshot.

RETIRED

DELETE /api/v1/meta/uischemas/{uiSchemaId} or POST …​/retire

A different phishing-resistant AAL3 actor records a soft retirement. Current state, revisions, replays, and evidence cannot be deleted.

Only one schema for a tenant and user type can be PUBLISHED. The database enforces this with a partial unique index under a tenant-level serializable lock. This makes enrollment resolution deterministic across gateway replicas.

API map

Method Path Minimum assurance Capability

GET

/api/v1/meta/uischemas

Fresh AAL2

ui.schemas.read

POST

/api/v1/meta/uischemas

Fresh AAL2

ui.schemas.manage

GET

/api/v1/meta/uischemas/{uiSchemaId}

Fresh AAL2

ui.schemas.read

PUT

/api/v1/meta/uischemas/{uiSchemaId}

Fresh AAL2

ui.schemas.manage

DELETE

/api/v1/meta/uischemas/{uiSchemaId}

Phishing-resistant AAL3

ui.schemas.publish

POST

/api/v1/meta/uischemas/{uiSchemaId}/publish

Phishing-resistant AAL3

ui.schemas.publish

POST

/api/v1/meta/uischemas/{uiSchemaId}/retire

Phishing-resistant AAL3

ui.schemas.publish

GET

/api/v1/meta/uischemas/{uiSchemaId}/published

AAL1

ui.schemas.resolve

POST

/api/v1/meta/uischemas/{uiSchemaId}/validate

AAL1

ui.schemas.resolve

GET

/api/v1/meta/uischema-events?schemaId=…​

Fresh AAL2

ui.schemas.read

Swagger UI exposes the complete request and response shapes at /docs/. The machine-readable contract is /openapi.json. Mutations use Idempotency-Key; administrative reasons may be supplied through X-Atlas-Reason. Replacement, publication, and retirement use the strong numeric ETag returned by Atlas as If-Match.

Create a schema

curl -X POST "$ATLAS/api/v1/meta/uischemas" \
  -H "Authorization: Bearer $AUTHOR_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: enrollment-ui-create-2026-001" \
  -H "X-Atlas-Reason: create the workforce progressive profile form" \
  -d '{
    "name": "workforceEnrollment",
    "userTypeId": "00000000-0000-0000-0000-000000000101",
    "uiSchema": {
      "type": "Group",
      "label": "Complete your profile",
      "buttonLabel": "Continue",
      "defaultLocale": "en",
      "elements": [
        {
          "type": "Control",
          "scope": "#/properties/username",
          "label": "Username",
          "options": {
            "format": "text",
            "autocomplete": "username"
          }
        },
        {
          "type": "Control",
          "scope": "#/properties/email",
          "label": "Email",
          "options": {
            "format": "text",
            "autocomplete": "email",
            "inputMode": "email"
          }
        }
      ],
      "steps": [
        {
          "id": "identity",
          "label": "Identity",
          "scopes": ["#/properties/username"]
        },
        {
          "id": "contact",
          "label": "Contact",
          "scopes": ["#/properties/email"]
        }
      ],
      "localizations": {
        "fr-FR": {
          "label": "Complétez votre profil",
          "buttonLabel": "Continuer",
          "elementLabels": {
            "#/properties/username": "Identifiant",
            "#/properties/email": "Courriel"
          }
        }
      }
    }
  }'

The response is DRAFT, version: 1, and draftRevision: 1. Creating a resource never changes an active enrollment experience.

Publish independently

curl -X POST "$ATLAS/api/v1/meta/uischemas/$SCHEMA_ID/publish" \
  -H "Authorization: Bearer $INDEPENDENT_REVIEWER_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: enrollment-ui-publish-2026-001" \
  -H 'If-Match: "1"' \
  -H "X-Atlas-Reason: independently approve the reviewed enrollment form" \
  -d '{}'

The reviewing principal must differ from the last draft author. The signed published object binds:

  • tenant and schema identifiers;

  • draft revision;

  • authoritative user-type revision;

  • canonical UI document and its SHA-256 digest;

  • signer identifier, publisher, and publication time.

The signature value is ecdsa-p384:<key-id>:<base64url-signature>. Atlas verifies it on every management read and runtime resolution. Production uses the stable Atlas policy-signing P-384 key pair; development may use an ephemeral key.

Resolve and validate

Render only the runtime document from:

curl "$ATLAS/api/v1/meta/uischemas/$SCHEMA_ID/published" \
  -H "Authorization: Bearer $ENROLLMENT_TOKEN"

Do not render the draft from the management aggregate. The /published path verifies the aggregate evidence chain and publication signature before returning a document.

Before writing a profile, send collected values to:

curl -X POST "$ATLAS/api/v1/meta/uischemas/$SCHEMA_ID/validate" \
  -H "Authorization: Bearer $ENROLLMENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "values": {
      "username": "atlas.operator",
      "email": "operator@example.mil"
    }
  }'

A valid response includes normalized values and the publication signature used for validation. An invalid response returns stable field errors:

  • required;

  • unknown_or_uncollected;

  • type_or_constraint.

The validation API does not persist profile values. The caller must submit the validated values to the authoritative identity mutation API, which repeats its own schema, mastering, and authorization checks.

Document rules

Atlas accepts at most 64 controls, eight progressive steps, and 16 localizations. If steps are supplied, they must partition every control exactly once. Each scope has the exact form #/properties/<attribute>. Duplicate scopes, unknown attributes, omitted required profile fields, multi-valued attributes, JSON attributes, and unsafe type-format combinations are rejected.

Supported presentation formats are:

Profile type Allowed format

Boolean

checkbox, radio_yes_no, radio_true_false

Enum with authoritative allowed values

select, radio

String, email, number, datetime, or reference

text; countryCode may use select

JSON or multi-valued

Not accepted by this bounded enrollment-control version

Labels and help text must be bounded plain UTF-8 text. Atlas rejects HTML delimiters, control characters, javascript: values, and common interpolation forms. Browser autocomplete and inputMode are constrained to allowlists.

Credential-like names are denied even if a malformed profile attempts to define one. Any attribute classified as secret by the Universal Directory sensitivity or secret-field policy is also denied. Passwords, one-time codes, tokens, private keys, recovery codes, and credential material belong to their native authentication ceremonies, never a profile presentation schema.

Concurrency and failure behavior

Every current aggregate has a monotonic version; every draft has a monotonic draftRevision. Stale If-Match values return 409. An exact idempotent replay returns the original response with Idempotency-Replayed: true. Reusing a key with another actor or request returns 409.

Publication returns 409 if the selected Universal Directory user type changed after draft validation. The author must replace the draft against the new profile revision before another reviewer can publish it. Signature, evidence, or storage verification failures return 503 and the runtime fails closed. Unknown tenant resources return 404 without cross-tenant disclosure.

Persistence and evidence

Embedded migration 057_create_ui_schemas.sql creates:

  • identity_ui_schemas for the current tenant-qualified aggregate;

  • identity_ui_schema_revisions for every immutable committed version;

  • identity_ui_schema_events for the HMAC hash chain;

  • identity_ui_schema_replays for cross-replica exact replay.

Writes use PostgreSQL SERIALIZABLE transactions and a tenant advisory lock. The current row, immutable revision, transition event, and replay response commit atomically. Database triggers prevent current-resource deletion, illegal version or state transitions, event changes, revision changes, and replay changes. Administrative reason plaintext and raw idempotency keys are not stored; domain-separated tenant-bound HMAC references are persisted instead.

Production startup requires:

  • the PostgreSQL identity backend;

  • the stable Atlas ECDSA P-384 policy-signing key pair;

  • ATLAS_UI_SCHEMA_INTEGRITY_KEY_B64 with at least 256 bits.

Verification

Run the focused in-memory and gateway tests:

Internal implementation checks are omitted from this public guide.

Run the bounded real-PostgreSQL gate when Docker capacity is available:

make ui-schema-docker-validation

The Docker test applies the real embedded migrations, creates an authoritative default user type, commits and signs a publication, edits an isolated next draft, reconstructs both directory and UI-schema services, verifies restart recovery, proves tenant isolation, rejects a second active publication for the same user type, and confirms PostgreSQL blocks event and revision tampering. The script checks available memory first, uses a unique Compose project, hashes its logs, and removes only its own container and volume. The latest focused run completed at artifacts/ui-schema-docker-validation/20260726T040710Z.