X-Road migration of integrations and servers

A migration moves existing point-to-point government integrations onto X-Road services and moves Security Servers to new hosts, operating system releases or a remote PostgreSQL database while member connections stay up.

On this page

When an X-Road migration of integrations and servers is needed

An X-Road migration moves an organization's existing point-to-point government integrations onto X-Road services, or moves Security Servers to new hosts, to a new RHEL or Ubuntu release, or to a remote PostgreSQL database, without breaking the member connections that depend on them. Most teams keep ownership of the data, the service catalogue and every decision about which members connect and when, and bring in a partner for the technical cutover, where the risk sits. The trigger is usually one of four events: a host reaching end of life, an operating system release change, a move of the Security Server database to a managed or remote PostgreSQL service, or a decision to onboard integrations that still run as direct connections between agencies.

Security Server migrations carry the highest risk of the group because other members reach your services through them. The Security Server runs on Ubuntu Server 22.04 or 24.04 LTS on x86-64, or on Red Hat Enterprise Linux 8 or 9, and requires PostgreSQL, local or remote, so a change to any of these layers touches live message exchange. Before planning a window, confirm the target OS and PostgreSQL versions against the X-Road Security Server installation guide, and confirm that the firewall rules for TCP 5500, 5577, 4000 and 8080 or 8443 are reproduced on the new host, along with any hardware token configuration that depends on the xroad-addon-hwtokens package.

Onboarding existing integrations is the less visible trigger, and it often costs more time than the server work. Each point-to-point connection needs its service mapped to an X-Road service, its consumers and providers confirmed in the Central Server configuration, and its traffic tested end to end before the old path is retired. Ask any partner to show, in writing, how they will run old and new paths in parallel, how they will roll back a failed cutover, and who signs off member acceptance. Those answers determine the scope and the quote more than the number of servers does.

What a migration engagement includes

A migration moves working member connections onto a new footing without a gap in service. The six components below are linked: the inventory decides what maps to X-Road services, the host, OS and database work changes the platform underneath, and cutover decides when traffic moves. Each one is agreed in writing before work starts.

Integration inventory and mapping

Every point-to-point integration is listed with its producer, consumer, data classification, protocol, authentication method and owner. Each one is then mapped to an X-Road service, its member and subsystem identifiers, and the access rules that will govern it. Gaps usually show up here: undocumented callers, batch jobs that read a database directly, and partners who still expect the old endpoint. Ask who signs off the mapping on each side before any configuration changes.

Security Server user guide

Security Server host rebuild or move

The Security Server is rebuilt on a new host or moved to a new one, with its network path, certificates and key material carried across deliberately. Confirm the new host meets the published minimums for RAM and free disk and that the required inbound ports are open from the right networks. Member traffic depends on TCP 5500 and 5577 from external networks, so firewall changes are tested before the old host is retired.

Minimum RAM
3 GB
Installation guide

OS release change

Moving between operating system releases is a change to the platform itself, not a patch. Supported targets are Ubuntu Server 22.04 and 24.04 LTS on x86-64, and Red Hat Enterprise Linux 8 and 9. Plan for a rebuilt host rather than an in-place upgrade where the vendor path is unclear, and record the exact release and package versions that passed testing. Confirm the X-Road release you run supports the target OS before you commit to a date.

PostgreSQL database move

The Security Server needs PostgreSQL, whether local or remote, including managed services such as AWS RDS and Azure Database for PostgreSQL. Moving the database involves schema-compatible restore, credential rotation, network access from the Security Server, backup and restore testing, and a check that the connection survives failover. Ask the provider how backups, maintenance windows and major version upgrades will affect the Security Server during operation.

HSM key handling through PKCS#11

Where signing keys sit in a hardware security module, the move must carry the key references, not just the files. X-Road reaches HSMs through PKCS#11 drivers installed with the xroad-addon-hwtokens package, with RSA and EC keys supported. Verify the module, token labels and PIN handling on the new host before cutover, and confirm that the old host can no longer sign for members once traffic has moved. Ask the HSM vendor which driver versions they certify.

Cutover with rollback

