Skip to content
Registry StackDocsv0.49.0

Registry Adapter security model

View as Markdown

Before admitting a machine client to your Registry Adapter facade, check which records and operations it can reach through the source connection you configure.

The facade checks the OIDC bearer token against the issuer’s configured audience and oidc.issuers.<id>.allowedClients list. For data operations, a project access profile checks the token’s scopes for the requested operation and record type. An admitted client can reach every record the configured source access exposes through that operation. The facade has no per-record authorisation or personal delegation. Review each client’s access against the full source reach before adding it to the allowlist. Use a narrower source credential or a restricted source view when the client needs fewer records.

The facade, standalone payments, and job hook listeners expose unauthenticated GET and HEAD probes on /health and /ready. See Probe health and readiness for the checks each listener performs.

The caller’s token stays at the facade. Each upstream call uses the endpoint’s configured authentication. An endpoint with no application credential requires numeric loopback, HTTPS with an mTLS client identity, or a fixed HTTPS source you explicitly acknowledge with anonymousHttps: operator-approved. Use that acknowledgement only after reviewing what the source exposes without a credential. The facade still checks the caller and verifies the upstream TLS certificate.

The facade’s PostgreSQL journal records exchanges with caller and operation metadata and excludes request and response bodies. A required journal write that fails blocks normal response release. Monitor journal failures and keep journal access restricted to the identities that operate it.

Review the separate PostgreSQL stores for retained payloads. The idempotency store holds exact write responses for the configured retention window. The optional payment store holds bounded payment facts for recovery.

The facade’s private metricsListener exposes adapter_request_refusals_total for recorded facade and co-hosted payment refusals. A payment-only deployment emits the rate-limited refusal log and serves no metrics listener.

The job host serves metrics with metricsListener configured while adapter-job pass --loop runs. A build with the job-hook feature exposes adapter_job_request_refusals_total on that listener. Configured hook ingress increments it for credential and rate-limit refusals. The separate adapter_job_hook_refusals_total also counts hook refusals such as an oversized body.