Engineering guide · ICAM
Service Account Governance
Atlas stores service-account inventory inside the authenticated tenant boundary.
Manual creation and connector discovery accept only vault://, kms://, or pkcs11:// credential references.
They reject inline client secrets, passwords, tokens, and multi-line references.
Discovery Reconciliation
POST /api/v1/oauth2/service-accounts/discoveries accepts a bounded connector snapshot containing:
-
a normalized source system and connector identifier;
-
a connector-unique snapshot identifier;
-
an observation timestamp;
-
whether the input is a complete authoritative snapshot;
-
one to 1000 external account observations.
The tuple of tenant, source, connector, and snapshot identifier is idempotent. An exact retry returns the committed result. Reusing the snapshot identifier with a different canonical payload fails with a conflict.
Each discovered account has a stable identity derived from the source, connector, and external account identifier.
An active account without an owner enters review-required.
An inactive observation is stored as disabled but is not deleted.
When a complete snapshot omits a previously observed account, Atlas marks it stale and review-required; it does not automatically disable the source account.
Ownership Review
GET /api/v1/oauth2/service-accounts/ownership-reviews returns orphan and stale records.
POST /api/v1/oauth2/service-accounts/{serviceAccountId}/ownership assigns a verified owner.
The mutation requires:
-
a fresh AAL2 operator session;
-
an owner identifier and review reason;
-
the account’s current evidence hash as an optimistic concurrency token.
A successful ownership decision returns the account to pending approval. It does not approve credentials or issue a token. A stale evidence hash fails closed with a conflict.
Tenant And Evidence Boundaries
API-access records use a tenant-derived storage namespace, including clients, service accounts, token grants, discovery runs, and audit events. The default tenant retains the legacy namespace for compatible upgrades. Responses state their tenant identifier, and cross-tenant list and mutation requests cannot resolve another tenant’s records.
Discovery and ownership transitions append evidence references and safe audit details. Credential bytes are never part of the request model, response model, audit details, or discovery evidence.
Docker Proof
The bounded ICAM Docker gate runs the service-account integration test against PostgreSQL. It reconciles an orphan account, reconstructs the store, recovers the ownership review, verifies a second tenant sees no records, and inspects the durable JSON to confirm reference-only credential storage.