Setting up an X-Road test environment with the standalone Docker image

Use the standalone X-Road Security Server image to try the platform, build services and test integrations before a production server is registered. It is a test tool, and the limits on this page decide when a team moves on to a production install.

On this page

Why teams build an X-Road test environment before registration

The standalone Security Server image lets a team run an X-Road Security Server in a container so it can try the software, build against services and test a partner connection before its production server is registered. A Security Server needs PostgreSQL, either local or remote, so the test setup has to include a database alongside the container. The project repository says X-Road runs on Docker, but you must confirm the image name, tag and supported status in the official installation guide before pulling anything, and check that the tag matches a supported release on the releases page, currently 7.8.3, 7.7.4 or 7.6.5.

Teams usually need this setup for one of three reasons: to evaluate whether X-Road fits their data exchange, to write code against the service endpoints a partner will publish, or to rehearse a connection before the production server is approved. Each reason sets a different bar. An evaluation can use a throwaway instance, but an integration test should match the production design where it matters, including the subsystem names, service descriptions and access rules the partner will rely on. Decide that list before the first container starts, because a test that passes against settings the production server will not use proves little about the connection you actually need.

A passing test environment does not prove production readiness. It shows that the software starts, that the team's client can reach a test service and that messages flow inside a lab network. It does not test your production network path, firewall rules, certificates issued by the approved certification authority for your organization, backup and restore, admin access controls or behavior under production traffic. Record which checks were run and which were skipped, and pass that list to the registration project, so the team does not assume that a green lab run covers the production design.

Which test setup fits each goal

This table compares the test setups a team can use to try the standalone Security Server image and what each one shows. Read each row across: the fit column shows the goal it serves, the cannot-show column marks what still needs a closer match to production, and the confirm column lists what to check before you rely on the result. The main takeaway is that a test host is only as representative as its operating system, database and network path, so match those to production before you draw conclusions.

Test setupWhat it fitsWhat it cannot showWhat to confirm first
Standalone image on a Linux test hostTrying X-Road, developing against services and testing integrations on a host you controlProduction sizing, live member traffic or the firewall path other members will useHost meets the 3 GB RAM and 3 GB free disk minimums; confirm image support terms in the release notes
Image on a developer workstationQuick local trials and service development on a laptop or desktopSustained load, always-on uptime, or reachability on ports 5500 and 5577 from other networksDocker Desktop is intended for testing only; confirm 3 GB RAM and 3 GB disk remain free beside other tools
Package install on Ubuntu 22.04 or 24.04 test hostChecking the package install path on a supported Ubuntu Server LTS release on x86-64RHEL package behavior, SELinux or firewall defaults on Red Hat systemsHost is x86-64 Ubuntu Server with at least 3 GB RAM and 3 GB free disk
Package install on RHEL 8 or 9 test hostTesting the RHEL path if production will run on Red Hat Enterprise LinuxUbuntu-specific package behavior or container-based deploymentConfirm the RHEL 8 or 9 version matches your production target
Local PostgreSQL on the test hostSimple setups where the database runs on the same host as the Security ServerDatabase failover, backup policy or the separate operations a production database team runsConfirm the PostgreSQL version the installation guide requires for your release
Remote PostgreSQL, including managed servicesChecking connectivity to a separate database for serverconf, messagelog and opmonitorLocal database performance, or managed service features you have not configuredConfirm network path, credentials and that your managed service is supported with your release

How the test Security Server, PostgreSQL and test services connect

The diagram starts with the operator and the test client, both inside the test network. Operators reach the admin UI on TCP 4000, and the client calls the test Security Server on TCP 8080 or 8443, which forwards the request to the test information system. The Security Server keeps its data in PostgreSQL, which can run on the same host or on a remote server. Partner Security Servers reach the test server across the trust boundary on TCP 5500 for message exchange and TCP 5577 for OCSP. Whether a real partner can exchange messages depends on the configuration set by the governing authority, so confirm that configuration before you test with a live partner.

