Going to Production
The quickstart configuration is built for a laptop. Everything in it that is convenient for local work is wrong for a deployment facing real users. This page is the list of what has to change.
Settings
Each tenant's settings are given when you create it on the production database: the signing certificate, the display name, the callback and, on the verifier, the trust anchors. The service keeps them in the database. See Settings.
Certificates
Replace the self-signed pair. A self-signed certificate is trusted only by parties you configure by hand: a wallet you do not operate will refuse a verifier request signed with one, and credentials you sign will not validate against another organization's trust anchors. You need certificates issued under a root the parties you deal with already recognize. See Signing certificates.
Know your expiry dates and rotate ahead of them — neither service warns you; see
Rotation. Rotating the verifier's certificate changes its client_id, since
the identifier is a hash of the certificate; see Trust model.
Configure the verifier's trust anchors, and keep the set small. They decide which issuers the verifier accepts: a credential whose certificate chain does not lead to one of them is rejected. Each trust anchor is a standing decision to accept every credential issued under it. See Issuer trust anchors.
Secrets
server.json contains the database password, the admin keys and any
metrics scrape tokens; treat it as a secret. The request that creates a tenant carries its signing key
and the callback's bearer token, and the database holds both from then on, so its backups need the same care.
- Do not commit
server.json. Render it at deploy time from your secret store, or mount it from one. - Do not reuse the examples. Every key, password and token printed in this documentation is a placeholder and
should be assumed public. That includes
admin-api-key,metrics-tokenandpostgres/postgres. - An admin key hands out API keys, so keep the admin keys to the people who manage the deployment. The admin
endpoints are served on the same port as the rest of the API, so keep
/adminoff the public address at the proxy that terminates TLS, and create the tenant from inside your network. - Add one API key per calling application through the admin endpoints, and store each where only its application reads it. See API keys.
- Keep the signing key file readable only by the people who create the tenant, and off shared volumes. The service keeps its own copy in the database.
Image versions
The examples in this documentation pull latest:
image: registry.gitlab.com/secata/platform/did/release/verifier-backend:latest
image: registry.gitlab.com/secata/platform/did/release/issuer-backend:latest
- Know which version you are running, and record it.
latestmoves, so two hosts pulling it a week apart can be running different code. Capture the version each host actually resolved —docker image inspect— as part of your deploy, so a bug report can name it. - Move the two together. The issuer and verifier are released independently but tested as pairs, so pull both in the same window rather than letting one drift ahead of the other.
- Upgrades run database migrations. Back up the database first, upgrade one service at a time, and confirm it starts cleanly before moving the other. See Database.
Database
- Use real credentials, not
postgres/postgres. - Give the issuer and the verifier separate databases. Sharing one makes their migrations collide.
- Back it up. It holds your credential configurations and verification queries as well as in-flight sessions; losing it means recreating both by hand.
- Do not publish the database port. The quickstart maps 5433 to the host for convenience; only the two backends need to reach it.
See Database.
Network exposure
baseUrl is what each service advertises to wallets, and it has to be an address a wallet on a mobile network can
actually resolve — not localhost, and not a private address. Getting this wrong produces flows that start
correctly and then fail silently when the wallet tries to follow up.
Both services must be reachable by wallets over HTTPS. Terminate TLS in front of them and make baseUrl the
public HTTPS address, matching what the certificate covers.
The endpoints your application calls — listed in API keys — should not be reachable from the
public internet at all, and neither should the admin endpoints or /metrics. Only the wallet-facing endpoints need to be.
Callbacks
Create both tenants with a session_callback so results are pushed to your application, rather than polling
session status. Give the callback endpoint its own bearer token and verify it on every request: it is an
unauthenticated inbound path into your application otherwise.
See Receive the issued credential and Receive verified data.
What's Next
- Health endpoints: Wiring liveness and readiness probes.
- Metrics: Counting sessions and how they end.
- Troubleshooting: What to check when a service will not start or a call fails.
- Trust model: Why the certificate chain decides whether a credential is believed.