Skip to content

On-premises deployment

Connect your API clients and optional on-premises Customer Dashboard to a local PII and evidence store.

CryptoSwift Outpost stores Travel Rule personal data and wallet evidence on your infrastructure. It runs as a Node.js service in a Docker container dedicated to one tenant. Your integration uses the same CryptoSwift endpoints, request bodies and credentials, with your Outpost HTTPS address as the API base URL. The cloud API authenticates the caller and processes the transaction. See On-premises PII storage for the compliance view.

On-premises storage for Enterprise customers

Outpost is an optional extension to the CryptoSwift API for organizations whose policies require on-premises storage of personally identifiable information (PII). It is available as part of our Enterprise offering. If you're considering Outpost, contact CryptoSwift to discuss your storage requirements and deployment options.

1. Provision the environment

  • Activate the tenant. Contact CryptoSwift Support for the deployment package, tenant ID for your environment. Register your Outpost HTTPS URL and provision a shared secret with CryptoSwift for signed callbacks. API clients and the Dashboard continue to use their ordinary credentials.
  • Prepare storage. Provide Docker with Compose v2, an empty dedicated PostgreSQL database and a database role that can apply the supplied schema migrations. The container must be able to reach PostgreSQL. Mount a persistent, private volume at /data/storage for evidence files.
  • Configure networking. Put a TLS reverse proxy in front of Outpost on a dedicated hostname. Allow outbound HTTPS to the CryptoSwift API hostname for your environment. Allow inbound HTTPS from CryptoSwift to Outpost’s signed callback endpoints. If you filter inbound traffic by IP, allowlist the source IP for your environment. Allow your applications and review browsers to reach Outpost. Preserve request paths and exclude bodies, credentials and signed URL query strings from access logs. See CryptoSwift API source IP addresses.

Database options

Outpost uses Prisma ORM for database access. The standard Docker image includes the PostgreSQL connector and migrations. The setup below assumes PostgreSQL.

If your institution uses another engine supported by Prisma ORM, CryptoSwift can develop and validate an Outpost connector for it on request. Options include Microsoft SQL Server, MySQL, MariaDB, CockroachDB, MongoDB, and SQLite. Share your engine and version with CryptoSwift during provisioning so the deployment includes the appropriate schema and transaction handling. See Prisma’s supported databases and versions.

2. Configure and start Outpost

CryptoSwift provides the Outpost source code so your team can audit the implementation and build the Docker image directly from the code you reviewed. The --build flag in the example below builds the image locally.

From the directory containing the supplied Compose file, copy .env.example to .env, restrict it to the service owner (chmod 600 .env), and set the following values. You can also inject them through your deployment’s secret manager.

SettingValue
DATABASE_URLConnection URL for your dedicated PostgreSQL database. Use a hostname reachable from inside the container and the TLS settings required by your database provider.
OUTPOST_TENANT_IDNumeric tenant ID provided by CryptoSwift for this installation.
OUTPOST_SECRETRandom shared secret provisioned with CryptoSwift, at least 32 characters. Keep it separate from client API keys.

The supplied configuration points to Production (https://api.cryptoswift.eu/). For a Sandbox deployment, replace that address in the copied .env with https://api-dev.cryptoswift.eu/ and use your Sandbox tenant credentials.

Run these commands on the Docker host from the directory containing the Compose file:

docker compose up --build --wait
curl --fail http://127.0.0.1:8081/_outpost/ready
curl --fail http://127.0.0.1:8081/health

The container applies its database migrations on startup. Compose waits for its health check to pass before returning. With the default port mapping, /_outpost/ready checks local database and evidence volume access, and /health checks the CryptoSwift API through Outpost. Both return {"status":"ok"} when healthy.

To offer reviewers the optional on-premises Customer Dashboard, deploy it separately and configure its API base URL to point to Outpost.

3. Verify the data flow

Outpost adds the local fields after the API returns an authorized transaction.

Use synthetic data in an activated test environment.

  1. Create an outgoing transaction through Outpost. Read the same transaction through Outpost and directly through the cloud API. Only the Outpost response should contain the locally stored party values.
  2. Receive a test incoming transaction and confirm that the signed API delivery populates its local record. Follow the usual wallet confirmation workflow when checking the response.
  3. If you collect wallet verification evidence, upload a test file and open its review link from a reviewer's network.

Before going live, test a coordinated restore of PostgreSQL and the evidence volume. Serialize updates to the same transaction. If Outpost reports a local storage failure after the API accepts a write, retain the request and transaction IDs and reconcile the outcome before retrying. The cloud transaction may already exist.