Test Security Server, its database and partner traffic across the trust boundary.

Which test goal changes the setup choices

Developers building service adapters need a Security Server that routes a request from a consumer to a provider information system, so they can test the adapter against the same exchange path their production code will use. Start with one instance and the smallest set of services that exercises the whole flow.

  • Set up now: one container, one provider subsystem with a single test service description, and one consumer client on the same instance.
  • Set up now: a stub or development version of the adapter on the internal network, reachable on the information system port your adapter expects.
  • Defer to production: external message exchange, member codes you have registered, approved certificates, and any timeout or load tuning.
  • Defer to production: database placement, since an external PostgreSQL instance belongs to the production build.
  • Confirm with the image documentation: which service description types, REST or SOAP, the image handles, and which internal ports it exposes for information system access.

Check the service description types and port settings before you write the adapter contract, because a later change there rebuilds the test setup.

Setting up an X-Road test environment step by step

This sequence takes a test Security Server from a chosen release to a verified setup on your own infrastructure. Each step ends with a check you can repeat, and the final step records the configuration so the environment can be rebuilt. The result is a standalone test instance for trying X-Road and testing integrations before a production server is registered.

  1. Choose the X-Road release version

    The engineer leading the build selects a release from the X-Road releases page. The current release is 7.8.3, and the supported versions are 7.8.3, 7.7.4 and 7.6.5. Version 8.0.0 Beta 2 is for evaluation only, so do not base a test that must match a supported release on it. Done when the version, and the image tag that matches it, is written in the setup record and the releases page still lists it as supported.

  2. Check the host against minimum resources

    The infrastructure team checks the host before anything is installed. The Security Server needs at least 3 GB of RAM and 3 GB of free disk space, and the monitoring add-ons raise the memory minimum to 4 GB. Supported operating systems for the Security Server are x86-64 Ubuntu Server 22.04 and 24.04 LTS and Red Hat Enterprise Linux 8 and 9, so confirm the host and container runtime are covered by the current installation guide. Done when the memory and free disk readings, taken from the host itself, meet the minimums and are written into the setup record.

  3. Provision PostgreSQL and database credentials

    The database administrator provisions PostgreSQL before the container starts, either on a local host, a remote server or a managed service. The Security Server keeps its configuration, message log and operational monitoring data in PostgreSQL, so create the serverconf, messagelog and opmonitor databases and a dedicated login for them. Confirm the supported PostgreSQL version in the installation guide, and store the credentials in your team's secret store, outside the image. Done when a login with those credentials connects to each database from the host that will run the container.

  4. Run the image with persistent storage

    The engineer starts the standalone Security Server container with the database connection settings and with configuration and log storage kept on host volumes, so they survive container restarts and replacement. Before mounting anything, confirm the volume paths in the documentation for your chosen release. Done when the container starts, its logs show no startup or database errors, and the configuration is still present after you restart the container.

  5. Restrict the admin UI to the test network

    The network engineer limits the admin UI, which listens on TCP 4000, to the internal test network and its administrators. Message exchange on TCP 5500 and OCSP on TCP 5577 are accepted from external networks, so open them only to the test peers that need them and record each rule. Keep the information system ports, 8080 or 8443, reachable only from the internal side. Done when a host inside the test network reaches the admin UI, a host outside it does not, and the rules are written into the setup record.

  6. Verify admin UI login and database connection

    The administrator signs in to the admin UI with the test admin account and confirms the server loads its configuration. Check that the server reports its PostgreSQL connections as working, and that the container logs show no database errors. Confirm in the user guide how the initial account is created and which roles the team needs. Done when the login succeeds with the named test account and the database check passes.

  7. Verify reachability of the test information system

    The developer deploys a small test service on the same internal network, for example an HTTP service (illustrative), and confirms the Security Server can reach it on TCP 8080 or 8443, depending on how the service is exposed. Send a request through the Security Server and compare the response with what the service returns when called directly. Done when the request sent through the Security Server returns the expected response, and the result is noted in the setup record.

  8. Record the setup so it can be rebuilt

    The engineer writes a setup record that another engineer could use to rebuild the environment from scratch. Include the release and image tag, the host operating system and memory and disk readings, the PostgreSQL host and database names, the volume paths, the firewall rules, the test admin account names and the test information system details, but no passwords. Store the record in your team's version-controlled documentation. Done when a colleague who did not perform the setup can list each item from the record without asking you.