Cutover is the point where member traffic moves to the new host or database, and it needs a written rollback path with named decision makers and a time limit for the decision. Rehearse the sequence on a copy of the environment, confirm DNS or routing changes, and check that member systems accept the new endpoint. Keep the old server available and unchanged until the agreed observation period ends. Agree the observation period in the scope, not during the window.

What makes a migration cost more or take longer

This table lists the factors that change the effort and calendar time of an X-Road migration, why each one matters and how to reduce it. Read each row as a question to answer in your own environment before asking for a quote, since most drivers multiply across production, test and DR.

DriverWhy it mattersHow to keep it down
Member connections and servicesEach service consumer and provider must be re-pointed or re-registered, and each one needs its own test and sign-off before cutover.Inventory every connection and service first, group them by provider, and move low-risk consumers in early batches.
Point-to-point versus X-Road integrationsPoint-to-point links carry their own authentication, endpoints and certificates, which must be mapped to X-Road services and member identities.Count the integrations already on X-Road and the point-to-point ones separately, and decide which to wrap, which to rebuild and which to retire.
Number of Security Servers and environmentsProduction, test and DR each need a matching Security Server setup, so effort grows with every environment that must mirror the target design.Build one repeatable configuration per environment and promote it through test to production rather than configuring each by hand.
Database size and change of host or engineMoving the PostgreSQL database to a new host or a remote service changes connection settings, backup routines and restore testing, and a larger database lengthens copy and verification time.Confirm the target PostgreSQL version and hosting option early, measure database size, and rehearse a full restore on the target before cutover.
HSM-backed keysKeys held in a hardware security module through PKCS#11 drivers must be reachable from the new host, and moving them requires coordination with the HSM owner.Check that the new host has the required driver and access, and confirm the key handling procedure with the HSM team before the migration window.
Admin role model and LDAP integrationAdmin logins for the five X-Road roles may depend on PAM and SSSD with LDAP group mapping, which must be rebuilt and tested on each new host.Document current role holders and group mappings, and test each role's access on the new server before removing the old access.
Change-freeze windows with other membersOther members must agree to cutover dates, and their own freeze periods can block or stretch the schedule for every shared connection.Collect each member's freeze calendar early, agree a common window in writing, and schedule the cutovers in stages.
Parallel Security Server stagingRunning a new Security Server alongside the existing one adds hardware, configuration and testing work, but it lowers the risk of a hard cutover.Stage the new server in parallel, verify message exchange in test, then switch members over one group at a time.

How the migration proceeds in phases

The sequence moves each integration onto X-Road services in a parallel environment that is rehearsed before any member traffic is switched, so every cutover has a known starting state and a tested way back.

  1. Inventory current connections and member dependencies

    Start by listing every point-to-point integration in scope: the counterparties, the endpoints, the authentication method, the message formats, the data volumes and the owner on each side. Record which systems call which services and which of them depend on certificates or network rules that X-Road will replace. DeployOpen runs this with your integration owners and the partner organizations that must agree to each change. The step is done when every connection has a row in an inventory signed off by the business owner and each counterparty has confirmed its own dependencies.

  2. Design the target topology and size the hosts

    Decide which Security Servers host which services, where the Central Server and Configuration Proxy sit, how each Security Server reaches its information systems over the internal network, and how the database is hosted, either locally or as a remote PostgreSQL service. Size each host against the published minimums: at least 3 GB RAM (4 GB with monitoring add-ons) and 3 GB free disk space, on Ubuntu Server 22.04 or 24.04 LTS, or Red Hat Enterprise Linux 8 or 9. Confirm the firewall rules for TCP 5500, 5577, 4000 and 8080 or 8443. The output is a design document and a firewall change request that the network team has reviewed.

  3. Build the parallel environment

    Install the new Security Servers and any new Central Server components alongside the existing ones, without moving live traffic. Configure the database, the admin users and roles, the HSM-backed or software keys and the trust anchors agreed with your trust service provider. The current production environment keeps serving its connections while the new hosts are built. Done means every new host passes a health check, can reach its peers over the agreed ports, and has a documented build record that the security team can compare with the hardening guidelines.

  4. Rehearse on a copy of configuration and database

    Take a copy of the existing configuration and database and restore it into the parallel environment. Run the migration steps in full, including any change to the database host, operating system release or X-Road version, and record every error and manual action. Test each integration against the rehearsal copy using test messages agreed with the counterparty. The rehearsal is complete when the same steps succeed twice in a row without manual correction, and the runbook reflects what actually happened.

  5. Execute the staged cutover

    Move connections in the order set by the inventory, starting with the lowest-impact integration. For each group, announce the change window to counterparties, switch traffic to the new Security Server, and keep the previous path available so it can be restored quickly if a check fails. Do not move the next group until the previous one has passed its checks. The output of each cutover is a signed change record with the time, the connections moved, the checks run and the person who approved the switch.

  6. Verify after each cutover

    After each group moves, confirm that messages flow end to end in both directions, that the OCSP and message exchange endpoints respond from external networks, that admin logins work through the chosen identity path, and that logs and monitoring show the expected traffic. Compare message counts and error rates with the period before the change. Confirm that backups of the new database run and can be restored. The step closes when the business owner and each counterparty confirm the integration works and the verification record is filed.

  7. Decommission the old servers and document the result

    Once every connection has been verified for an agreed observation period that you set in advance, retire the old Security Servers and remove their firewall rules, certificates and stored credentials. Keep a read-only copy of the old configuration and database for the period your records policy requires. Update the architecture diagram, the runbook and the inventory so they describe the environment that is now running. The output is a decommissioning record and an updated set of operating documents for your operations team.

