Protocol and deployment notes · Deployment

Governed REST datastores

Atlas REST datastores expose external JSON data through named, pre-approved operations. They are not an arbitrary HTTP proxy. An operator fixes the HTTPS endpoints, node tags, TLS 1.3 SPKI pins, OAuth audience, Vault references, method, path/query/body templates, declared parameters, response limits, retry statuses, and JSON Pointer mappings before a different phishing-resistant AAL3 operator activates the exact version.

The standard API is /api/v1/identity/rest-datastores. It supports create, read, replace, activate, deactivate, and execution at:

POST /api/v1/identity/rest-datastores/{id}/operations/{operationId}/execute

The standard operator workflow is at Identity → Sources → Governed REST sources. It keeps the security contract visible without exposing transport internals: operators see redacted custody status, the exact admitted operation inventory, version and evidence head, and lifecycle state. A guided form creates only PENDING_ACTIVATION definitions; it checks required HTTPS, Vault-reference, SPKI-pin, path, timeout, and response-bound fields before submitting them for the server's authoritative validation. A separate activation confirmation explains the maker/checker and fresh phishing-resistant AAL3 boundary. The Run dialog accepts only declared parameter values and reports the upstream status and hash-bound execution evidence. It cannot edit the admitted host, method, path shape, audience, or response limit at execution time.

The caller supplies only a parameters object. Atlas rejects undeclared or missing parameters. It derives the URL and HTTP method from the active definition, substitutes values as escaped path/query or JSON/form data, obtains an OAuth bearer token with a fresh RFC 7523-style private_key_jwt client assertion, and sends the configured GET, POST, PUT, PATCH, or DELETE.

Private RSA keys and optional CA bundles use exact vault://path#field references. References are write-only in the API; private material and bearer tokens are never stored. Both the token endpoint and resource endpoint require TLS 1.3, normal certificate/hostname validation, an exact leaf-SPKI SHA-256 pin, no redirects, bounded timeouts, and bounded response bodies. Production DNS resolution rejects private, loopback, link-local, multicast, and otherwise special addresses; private deployments should use a controlled egress proxy or resolver that preserves the same exact-host and SPKI boundary.

Mutating operations require Idempotency-Key. Atlas durably reserves the tenant, datastore version, operation, actor, and request digest before the network effect. A retry returns the prior receipt and does not make a second upstream call. Configuration and execution receipts contain hashes and status, not response values. Sensitive response mappings affect returned data only; they never enter the evidence record.

Example operation:

{
  "id": "update-user",
  "name": "Update mission directory user",
  "method": "PATCH",
  "pathTemplate": "/v1/users/${subject}",
  "parameters": ["subject", "department"],
  "body": {"department": "${department}"},
  "contentType": "application/json",
  "responseMappings": [
    {"attribute": "status", "pointer": "/status"},
    {"attribute": "revision", "pointer": "/meta/revision"}
  ],
  "retryStatusCodes": [429, 503],
  "maximumRetries": 1
}

Replacing any definition returns it to PENDING_ACTIVATION. Atlas rejects plaintext key material, non-Vault references, symmetric JWT algorithms, non-HTTPS or IP-literal endpoints, literal, encoded, or parameter-derived path traversal, arbitrary methods, unknown template parameters, unbounded payloads, unsafe retry profiles, stale ETags, same-operator activation, and HMAC/evidence drift after restart.

The retained Docker validation is produced by scripts/test/run-rest-datastore-docker-validation.sh. Its boundary is a live PostgreSQL and Vault deployment plus an independent TLS OAuth/resource fixture; it is not a named PingFederate, Okta, or Microsoft interoperability claim.