Skip to content

Install and configure

The Platform ships as a Compose package, iso8583sim-platform-compose-<version>.tar.gz: the Compose files, the database init scripts, the monitoring configurations and the support bundle, pinned to the images of one build, with the SHA-256 of every file in SHA256SUMS and the build’s name in VERSION. It runs with Docker Compose on one Linux machine, one container per service. Check the package, unpack it, and start your settings from its example:

sha256sum -c iso8583sim-platform-compose-<version>.tar.gz.sha256
tar -xzf iso8583sim-platform-compose-<version>.tar.gz && cd iso8583sim-platform-compose-<version>
sha256sum -c SHA256SUMS && cp .env.example .env

This page covers a first install and the settings most installs change. Every setting goes in that .env file, next to compose.yaml. On a Kubernetes cluster, the Helm chart takes the same settings: see Kubernetes.

POSTGRES_PASSWORD=... # openssl rand -hex 16
HSM_MASTER_KEY=... # openssl rand -hex 32
VAULT_MASTER_KEY=... # openssl rand -hex 32, a different one
PLATFORM_URL=https://payments-test.example.com
  • The two master keys seal the HSM simulator’s LMK and the vault’s keys. Keep a copy of each away from the machine and away from the backups: neither is ever stored in a database or a backup, and without them those can’t be opened. The HSM simulator and the vault refuse to start without their key, and say why. To keep them out of .env, see Master keys and the HSM.
  • PLATFORM_URL is the address people use to reach the install; sign-in links point there.

People sign in with a one-time link sent by email.

MAILER=smtp
MAIL_FROM=iso8583sim Platform <[email protected]>
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=...
SMTP_PASSWORD=...

MAILER=resend with RESEND_API_KEY uses Resend instead. The default, console, writes links to the identity service’s log, which is enough to try the Platform out.

docker login ghcr.io
docker compose up -d
docker compose exec identity iso8583sim-identity create-admin --email [email protected]

Sign in to the registry with the access you were given; the package names the images of its build, so the second command pulls exactly those. The third prints a one-time sign-in link for the first admin. Every service waits for the ones it needs, and brings its database up to date as it starts. To run the same images from your own registry, copy them there and set PLATFORM_IMAGE (and PLATFORM_TAG, if you retag) in .env.

SIGNUP=invite # invite (default), domain or open
SIGNUP_DOMAINS= # with domain: the email domains that may sign up, comma separated
DEFAULT_ROLE=viewer # the role new people get: viewer, editor or admin
DEFAULT_WORKSPACE=default # the workspaces new people join, by slug (several: comma separated); none: wait for an admin

With invite, admins invite people from the console. With domain, anyone with an address at one of SIGNUP_DOMAINS can sign up. A bot check (Cloudflare Turnstile) on the sign-in page is used if TURNSTILE_SITE_KEY and TURNSTILE_SECRET are set.

An install holds one or more workspaces: teams or programs, each with its own hosts, scenarios, environments, keys, logs and API tokens, and its own members with their roles. A fresh install has one, called Default, and shows no sign of workspaces until an install admin makes a second from the Workspaces page; an install upgraded to this version gets that same one, holding everything it had, with every user a member at their current role.

DEFAULT_ROLE is the install role: admin makes an install admin, who manages users, workspaces and the install’s own settings and acts as an admin in every workspace; viewer and editor are the role a new account gets in the workspaces DEFAULT_WORKSPACE names (one slug, or several comma separated; a slug no workspace has yet is created at start, named after it, and everyone who already has an account joins it at their install role; none means new accounts join no workspace until an admin adds them). Roles anywhere else are given per workspace, by its admins, from its Settings page. See the workspaces walkthrough for how the console and the API name the workspace a request acts in.

A role is a set of permissions. Viewer, editor and admin are built in and mean the same everywhere; install admins define more on the Roles page, or from the command line, so an install set up by automation has its roles from the start:

docker compose exec identity iso8583sim-identity permissions
docker compose exec identity iso8583sim-identity define-role key-custodian --name "Key custodian" --permissions keys.manage,certificates.manage

Run again with other permissions, the command changes the role; the members who hold it have the new permissions on their next request.