Which migration work teams keep in-house and which they outsource

Member and business owners decide which point-to-point integrations move onto X-Road services, in what order, and which data each service exposes. These decisions depend on agreements with counterparties, legal basis for data sharing, and the business tolerance for downtime during cutover. Technical staff can describe options, but they should not decide them alone.

  • Service inventory: list every existing integration, its consumers, its data classification and the owner who signs off on moving it.
  • Service definitions: agree the X-Road service names, versions and access rights that each counterparty will use.
  • Cutover window: choose the dates and the counterparties who must be available to test.
  • Rollback criteria: define in writing what result stops a cutover and who makes that call.
  • Sign-off record: keep approvals for each moved integration so auditors can trace them later.

Before any build starts, ask the partner to show how its scope maps each decision to a named owner and a dated approval.

What goes wrong when Security Servers move

Moving a Security Server to a new host, OS release or database touches the parts of X-Road that member connections depend on most: keys, network paths, configuration and admin access. The risks below are the ones that most often turn a planned window into an outage, and each has a check to run before and during cutover.

Broken member connections during cutover

Other members address your Security Server by its external address and message exchange port. If the new host is not in service before the old one is retired, message exchange stops for every service you provide and consume. Run the new Security Server in parallel, confirm that a test request to a known member succeeds through it, and only then switch the external address. Keep the old host intact until the new one has carried real traffic and a rollback has been rehearsed.

Installation guide

Certificate or key mismatch after host change

Signing and authentication keys and certificates must match what is registered in the Central Server for your member. A restore onto a new host that lacks the right key material, or that uses a certificate from a different configuration, produces requests that other members reject. Before cutover, compare the registered certificates with those on the new host, confirm the key labels, and check that the Security Server status is correct in the Central Server. Ask your trust service provider which certificate actions a host change requires.

Firewall rules missing message exchange ports

The Security Server must accept TCP 5500 for message exchange and TCP 5577 for OCSP from external networks. Admin access on TCP 4000 and information system access on 8080 or 8443 are internal. A new host built from a generic template often lacks these rules, or exposes internal ports externally. Write the port matrix before the build, test each port from an external network segment and from an internal one, and confirm that the old host's rules are removed only after the new one passes.

Installation guide

Database move losing configuration consistency

The Security Server requires PostgreSQL, local or remote, and its configuration lives there. Moving to a remote or managed database while the old server still accepts changes can leave two copies that disagree about services, clients or certificates. Freeze configuration changes during the move, take a verified backup, restore into the target, and compare key tables and the active configuration on both sides. Confirm with your database team which connection, TLS and failover settings apply to the remote instance.

HSM token not reattached

When keys are held on a hardware security module through a PKCS#11 driver and the xroad-addon-hwtokens package, the new host needs the module, driver and token access configured before the Security Server can sign. A host that starts without the token loads no usable keys, and message exchange fails. Confirm the vendor driver version, the token slot and PIN handling, and the key labels on the new host, and test signing before cutover. Plan how the HSM access path changes if the new host sits in a different network zone.