What the standalone image is not meant for

The standalone image is a sandbox for learning, development and integration testing. The six limits below share one cause: a test environment does not carry production membership, production load, production keys or production retention. Check each item against NIIS documentation and your own environment before you treat a test result as evidence for live operations.

Production membership and live traffic

Registering a Security Server as a production member, and exchanging live messages through it, is outside what a test image is for. Membership depends on the governing authority's approval process, approved certificates and a configuration that other members trust. Before any live registration, confirm the steps, documents and approvals with the governing authority and NIIS documentation, and plan the production server as its own installation.

Sizing and performance conclusions

A single test host shows that services respond, not how the server behaves under production load, peak traffic or a growing message log. Minimum memory and disk figures in the installation guide describe a starting point, and the message log grows with traffic, so a short test run says little about storage over time. Confirm sizing with the hardware requirements and sizing guidance, and load test on your own hardware before you set capacity.

Installation guide

Message logs and backups as evidence

Messages and logs from a test environment are not dependable evidence unless you have set retention, protection and integrity controls on purpose. Logging modes, timestamping, archives and backup handling are decisions for your compliance and records owners. Confirm with them what must be kept, where it is stored, who can read it and how long it is retained before you rely on any test log as evidence.

Monitoring add-on memory

Monitoring add-ons raise the Security Server's memory requirement above the base minimum, so a host that passes the base install may still struggle once they are enabled. Check the current figure in the installation guide, then measure free memory on your test host with PostgreSQL and any container runtime running. Confirm whether your test plan needs the monitoring add-ons at all, since a sandbox used only for service development may not.

HSM and key handling

Software keys on a test host do not show how signing and authentication keys will be generated, stored and protected once the server runs in production. X-Road supports hardware security modules through PKCS#11 drivers via the xroad-addon-hwtokens package, with RSA and EC keys. Confirm the HSM model, its PKCS#11 driver, supported key types and access procedures with your HSM vendor and key custodians, and test that path on a non-production module first.

Installation guide

Upgrade path testing

A fresh test install shows one package set, not the path from your existing server to a later release. The 7 line has moved to maintenance, since 7.8.0 was its last new-feature release, so the version you test may not be the one you run next. Confirm the supported upgrade path, rollback approach and target version with NIIS release notes and your own change plan before scheduling an upgrade.

X-Road releases

Moving from a test environment to a production Security Server

Plan the move on the assumption that only part of the test work survives it. What carries over is the work that describes your organization's services: service descriptions, the access rights you granted to consumers, and the team's configuration notes explaining why each setting was chosen. The notes are often the most useful item, because they let the production team repeat decisions without relearning them. What does not carry over is anything bound to a member's identity or to the test environment itself. Signing and authentication keys, certificates from an approved certification authority, the contents of the serverconf, messagelog and opmonitor databases, and the test configuration sources and container settings used to start the image all belong to the test server. Each production Security Server generates its own keys and needs its own certificates, so recreate those in production.

Use the sibling production topics as the next steps, in the order your platform requires. First, choose the operating system path: the Ubuntu or Red Hat Enterprise Linux installation, depending on the platform your organization standardizes on. If the databases will run outside the host, follow the remote PostgreSQL guide and confirm that any managed service you consider is supported before you commit to it. For containers, the production Docker topic covers persistent volumes and an external database, which the test setup does not cover. Registration with the governing authority comes last, because it depends on keys and certificates that exist only after the production server is installed. Before you begin, confirm that the release you plan to install is on the supported list in the X-Road releases page.

