User and operator guide · Developer

Lifecycle And SCIM Development

Status: currentReviewed: 2026-05-22Audience: developers, API engineers, test engineers, security engineers
On this pagePackages And FilesAPI ContractSecurity RulesAdding A Job TypeTest CommandsRelated Pages

Lifecycle/SCIM is implemented as a Go domain package plus gateway facade. A separate lifecycle microservice process is not required for this phase, but the code is organized around service ownership, durable state, clear APIs, and validation evidence.

Packages And Files

Path Role

Atlas service

Domain types for SCIM connections, lifecycle jobs, attempts, dead letters, reconciliation, and evidence references.

Atlas service

Memory and SQL store boundaries. SQL uses Postgres and the Lifecycle/SCIM migration schema.

Atlas service

Outbound SCIM 2.0 client behavior and error mapping.

Atlas service

Deterministic local-live SCIM target fixture.

Atlas service

Lifecycle state transitions, retries, dead letters, import safeguards, and reconciliation.

API gateway

Gateway routes, operator gates, audit events, local-live fixture registration, and runtime wiring.

API gateway

Application activation gate for SCIM provisioning readiness.

Atlas interface

Frontend models for SCIM connections, jobs, attempts, dead letters, and reconciliation.

API Contract

Method Path Purpose

GET

/api/v1/scim/connections

List redacted SCIM connections.

POST

/api/v1/scim/connections

Create a draft connection with a reference-only secret.

GET

/api/v1/scim/connections/{id}

Get one redacted connection.

PUT

/api/v1/scim/connections/{id}

Update connection metadata and reset readiness.

POST

/api/v1/scim/connections/{id}/validate

Run readiness validation.

POST

/api/v1/scim/connections/{id}/enable

Validate and enable a connection.

POST

/api/v1/scim/connections/{id}/disable

Disable a connection.

GET

/api/v1/lifecycle/jobs

List lifecycle jobs.

POST

/api/v1/lifecycle/jobs

Create and run a lifecycle job.

GET

/api/v1/lifecycle/jobs/{id}

Get job, attempts, and dead-letter state.

POST

/api/v1/lifecycle/jobs/{id}/retry

Retry eligible jobs.

POST

/api/v1/lifecycle/jobs/{id}/dead-letter/resolve

Resolve an open dead letter.

GET

/api/v1/lifecycle/reconciliation

List reconciliation runs.

POST

/api/v1/lifecycle/reconciliation

Run reconciliation against a target.

Security Rules

Rule Implementation expectation

No raw secrets

tokenSecretRef must use an approved reference URI. Responses never return token material.

Fresh operator session

Mutations use the gateway operator scope and fresh AAL2 gate.

Fail closed

Disabled connections, failed readiness, unsupported job types, and missing connection IDs reject writes.

Durable evidence

Jobs, attempts, dead letters, and reconciliation records carry evidence hashes.

Provisioning is not authorization

Lifecycle output informs state and evidence. Access decisions still flow through policy and session controls.

Adding A Job Type

  1. Add the job type constant and supportedJobTypes entry.

  2. Add request/response serialization if the job needs new structured input.

  3. Implement the operation in executeJobOperation.

  4. Persist attempts and evidence through existing store methods.

  5. Add unit tests for success, failure, retry, and evidence hash behavior.

  6. Add local-live validation if the job will be documented as validated.

  7. Update RMF artifact requirements only after the local-live evidence exists.

Test Commands

Internal implementation checks are omitted from this public guide.

The integration command compiles locally without a live gateway and skips when live environment variables are absent. It becomes authoritative only inside ./scripts/run-local-live-validation.sh, where the gateway and SCIM fixture are running and evidence paths are configured.