Admin role and LDAP mapping drift

Admin users authenticate through PAM, and LDAP groups map to the five X-Road roles through SSSD. A rebuilt host with an incomplete SSSD configuration, or a directory group renamed since the original setup, can leave administrators without access or give them roles they should not hold. Export the current role mapping, rebuild the directory binding on the new host, and test each role with a named account. Verify that the Security Officer and System Administrator separation still holds after cutover.

User guide

How to move a Security Server without breaking member connections

The core rule for moving a Security Server is that the old host keeps serving member traffic until the new one has proven it can do the same job. Build the new server alongside the old one, register it and synchronize its configuration, and only then change which host answers for your organization. Cutover is a sequence of checks, not a single event, and the old host is the rollback path until the last check passes. Plan the new host with the same operating system family, database and network reachability as the current server, so the only variable under test is the host itself. Confirm with your NIIS-compatible vendor or integrator which X-Road 7 version the new host will run (the supported versions are 7.8.3, 7.7.4 and 7.6.5), and make sure the new host runs that same version, not a newer one, before you start.

Member and provider counterparts need notice before the switchover, because their own configurations and firewall rules may reference your server's address, and some may need to re-check trust or connectivity. Agree a change window with each counterpart, name a contact on each side who can confirm success or call a stop, and agree in writing what triggers a rollback. Confirm the network path for TCP 5500 for message exchange and 5577 for OCSP from external networks, and TCP 4000 for the admin UI and 8080 or 8443 for information system access from internal networks, on both old and new hosts, so traffic can move without a firewall change mid-window. Ask each counterpart whether they cache OCSP responses or endpoint details, because that affects how long a switch takes to be visible to them.

Before you decommission the old host, run end-to-end test messages from your side to a test service provider and from a counterpart to your services, and check the message logs and monitoring on both sides. Confirm that services, access rights and the security server's registration match what was in place before. Re-apply the security hardening guidance (version 0.6, 09.01.2025) on the new host, covering account lockout, password policy, key-only SSH, the allowed-hostnames setting and HTTPS publication of global configuration, because a rebuilt host does not inherit those settings. Keep the old host powered off but intact for an agreed period, and only remove it once counterparts confirm and your rollback window has closed. Confirm the retention period and the decommissioning steps with your own security and audit team.

Recurring costs after a migration

This table separates the costs that appear once during migration from the costs that continue after the new Security Server and PostgreSQL database are live. Read the recurring column as the baseline to ask a partner or your own team to price, since the quote should show who pays for each line and what changes it. The main takeaway is that the software license is not the largest recurring item; hosting, trust service fees, patching and staff time are what you carry every year.

Cost componentRecurring or one-timeWhat drives it and what to ask for in a quote
Hosting for the new Security ServerRecurringCompute and disk for the host on your cloud, data center or air-gapped network. Ask for the sizing basis, which must meet the minimum of 3 GB RAM (4 GB with monitoring add-ons) and 3 GB free disk.
PostgreSQL database (local or managed)RecurringA managed service such as AWS RDS or Azure Database for PostgreSQL bills by instance, storage, backups and failover. Ask whether backups, patching windows and network paths between the server and database are in scope.
HSM operationRecurringHardware or service fees, maintenance contracts, and the staff time to manage keys on PKCS#11 devices. Confirm whether the HSM is already in your estate and whether key ceremonies and backups are priced separately.
Certificates and time-stamping from trust service providersRecurringMember signing and authentication certificates, plus fees set by your trust service provider. Ask the provider for its renewal terms, the certificate validity period and any per-certificate or per-service charge.
Operating system patching (Ubuntu or RHEL)RecurringStaff or partner hours for monthly patch cycles and change control. Confirm which Ubuntu 22.04 or 24.04 LTS, or RHEL 8 or 9, support terms apply to your OS subscription.
X-Road release upkeep (7.8.3, 7.7.4, 7.6.5)RecurringTesting and applying releases on a supported version line, including upgrades to a later 7.x release. Ask how the partner tests member connections before each upgrade and who owns rollback.
Internal skills and on-call coverageRecurringSalaried time for administrators, security officers and integration owners. Ask what knowledge transfer the migration includes and which roles still depend on the partner after go-live.
Migration project workOne-timePlanning, cutover, parallel running and decommissioning of point-to-point links. Ask for the cutover plan, rollback steps and a fixed or capped scope before work starts.