Security habits for an X-Road test environment

A test Security Server still holds signing keys, authentication keys and admin credentials, so it needs the same baseline habits as production, scaled to a lab. The six habits below draw on the X-Road hardening guide and on the boundaries that keep test traffic and test data away from production partners. Check each one before you connect the server to any other member.

Admin login policy

Admin accounts on the Security Server authenticate through PAM, so the operating system account policy controls them. Use passwords of at least 16 characters and configure account locking so an account locks for 15 minutes after 3 failed logins. A test host that is reachable on the network can be brute forced just like production, so apply the same values here. Confirm the exact lockout mechanism for your OS in the hardening guide before you rely on it.

Hardening guidelines

Key-only SSH access

Disable password authentication for SSH on the Security Server host and allow only key-based logins. Without this, anyone who can reach the SSH service can attempt password guesses against a host that holds signing and authentication keys. Register the public keys of named administrators only, and remove them when someone leaves the test team. After system updates, confirm the effective SSH settings still refuse password logins.

Allowed-hostnames setting

Set the allowed-hostnames setting so the Security Server answers only for the host names you intend it to serve. The hardening guide describes it as protection against host header injection, where a crafted Host header reaches the server under a name you did not configure. Test setups often use ad hoc names from hosts files or port forwards, so list each name you use and nothing else. Check the value again when you change the hostname or add a forwarded port.

Global configuration over HTTPS

The hardening guide recommends publishing global configuration over HTTPS from version 7.4 onward. Test environments that pull configuration from a test Central Server or a shared distribution point should use this setting too, so the same transport applies before you move to production. Confirm which version your image runs before you choose the setting, and check the release notes for the exact configuration steps.

X-Road releases

Isolate the test network

Place the test Security Server on a network segment that should not be able to route to production systems, and allow traffic only to the partner test servers you have agreed to exchange with. Message exchange uses TCP 5500 and OCSP uses TCP 5577 from external networks, so review those rules on both sides of the boundary. Name your test member and its services so no one mistakes a test endpoint for a production one. Confirm with each partner which test trust anchors they accept before opening any path.

Test credential and data teardown

Generate test keys, tokens and certificates for this environment only, and never copy them into production, whether onto a production server or a production secrets store. Before you tear the environment down, revoke or delete the test tokens and keys, then remove the test databases, message logs and configuration backups that hold test traffic. Keep a short list of what each environment created so teardown does not miss an item. Test data may carry identifiers copied from other systems, so treat it as sensitive until it is deleted.

Questions teams ask before building an X-Road test environment

What does a test setup for X-Road cost in money and effort?

The cost depends on a few drivers you can size yourself. The main components are the host (a cloud instance or a server in your data center), PostgreSQL (a local install or a managed service), the staff time to build and run the Linux and Docker parts, and the work to get test services and network approvals in place. Host and database costs recur for as long as the environment runs, while most of the setup effort is one-time. Ask any provider for a quote that splits these components, names who performs each task, and states which items you pay for directly. DeployOpen issues a quote from a written scope and does not publish a price list.

How long does it take to set up a test environment?

The duration depends mainly on how quickly your team clears its dependencies, so no single timeline fits every setup. The install steps are often a smaller part of the schedule than the waits around them. The longer delays usually come from network approvals for firewall rules, from provisioning a host and a PostgreSQL database, and from agreeing which X-Road version to run. The number of test services also adds time, because each one needs its service description and access settings. Ask for a timeline in the written scope, with each dependency listed and an owner named. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so the dates follow from the dependencies you confirm.

What must our team provide for a test environment?