Quotas bound what a workspace takes of the install: simulated hosts, capture points, a port range for both, and the highest load or replay rate. Install admins set them on the Workspaces page, or from the command line (a workspace DEFAULT_WORKSPACE names is made first, so this works before the service has started):

docker compose exec identity iso8583sim-identity set-quotas partner-program --hosts 3 --ports 8595-8597 --load-rate 500

An install can let people sign in through its OpenID Connect provider (Microsoft Entra ID, Okta, Google Workspace, Keycloak or any other). Register an application with the provider as a web application whose redirect URI is PLATFORM_URL/api/auth/oidc/callback (with your install’s address in place of PLATFORM_URL), with the openid, email and profile scopes, and put its details in .env:

OIDC_ISSUER=https://login.microsoftonline.com/<tenant id>/v2.0 # the provider's issuer, as its discovery document names it
OIDC_CLIENT_ID=...
OIDC_CLIENT_SECRET=... # leave empty for a public client with PKCE only
OIDC_NAME=Contoso # what the sign-in button says: Continue with Contoso
OIDC_SIGNUP=provider # provider (default) or policy

Roles can follow the provider’s directory. Name the claim that carries a person’s groups or roles and which of its values mean each Platform role:

OIDC_ROLE_CLAIM=groups # the default; Entra ID app roles are in roles, Keycloak realm roles in realm_access.roles
OIDC_ROLE_MAP=admin=platform-admins,editor=team-a,editor=team-b,viewer=everyone
OIDC_ROLE_MAP_REQUIRED=false # true: people with none of those values can't sign in

On every sign-in the highest role whose value the person holds is applied, so a move in the directory moves them here; the change is in the audit trail. Someone with none of the values keeps the role they have (the default role when new), unless the map is required. The last active admin keeps the role whatever the map says, as in the console.

The sign-in page then offers Continue with Contoso above the email form. The first time someone signs in this way an account is created with DEFAULT_ROLE, since the provider’s directory is the invitation list; with OIDC_SIGNUP=policy the sign-up policy above decides instead, and people without an invitation are refused. Later sign-ins find the account by its email address, which the provider must send as a verified claim. Magic links keep working beside single sign-on, for the first admin and for anyone the provider doesn’t know; the provider’s own sign-in policies (multi-factor, device rules) apply before the Platform sees the person.

An identity provider that speaks SCIM 2.0 (Microsoft Entra ID, Okta) can create, update and deactivate accounts here as its directory changes, so a leaver loses access without anyone opening the console. Set a provisioning token in .env, a long random value:

SCIM_TOKEN=...

Give the provider PLATFORM_URL/api/scim/v2 as the base URL and the token as its bearer token. The provider creates people with DEFAULT_ROLE, finds them by userName (their email address), and sets active; deactivating ends the person’s sessions at once, and deleting deactivates (the audit trail keeps who they were). The last active admin can’t be deactivated this way, as in the console. Rotate the token by changing it; the provider’s own group assignments decide who it provisions.

Port What Notes
80 The console and the API Put your TLS-terminating proxy or load balancer in front of it.
8583 to 8599 Simulated hosts For your systems to connect to.
1500 The HSM simulator HSM_PORT changes the published port.
8090, 8600 The reference gateway and switch Reachable on the machine itself only.

Docker publishes ports past most host firewalls, so restrict who can reach the machine with your network’s own controls.

The reference gateway and switch, which Try it end to end uses, run on every install and stay idle until someone pays through the gateway. To leave them out, put them behind a profile in a compose.override.yaml next to compose.yaml:

services:
reference-switch: {profiles: ["reference"]}
reference-gateway: {profiles: ["reference"]}

and set REFERENCE_GATEWAY_URL= (empty) in .env, which turns the tour’s payments off. docker compose --profile reference up -d brings them back.

Evidence packs (the evidence walkthrough) stay in the api’s database until an admin deletes them. To copy each pack to an S3-compatible bucket as it is made, with the install’s public key next to it, set in .env:

ISO8583SIM_PLATFORM_EVIDENCE_ARCHIVE_ENDPOINT=https://<account>.r2.cloudflarestorage.com
ISO8583SIM_PLATFORM_EVIDENCE_ARCHIVE_BUCKET=evidence
ISO8583SIM_PLATFORM_EVIDENCE_ARCHIVE_ACCESS_KEY_ID=...
ISO8583SIM_PLATFORM_EVIDENCE_ARCHIVE_SECRET_ACCESS_KEY=...
ISO8583SIM_PLATFORM_EVIDENCE_ARCHIVE_PREFIX=evidence # the folder in the bucket (default evidence)
ISO8583SIM_PLATFORM_EVIDENCE_ARCHIVE_REGION=auto # auto for R2, the real region for AWS
ISO8583SIM_PLATFORM_EVIDENCE_RETENTION_DAYS=365 # optional: remove archived packs from the database after this

Any store speaking the S3 API works (AWS S3, Cloudflare R2, MinIO, Backblaze B2, Ceph). Give the key pair write and read access to that one bucket and nothing else; it never deletes. Packs that fail to copy are retried, and after ten failures wait for an admin: the settings page shows the counts and the last error, and Archive now on a run’s page tries one again. The retention removes only packs the bucket holds; without it, packs stay in the database as well.

Every service sends OpenTelemetry traces to a collector once .env names one: ISO8583SIM_PLATFORM_TRACES_ENDPOINT=http://otel-collector:4318, and ISO8583SIM_PLATFORM_TRACES_HEADERS=Authorization=Bearer <token> for a hosted collector. The monitoring page has what becomes a span, the two sample ratios, and a collector configuration for an install from the Compose file.

For a machine that can’t reach our registry, the air-gapped bundle, iso8583sim-platform-airgap-<version>.tar, carries the images of one build along with the Compose package and the Helm chart for it, and nothing in it reaches a network. Check it, unpack it, load the images, then install from the Compose package inside as above, without the docker login:

sha256sum -c iso8583sim-platform-airgap-<version>.tar.sha256
tar -xf iso8583sim-platform-airgap-<version>.tar && cd iso8583sim-platform-airgap-<version>
sha256sum -c SHA256SUMS && ./load.sh
tar -xzf compose/*.tar.gz

load.sh loads every image the Compose files run (the Platform’s and the PostgreSQL, NATS and HAProxy images) and checks each one’s identity against images.txt. Compose doesn’t pull what the machine already has, so docker compose up -d from the package starts without a registry. For a Kubernetes cluster, push the loaded images to your own registry under the same names and install the chart from the bundle’s chart folder with image.registry pointing there. Every bundle is installed from inside an engine with no network before we hand it over; upgrading is the next bundle, loaded and unpacked over the install the same way.

Take a backup first: Backups and restore. Then unpack the next package over the install’s folder, which replaces the Compose files and the pinned image tag and leaves your .env, and start it again:

tar -xzf iso8583sim-platform-compose-<version>.tar.gz --strip-components=1 -C /path/to/the/install
docker compose up -d

The second command pulls the new images and restarts what changed; each service brings its database up to date as it starts. Upgrading to the first version with workspaces puts everything the install has into one workspace, Default, with every user a member at their current role; API tokens made before belong to it too. Every build of the Platform is checked this way before it’s published: the release our own staging runs is started with its hosts, scenarios and runs, the new build is brought up over it, and what was there must still be there and work, with the admin still signed in.

Admins add webhooks under Settings (the webhooks walkthrough). Two settings on the api service shape them: ISO8583SIM_PLATFORM_WEBHOOKS_ALLOW_PRIVATE=true lets deliveries go to loopback, link-local and private addresses (a relay on the install’s own network; off by default), and ISO8583SIM_PLATFORM_PUBLIC_URL=https://platform.example.com is the console’s address, so the links in payloads are whole.

The identity service keeps the audit log (sign-ins, invitations, role changes, token use) and shows it to admins under Users. To send each event to a SIEM as it happens, set ISO8583SIM_PLATFORM_AUDIT_EXPORT on the identity service: syslog://siem.example.com:514 (UDP; add ?proto=tcp for TCP with octet counting framing) sends RFC 5424 messages with the event as JSON, or an https:// URL takes one JSON event per POST, with ISO8583SIM_PLATFORM_AUDIT_EXPORT_TOKEN as a bearer token. Forwarding runs beside the request on its own thread: a receiver that is slow or down never slows or fails a sign-in, and failures are counted in the identity service’s log. Collectors that fetch instead can take GET /api/users/audit.jsonl?since=2026-10-01T00:00:00Z (admin) as JSON Lines.