How the migration differs by starting point

Moving a Security Server to new hardware or a new virtual machine keeps the same member identity, but the server's keys, certificates and network path all have to survive the move. The main risk is that the member's Security Server stops answering on the ports other members and the Central Server expect, or that its signing keys are not carried over in a usable form. Confirm the target host meets the documented platform and resource minimums before cutover, and plan the change window around how the Security Server is registered in the ecosystem.

  • Key and certificate continuity: Confirm where the signing and authentication keys sit, including any keys held in a hardware security module through PKCS#11, and how they will be presented on the new host.
  • Network ports: Check that TCP 5500 and 5577 are reachable from external networks, and that TCP 4000 and the information system access ports are open only to the internal networks that need them.
  • Resource baseline: Verify the target meets the minimum RAM and free disk space in the installation guide, with extra RAM if monitoring add-ons are enabled.
  • Admin access: Confirm the admin accounts, roles and any LDAP or PAM integration work on the new host before the old one is switched off.

Before cutover, confirm with your Central Server operator and the ecosystem governance body what registration or configuration update is required for the new host.

What the client must provide before a migration starts

The first thing a migration needs from the client is a complete picture of what exists today. Provide the current Security Server configuration and a recent, tested backup of it, along with the backup of the PostgreSQL database that holds the Security Server state. Confirm that a restore has been rehearsed on a separate host, because a backup that has never been restored is not yet a rollback plan. Also provide an inventory of every point-to-point integration in scope, with the endpoint, the protocol, the certificates it uses and the systems that call it. Without that list, the team cannot tell which member connections will break at cutover and which will simply keep working.

Next, the client must grant the access and approve the windows that the work depends on. This means SSH and sudo access to the current and target hosts, network paths that allow the required Security Server ports (TCP 5500 and 5577 from external networks, TCP 4000 and 8080 or 8443 from internal networks), and database credentials with rights to dump, restore and reconfigure the PostgreSQL instance, whether it is local or a managed service. Ask for a maintenance window that covers the cutover and the rollback, and confirm with the database owner whether that window fits their backup and change calendar. Confirm the target operating system and PostgreSQL versions against the official installation guide before the plan is written, since supported combinations change between X-Road releases.

Two groups of people must be named before work starts. The first is the list of member and service owners who depend on each connection, with a contact who can confirm a successful test call and approve a rollback. The second is the HSM and certificate owner, who must provide details of any PKCS#11 token used through the xroad-addon-hwtokens package, the key labels, the certificates in use and their expiry dates. Finally, name one decision maker who holds the go or no-go authority for cutover and who is available during the window. Agree the rollback trigger in writing with that person before the window opens, so that a failed test is a scheduled decision, not an argument at 2 a.m.

Questions buyers ask about X-Road migration

How much does an X-Road migration cost?

The cost depends on how many integrations move, how many Security Servers and hosts are involved, and how much of the work is testing against member systems. X-Road itself is MIT licensed, so the spend is services, infrastructure and staff time, not software licenses. Each cost is one-time for the migration, but hosting, certificates, time-stamping and support recur after cutover. Ask for a quote that lists integrations in scope, each Security Server and host change, database work, test environments, cutover windows and retest effort as separate lines. DeployOpen does not publish a price list, and a quote follows from that written scope.

How long does an X-Road migration take?

The schedule is set by the number of integrations, the number of member organizations that must coordinate changes, and how long test and approval cycles take on their side. Moving a Security Server to a new host or a new operating system release adds a separate change window for each server. A remote PostgreSQL database adds database preparation and verification before the server change. No fixed duration applies to every environment, so ask for a timeline built from the written scope, with milestones for testing, each cutover and rollback checks.

Can our own team run an X-Road migration without a partner?

Yes, many teams do this work in house, especially when they already run Security Servers and know their integrations well. The skills needed include Linux administration on Ubuntu or RHEL, PostgreSQL administration, certificate and key handling, firewall rules for the Security Server ports, and coordination with each member's integration owners. The main risk is capacity: cutovers usually need staff available outside normal hours and a tested rollback. A partner is most useful when the team lacks spare capacity or has not moved an X-Road server before.