Your team provides five things, and most delays trace back to one of them:

  • A host: a Linux machine or virtual machine on a supported Ubuntu or Red Hat Enterprise Linux release, with at least 3 GB RAM and 3 GB free disk space.
  • PostgreSQL: a local or remote database, including a managed service, with the access the Security Server needs.
  • A test service: an information system to publish or consume through X-Road, with its endpoint and test data.
  • Network approvals: firewall rules for the Security Server ports between your test network and the systems it reaches.
  • A version decision: the X-Road release you will test, agreed with the people who own the production plan.

DeployOpen can take on parts of this in the written scope, but your team still controls access to your own network and systems.

Can our own engineers set up a test environment without a partner?

Yes, if your team has Linux administration, Docker and PostgreSQL skills and can obtain the network approvals itself. A test setup is a smaller job than a production deployment, but it still needs people who can read installation logs, open the right ports and connect a database. Teams that lack one of these skills often spend time learning it on a schedule they did not plan for. Before you decide, confirm three things: who owns the host and database, whether the test services are ready to publish or consume, and who makes the version decision. A partner adds value when you want the environment built to a written scope with documentation your team can keep. DeployOpen builds these environments from a written scope and documents the result.

Which X-Road version should we test against in 2026?

Test against the release your production will run, and treat 8.0.0 Beta 2 as an evaluation target until its production release is confirmed. The current X-Road release is 7.8.3, and 7.7.4 and 7.6.5 are also supported. Version 7.8.0 is the last new-feature release of the 7 line, and NIIS plans bug fixes and security patches beyond 2026, although the length of that period has not been decided. X-Road 8 "Spaceship" is available as 8.0.0 Beta 2, with its production release scheduled for December 2026. That date is close, so check the X-Road releases page for the production build before you choose. A common split is a 7.x environment for work that must match today's production and an 8 beta environment for evaluation.

Can the configuration from a test environment move into production?

Plan to rebuild the production server and reuse only the parts you have verified. A test environment uses test identities, test certificates and test registrations, which should be treated as separate from production. Production registration runs through the governing authority, including keys and certificates from an approved certification authority, so those steps run again for production. The parts that usually carry over are your design decisions: the service descriptions, the subsystem layout, the database plan and the runbooks. Anything that holds credentials or keys should be recreated in production. Ask your governing authority and your implementation partner which items they accept, and document each item you reuse so the production review can trace it.

Which ports does a test Security Server need open?

A test Security Server accepts TCP 5500 for message exchange and TCP 5577 for OCSP from external networks, and it uses TCP 4000 for the admin UI and TCP 8080 or 8443 for information system access from internal networks. Open only the ports your test partners and internal clients need, and keep the admin UI on the internal side. The database connection to PostgreSQL also has to be allowed through the host's firewall. Confirm the exact list in the Security Server installation guide for your version before you request approvals, because a missing rule is one of the more common causes of a stalled test.

How DeployOpen scopes and supports an X-Road test environment

DeployOpen treats a test environment built from the standalone Security Server image as a bounded piece of work with a written scope and a clear line to production. We confirm what your team needs to learn or test, set up the image in your infrastructure, and document what the environment is and is meant for. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we scope

  • The written scope names the learning, development or integration goals the test environment must serve.
  • We record the X-Road version, host platform and container runtime you plan to use before work starts.
  • Scope states which systems are in the test, which are simulated, and whether any member registration is in or out of scope.

How we build

  • We deploy the standalone Security Server image on your host, with test database and volumes configured.
  • We check the container's ports against your network policy, including the admin UI and information system access.
  • Sample services and test clients are wired up to exercise the exchange path end to end.

How we hand over

  • A handover document covers the image tag, host sizing, ports, volumes and the reset steps for the environment.
  • The document states the test-only boundary, so developers know what must change before a production server is installed.
  • A walkthrough with your engineers can cover setup, sample calls and teardown.

How we support

  • Ongoing support after handover is available as a retainer, scoped in writing.
  • Retainers can cover image upgrades when X-Road releases change, tested in the same environment first. Check the X-Road releases page for current versions.
  • Before a production Security Server is planned, we can agree a separate scope for production work.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.