Skip to main content
This reference complements the task-oriented guides with the details you need for production: the store backends in full, backup and recovery, signing store security, and how to handle secrets across environments. For the config file’s overall shape, see Configure the Wallet Gateway. For networks and authentication, see Networks & identity providers.

Full configuration schema

For the complete JSON Schema of the configuration file, including every field and type, run:
Use the output for validation and IDE autocompletion; the generated schema is the authoritative source for all configuration options.

Store backends

The store.connection object selects one of three backends.

PostgreSQL

Recommended for production for its robustness, concurrent access, and backup support. Provide exactly one of password or passwordEnv. For Helm, inject the variable with extraEnv and a Kubernetes secret; see Deploy.

PostgreSQL over TLS/SSL

If your PostgreSQL server requires TLS (common in managed databases and hardened deployments), add an ssl object under store.connection and, if used, signingStore.connection. The Wallet Gateway only configures client-side TLS; it never needs the server’s private key. Local testing (self-signed server cert, encryption only): set rejectUnauthorized: false.
Production (verify the server certificate): set rejectUnauthorized: true and provide the CA certificate PEM that signed the server certificate via ssl.ca.
For a local Docker-based Postgres-over-TLS walkthrough, see Deploy.

SQLite

Suitable for single-instance deployments and local development. Stores all data in one file.

Memory

Keeps all data in RAM. Useful for testing, not for production.

Backups and recovery

The store database holds user sessions, networks and IDPs (from the configuration file or added at runtime), wallet configurations and party mappings, and in-flight transactions. If the database is lost and cannot be restored:
  • All sessions are invalidated (users must log in again).
  • Networks and IDPs from the configuration file are restored on the next start, but networks and IDPs added at runtime are lost.
  • In-flight transactions are lost and may need manual intervention.
  • Wallets referencing lost networks may need reconfiguration.
Recommendations:
  • PostgreSQL: use pg_dump or an automated solution (pgBackRest, WAL-E).
  • SQLite: copy the database file regularly, with no writes during the copy.
  • Schedule automated daily backups with a retention policy, and test restores.
If the Wallet Gateway is used as the signing provider, the signing store holds private keys. If it is lost, those keys are unrecoverable. Do not use internal signing for any important system. See Signing providers.

Signing store security

The optional signingStore uses the same connection options as store and is only needed for the internal signing provider. When it holds keys:
  • Store the file in a secure location with restricted access.
  • Use strict filesystem permissions (for example chmod 600 for SQLite files).
  • For PostgreSQL, use separate credentials with minimal privileges.
  • Consider encrypting the database at rest.
  • Back it up regularly if it holds production keys.
  • Never commit signing store files to version control.

Secrets and environments

Maintain separate configuration files per environment (for example config.dev.json, config.staging.json, config.prod.json) to isolate settings and credentials. Never commit secrets. Override sensitive values with environment variables using the Env suffix on the field, for example clientSecretEnv or passwordEnv:
Then set the variable when running:
Additional guidance:
  • Network and IDP configurations (excluding secrets) are visible to users with ledger access.
  • Anyone with read access to a shared config repository can see non-secret configuration.
  • Use environment variables or a secret manager (HashiCorp Vault, AWS Secrets Manager) for sensitive values.
  • adminAuth credentials are sensitive: store them securely, rotate them regularly, and use them only where truly needed.

Disabling the token client ID check

The Wallet Gateway rejects access tokens whose azp (or client_id) claim doesn’t match the network’s auth.clientId. If your identity provider issues tokens with a different client ID and you can’t change that, you can skip this check by setting:
This weakens token validation: the Wallet Gateway then accepts tokens issued to any client of the same issuer and audience. Use it only as a temporary workaround when you can’t fix the identity provider configuration, and remove it as soon as possible. The issuer and audience checks still apply.

Suggested environment profiles