What do we need to provide for an X-Road migration?

The work needs access and decisions from your side before any change is made. Expect to provide:

  • Inventory of current point-to-point integrations, their endpoints, message formats and owners
  • Access to the current Security Servers, hosts, database and the target infrastructure
  • Approved change windows and a named contact at each member organization that must test
  • Certificates, HSM access and key ceremonies that your trust service provider or governance body requires
  • Test environments that mirror production closely enough to prove the new path works
Will member connections drop during an X-Road cutover?

They can, if a Security Server is replaced or its database is moved without a tested sequence. X-Road Security Servers exchange messages on TCP 5500 and answer OCSP checks on TCP 5577 from external networks, so a new host must accept those ports and present the same trusted identity before traffic moves. The safe approach is to stand up the new server, verify it against test members, switch the DNS or load balancer target in a planned window and keep the old server ready for rollback. Confirm the exact sequence and rollback steps with your own members before the window opens.

Does the X-Road 7 support timeline affect a migration plan?

Yes. The current release is 7.8.3, and the supported versions are 7.8.3, 7.7.4 and 7.6.5. NIIS released 7.8.0 in early February 2026 as the last new-feature release of X-Road 7, and it intends to keep patching X-Road 7 beyond 2026, but the length of that period has not been decided. X-Road 8 is in beta as 8.0.0 Beta 2, with production scheduled for December 2026. Plan the migration onto a supported 7.x release now, and ask the vendor or NIIS for the current maintenance commitment before scheduling an X-Road 8 move.

Which Linux and database versions does an X-Road Security Server need?

The Security Server is supported on Ubuntu Server 22.04 and 24.04 LTS on x86-64 and on Red Hat Enterprise Linux 8 and 9. It needs at least 3 GB RAM (4 GB with monitoring add-ons) and 3 GB free disk space. It requires PostgreSQL, either local or remote, and remote options include managed services such as AWS RDS and Azure Database for PostgreSQL. Confirm the exact PostgreSQL version and network path to the database against the installation guide for your release before you build the target host.

What is the biggest risk in moving an X-Road Security Server?

The biggest risk is losing the trust material or configuration that identifies the member to other members. Keys, certificates and the Security Server configuration must move intact, and any HSM-backed keys need the PKCS#11 setup verified on the new host. Hostname and port changes can also break connections that other members have configured. Test each change with a non-production member first, record the configuration before and after, and keep the previous server available until every integration has passed its checks.

How DeployOpen scopes and delivers X-Road migrations

DeployOpen is a Chainscore Labs company that plans, implements, integrates and documents self-hosted open-source platforms inside the client's own infrastructure, including X-Road migrations. Every engagement starts with a written scope that names the integrations being moved, the Security Servers and Central Server involved, the target hosts and operating system releases, and whether the PostgreSQL database moves to a remote service. The scope also states what stays out, such as member onboarding or changes to the trust governance model. Most engagements are fixed-scope, so deliverables, the cutover approach and the acceptance criteria are agreed in writing before any work begins. A quote follows from that written scope, which is why the reader should expect the scope document to list every member connection that must keep working during the change.

Delivery is built around written runbooks. For each change, DeployOpen prepares a step-by-step runbook covering the pre-change checks, the backup of the Security Server configuration and keys, the order of host or database changes, the verification steps for message exchange on the external port and OCSP responses, and the rollback path. Before production, the runbook is rehearsed on a non-production copy of the environment, and the rehearsal results feed back into the runbook. Handover covers the final runbook, the verification evidence from each step, the configuration and key inventory, and a walkthrough with the client's operations team. Confirm with your own team which change windows, approvals and member notifications apply to your environment before the rehearsal is scheduled.

Ongoing support is optional and sold as a retainer, separate from the fixed-scope migration. A retainer can cover patching to supported X-Road 7 releases, operational checks after cutover, and help with later changes to the host or database. Ask for the retainer's written scope, response expectations and what is excluded before you sign. Each scope should also say who holds the administrator credentials, how they are recorded and who approves production changes, because those answers determine how much of the runbook your own team must be able to run without DeployOpen present.

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.