Upgrading an X-Road Security Server from 7.8 to X-Road 8

Plan a Security Server move from 7.8.x to X-Road 8 with the upgrade wizard, a tested backup set and a rollback point at every stage. Effort depends on your HSM, PostgreSQL, LDAP and cluster layout.

On this page

When to start an X-Road Security Server upgrade from 7.8 to X-Road 8

Every X-Road 8 upgrade starts from a 7.8.x Security Server, and X-Road 8 is still in beta: 8.0.0 Beta 2 is available for testing, and the production release is scheduled for December 2026. Confirm the current release status on the X-Road releases page before you set a cutover date, because that schedule is now a matter of weeks and may have moved. The current 7 line is 7.8.3, and 7.7.4 and 7.6.5 are also supported. If your Security Servers run 7.6 or 7.7, bring them to 7.8.x first so the upgrade wizard starts from the version every X-Road 8 path depends on.

This page covers the Security Server side of the move: the prerequisites the upgrade wizard checks, interactive and unattended modes, what the migration command-line tool moves, the OpenBao packages introduced for secrets, and how to resume after a failed run. Choose the mode before the change window opens. An unattended run needs every answer the wizard would otherwise ask for, so settle those inputs and test them on a non-production Security Server first. Also confirm who will hold the secrets the migration handles, because those values need a controlled path from the old host to the new one and should never travel through an unmanaged channel.

The following topics belong to sibling pages and are not repeated here: the 7.6 or 7.7 to 7.8 step, the Central Server upgrade, rolling upgrades of a clustered Security Server installation, rollback options before and after the upgrade, and how long X-Road 7 will be maintained. If your ecosystem includes a Central Server, read its upgrade page before you schedule Security Server work, because the order of changes affects what each server can reach during the window. Write a short plan that names the target version, the window, the owner of each Security Server and the point at which the team decides to roll back or roll forward.

What changes between a 7.8 Security Server and X-Road 8

This table compares the 7.8 Security Server with X-Road 8 across the areas that most often change an upgrade plan: product status, OpenBao secrets, migration tooling, operating systems, databases, HSM support and settings. Each row names the change, its likely impact and the check to make, and no row should be treated as final until it is confirmed against the 8.0 release notes and migration documentation for the exact build you are testing. Until the production build ships, treat most cells as items to confirm.

ChangeImpactAction needed
8.0 product statusThe 8.0.0 Beta 2 build is for testing, and production is scheduled for December 2026.Rehearse on a non-production copy and confirm the GA build before scheduling cutover.
OpenBao packagesX-Road 8 handles secrets through OpenBao, so the package set and service layout may differ from 7.8.List every package the tested 8.0 build installs and confirm which OpenBao components it requires.
Secrets handlingKeys, HSM token PINs and database credentials from 7.8 may need a different storage path in 8.x.Inventory all 7.8 secrets and confirm how the 8.0 build imports or re-creates each one.
Migration toolingThe wizard and migration CLI set what is moved, and their scope depends on the 8.0 build.Read the migration documentation for the exact build and record what it moves and what it leaves behind.
Target operating systemsThe 7.8 support list (Ubuntu 22.04 and 24.04, RHEL 8 and 9) may not carry over unchanged to 8.x.Confirm the 8.0 supported operating systems and plan a host rebuild if your OS is not listed.
PostgreSQL database7.8 requires PostgreSQL, local or remote, and 8.x database requirements must be confirmed.Confirm supported PostgreSQL versions and whether your managed service is supported for 8.0.
Removed or deprecated settingsSettings removed or deprecated in 8.0 may stop working or be ignored after migration.Export your 7.8 configuration and check each key against the 8.0 removed and deprecated list.

How the upgrade moves a Security Server from 7.8 to X-Road 8

The diagram starts with a baseline inventory of the existing 7.8 Security Server, then takes database and configuration backups, which become the restore point. A staging rehearsal on the same operating system runs the upgrade wizard first, whether interactive or unattended, and the production run should repeat the same steps. After the wizard, OpenBao and secrets setup must finish before the server is verified. Verification checks registration and message exchange. A failed check, or a no-go decision at the review gate, sends the server back to the backup restore point. Only a go decision leads to production cutover.

Upgrade phases with rollback paths to the backup restore point.

What to back up and inventory before the wizard runs

The upgrade depends on state that is easy to lose track of: database contents, token bindings, role mappings, network rules and host capacity. Record each item, check it on a staging copy, and keep the record with the change ticket so reviewers can compare it with the post-upgrade state.

Back up PostgreSQL and configuration

The Security Server requires PostgreSQL, whether the database runs locally or as a managed service such as AWS RDS or Azure Database for PostgreSQL. Take a full database backup and a copy of the configuration files, then restore both to a separate host and confirm the server starts before you rely on them. For managed databases, confirm who holds the backup and how a point-in-time restore is requested, because your rollback path depends on it. A backup you have not restored is unproven.

Installation guide

Inventory HSM and token state

Security Servers can use hardware security modules through PKCS#11 drivers, with the xroad-addon-hwtokens package and RSA or EC keys. Before the wizard runs, record which token holds each signing and authentication key, the token labels, and the driver version your HSM vendor supports on the target operating system. Confirm that the PKCS#11 driver and xroad-addon-hwtokens work together with 8.0 before you schedule the change. Keep PINs in your secrets system and out of the upgrade ticket, and test that each token still signs before and after the run.

Map roles and LDAP groups

The Security Server defines five roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Admin users authenticate through PAM, and LDAP integration through SSSD maps LDAP groups to these roles. Export the current group-to-role mapping, the PAM and SSSD configuration files, and the list of local admin accounts. On staging, log in with one account per role after the upgrade to prove each mapping still grants the expected access.

Security Server user guide

Verify firewall port rules

The Security Server accepts TCP 5500 for message exchange and TCP 5577 for OCSP from external networks. It serves the admin UI on TCP 4000 and information system access on TCP 8080 or 8443 from internal networks. Export the current rules for each interface, including the host firewall and any load balancer or cloud security group in front of the server. Confirm with your network team that the same rules apply after the upgrade, and that monitoring checks still reach the ports they use.

Check host OS and capacity

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. Plan for at least 3 GB of RAM, or 4 GB if monitoring add-ons run on the same host, and at least 3 GB of free disk space. Confirm that 8.0 supports your chosen operating system and version with NIIS release notes before you schedule the work. Leave headroom on disk for the backup copies you create during the run.

Rehearse on a staging copy

Build a staging Security Server from a copy of production configuration, database and token setup, using the same operating system and package versions. Run the wizard there first, including one interrupted run to test how it resumes after a failure. Compare the role mappings, firewall checks and token signing results with your inventory, and record every deviation. Fix each deviation in the runbook before production, because a staging copy only helps if it matches production in the areas you are testing.

How OpenBao changes secrets handling in X-Road 8

In X-Road 8, the Security Server keeps its secrets in OpenBao, so this upgrade changes where sensitive material is kept as well as the software. OpenBao is an open-source, community-driven secrets manager and a fork of Vault. It is published under the MPL-2.0 license and is a Sandbox project of the Open Source Security Foundation under Linux Foundation stewardship. It stores key/value secrets encrypted before they reach storage, and it also offers dynamic secrets, encryption as a service, and leases that are revoked automatically or in bulk. Read the OpenBao overview before you plan the upgrade, so you know what the platform will hold on your behalf.

The first decision is the storage backend, because it sets how OpenBao achieves high availability. OpenBao's documented backends include integrated storage (Raft), PostgreSQL, PebbleDB and in-memory, but only Raft and PostgreSQL are officially supported for high availability. In either case, one active node holds a lock in the data store while standby nodes forward or redirect requests. With Raft, the secrets replicate across OpenBao nodes that you run and back up, so you must size, patch and monitor that cluster yourself. With PostgreSQL, the state sits in a database your team may already operate, and the OpenBao storage documentation describes PostgreSQL as easier to operate safely than Raft. Since OpenBao 2.5.0, Raft standbys can serve read-only operations, and v2.7.0 extended that to PostgreSQL. Choose the backend with the team that will run it, and record the choice before you schedule the upgrade.

Two points need confirmation before you schedule the upgrade. First, confirm in the 8.0 release notes which OpenBao version the 8.0 packages install, because the newest releases on the OpenBao releases page may not be the version your package uses. Second, confirm with the X-Road documentation for the upgrade wizard exactly how it moves existing secrets, keys and tokens into OpenBao. Ask whether the move is automatic, what happens to hardware-backed keys, whether the original copies are removed or kept, and how a failed run resumes. Test this on a non-production Security Server first, and inventory every key and token type you rely on so you can check what arrives in OpenBao after the wizard finishes.

How to run the upgrade in order, with a rollback point at each stage

This sequence takes one Security Server from a 7.8.x baseline to X-Road 8 in an order where each stage ends with a restore point you have tested. The team rehearses the wizard on a staging copy, checks registration and message exchange on the upgraded node, and promotes to production only after those checks pass. Each step names what to restore and when to stop.

  1. Confirm the 7.8.x baseline

    Confirm that the node runs a 7.8.x Security Server before anything changes. Check the installed package versions, the operating system against the supported Ubuntu Server 22.04 or 24.04 LTS and Red Hat Enterprise Linux 8 or 9 platforms, and the patch level against the current 7.8.3 release notes. Rollback point: the unchanged node, so record its state now. Stop and move the node to 7.8.x first if it runs an earlier 7.x line. The step is done when the version record is saved with the change ticket.

  2. Back up the database and configuration

    Take a PostgreSQL dump of the Security Server database, whether it runs locally or on a managed service, and a configuration backup from the Security Server. Store both off the host, record checksums, and restore a copy into a scratch database to prove the dump is readable. Rollback point: this verified backup set, which lets you rebuild the node. Stop if any backup fails, is incomplete, or cannot be restored in the scratch test, because the upgrade should not begin without a tested restore point. The step is done when the backup set and the restore test result are logged.

  3. Record HSM and token state

    If the node uses hardware security modules through PKCS#11 drivers with the xroad-addon-hwtokens package, record each token, its slot, its key labels, and whether each key is RSA or EC. Confirm that the token can be logged into and that every signing and authentication key appears in the list. Save the driver package version and the module path. Rollback point: the backup set from the previous step, which still restores the node. Stop if a token is missing, a key label does not match the record, or nobody can confirm the PIN owner. The step is done when the inventory is stored with the backups.

  4. Run the wizard on the staging copy

    Restore the backups to an isolated staging host with the same operating system, database connection, token access, and network layout, then run the upgrade wizard interactively. Keep the staging copy away from production network paths so it cannot register or exchange live messages by accident. Compare what the wizard reports it has migrated, including keys, configuration, and secrets handling, against the token inventory. Rollback point: the production node, which stays untouched, plus the backup set. Stop, discard the staging result, and restore from backup if the wizard fails, a secret or token cannot be resolved, or migrated data does not match the inventory. The step is done when a clean wizard run is logged.

  5. Verify registration and message exchange

    Start the upgraded staging node and check the admin UI on TCP 4000 from the internal network. Confirm that TCP 5500 for message exchange and TCP 5577 for OCSP are reachable from the test peers, and agree with the Central Server operator how the staging identity is kept from becoming an active production registration. Confirm that registration is accepted, then send test requests through a test service you control and check the message log and OCSP responses. Rollback point: the staging copy, which can be rebuilt from the same backups. Stop and restore if registration is rejected, test messages fail, or OCSP responses are missing. The step is done when the test results and logs are saved.

  6. Promote the upgraded node to production

    Take a fresh database dump, configuration backup, and host snapshot immediately before cutover, and keep the production node available until its checks pass. Repeat the wizard run on production in the same order and with the same settings used on staging, using the token inventory as the reference. Repeat the verification checks on production and confirm message exchange before you call the cutover complete. If the deployment sits behind a load balancer or in a cluster, coordinate routing changes with the clustered upgrade guidance before cutover. Rollback point: the pre-cutover snapshot and backups. Stop and restore if any check fails, a token does not respond, or message exchange is degraded. The step is done when the production checks and a post-upgrade backup are recorded.

Interactive or unattended: which wizard mode fits your environment

In interactive mode, a person runs the wizard and answers each prompt, so every value is confirmed before the wizard applies it. This fits a first run, a single Security Server, or any server where the team has not yet seen the prompts for that build. The operator can stop at any prompt and check the server before going further.

  • Prompt-by-prompt confirmation: The operator reads each detected value and each choice before accepting it, which catches environment differences that a template would miss.
  • Session record: Capture the terminal session in the change ticket, since the answers are visible only while the session runs unless the wizard documentation says it keeps its own record of them.
  • Learning the prompts: The first run shows the team which inputs exist, which is the material needed to write a reusable input file later.
  • Human pace: Each answer depends on the operator, so two people can make different choices on two servers unless the checklist fixes them in advance.
  • Stopping at a prompt: If a value looks wrong, stopping early is safer than continuing and correcting the database or configuration afterward.

Before the first run, check the wizard documentation for the build in use to see which prompts appear, what it writes to its logs, and whether answers can be exported for reuse.

What makes a 7.8 to X-Road 8 upgrade take longer

This table lists the factors that most often lengthen a move from X-Road 7.8 Security Servers to X-Road 8, and how each one changes the work. Read each row as a question: if the driver applies to your estate, plan more preparation, testing and coordination, and confirm the items in the last column before you set a schedule. Clusters, signer setup and external dependencies are the first items to confirm.

DriverEffect on effortWhat to check
Number of Security Servers and clusteringEach server needs its own upgrade, checks and rollback point. A cluster adds replication and load balancer steps that must be sequenced.Count servers per member, whether they replicate configuration, and how the load balancer drains each node.
HSM and signer complexityEach token, key and signing path must be identified and verified before cutover.Confirm xroad-addon-hwtokens support for your HSM, key labels, PINs and network reachability from the upgraded host.
Local or managed PostgreSQLA local database sits on the host being changed. A managed service adds network paths, credentials and provider-side change windows.Confirm the database version is supported, connectivity and credentials, backup and restore access, and who approves provider changes.
LDAP and role mappingAdmin logins use PAM, so LDAP groups mapped to the five X-Road roles need checking role by role.List the LDAP groups in use, the X-Road roles they map to, and who needs access after the upgrade.
Custom firewall and hardening rulesRules for ports 5500, 5577, 4000, 8080 or 8443 need recreating and testing. Hardening settings need reapplying and rechecking.Export current rules, compare them with the documented ports, and rerun the hardening guide checks.
Monitoring add-onsThe installation guide lists 4 GB with add-ons, 3 GB without. Hosts at the minimum may need resizing first.Confirm add-ons in use, host memory and disk, and that metrics and alerts resume after cutover.
Connected information systems and servicesMore producers, consumers and service descriptions mean more endpoints to retest. Access rights and TLS settings for each system add checks.Count services and consuming systems, and list the access rights and TLS configurations each one depends on.
Staging environmentA staging server with a copy of the configuration allows a rehearsal and a tested rollback path. Without one, first runs happen on production.Confirm a staging host, database and HSM or test token are available, with a recent configuration copy.
Ecosystem coordination with other membersTiming depends on other members' supported versions and the operator's configuration updates. Waiting on others can stall the upgrade.Check the releases page for supported 7.x versions, then agree a window with connected members and the operator.

Questions buyers ask before hiring help for an X-Road upgrade

How long does an X-Road Security Server upgrade to X-Road 8 take?

No duration can be fixed until the environment is inventoried, and a written quote should state the timeline it assumes. The main drivers are the number of Security Servers, whether they run as a cluster, how many information systems and service descriptions each one publishes, the state of its PostgreSQL database, and whether hardware security modules or PKCS#11 tokens are in use. Each of these adds build, test and cutover work. The target release also matters: X-Road 8 Spaceship is at 8.0.0 Beta 2 for testing, and its production release is scheduled for December 2026, so the version you target changes the plan. Ask the quote to show the phases, the test environments each phase uses, the change windows each phase needs, and the items the timeline assumes the client completes first.

What does an X-Road upgrade cost, and which parts recur?

Cost follows the written scope. DeployOpen does not publish a price list, so a quote is built from the scope agreed in writing before work starts. One-time costs usually include inventory and planning, upgrade work on each Security Server, testing, cutover support and documentation. Recurring costs are ongoing support, upgrades and continuous testing, which DeployOpen offers as retainers, plus your own infrastructure. Check that infrastructure early: the Security Server installation guide lists at least 3 GB RAM (4 GB with monitoring add-ons) and 3 GB free disk space per server, and a managed PostgreSQL service carries its own charges. Ask the quote to list each Security Server and environment separately, to mark which items are fixed and which depend on server count, to name who pays for hardware security module work, and to state how a scope change is priced.

Can our own team upgrade X-Road without outside help?

Yes, a team with Linux administration, PostgreSQL and X-Road operations experience can run the upgrade alone, provided it has a staging copy of production and time to rehearse. The procedure is largely sequential, but the risk sits in the details: keys, tokens and configuration must carry over correctly, and someone must confirm message exchange with counterparties after cutover. Before deciding, check whether anyone has run an X-Road Security Server upgrade before, whether a staging environment can mirror production, whether staff are free during the change window, and who signs off the result. A partner can take defined pieces, such as the staging rehearsal, the cutover runbook, post-cutover verification and documentation, while your staff keep ownership of the production servers. Put that split in the written scope.

What does an X-Road upgrade need from our organization?

The upgrade needs access, named people, change windows and a sign-off owner, and each should be written into the scope before work starts.

  • Administrative access to each Security Server host, its PostgreSQL database, and any hardware security module or PKCS#11 token it uses.
  • Access to the information systems published through the Security Server, so service calls can be tested before and after cutover.
  • Named staff: a server operator, an owner for each published service, and a contact for configuration questions from your ecosystem operator.
  • Change windows long enough for a rehearsed cutover, plus a planned fallback window if the rehearsal shows a problem.
  • Written acceptance by the person accountable for the service, covering the test results and the decision to roll forward.

Confirm early who holds each item, because a delay in any one of them usually moves the whole cutover date.

Can we roll back an X-Road upgrade after cutover?

Possibly, but only if the rollback path was prepared and tested before cutover, so confirm it in the plan and do not assume it. Typical options are host-level snapshots and backups of the Security Server configuration and database, restored to a known state. Verify whether the upgrade wizard's own configuration snapshot is available for the release you target, using that release's documentation. After the new version has processed production messages, restoring an older state can lose messages, log entries or configuration changes made since cutover. For that reason, the plan should set a point after which the team rolls forward and fixes issues in place. Ask for a restore test of the database and host snapshot before the change window, a named decision owner, a time limit for rollback, and a procedure for reconciling messages exchanged during a failed period. The companion pages on rolling back a failed upgrade and on upgrading clustered Security Servers cover these options in more detail.

Should we wait for the December 2026 X-Road 8 release?

Waiting is a legitimate choice, and the answer depends on your ecosystem's support timeline and how much risk you accept from a beta. X-Road 7.8.0, released in early February 2026, is the last new-feature release of X-Road 7. NIIS intends to maintain X-Road 7 with bug fixes and security patches beyond 2026, but it has not decided how long that period will last. The current release is 7.8.3, and the supported versions are 7.8.3, 7.7.4 and 7.6.5. X-Road 8 Spaceship is at 8.0.0 Beta 2 for testing, with its production release scheduled for December 2026, so a beta is suitable for a test environment but not for production. Bring Security Servers to 7.8.x first, since that is the starting point for this upgrade. Then ask your ecosystem operator which version it will support and when, and check the X-Road releases page before committing to a date.

How DeployOpen scopes and delivers an X-Road Security Server upgrade

DeployOpen plans the move from 7.8 to X-Road 8 for Security Servers inside your own infrastructure, so the upgrade wizard runs against your hosts, database and secrets handling. Each engagement starts with a written scope that names the Security Servers, the prerequisites to check and the rollback approach agreed before work begins. Engagements are fixed-scope, with deliverables and timelines confirmed in writing first.

How we scope

  • We confirm each Security Server's current 7.8 state, host platform and PostgreSQL database before any upgrade step is planned.
  • The written scope lists which servers, prerequisites, secrets and migration checks are in and out of the engagement.
  • Timelines and fees follow the agreed scope, and ongoing support can be added as a retainer after handover.

How we build

  • We check prerequisites on a non-production Security Server first, including operating system support and free disk space.
  • We run the upgrade wizard in interactive or unattended mode, chosen to match the change window and your review process.
  • We record what the migration moves, including OpenBao packages and secrets handling, and resume failed runs from documented steps.

How we hand over

  • Documents include the prerequisite checklist, the migration record and the rollback decision for each server.
  • We document the configuration, secrets and OpenBao settings each Security Server now uses, for your operations team.
  • Handover covers the runbook, the verification results and the open items your team owns after cutover.

How we support

  • After handover, support covers questions about the upgraded Security Servers and fixes within the agreed scope.
  • Ongoing support, upgrades and continuous testing are available as retainers after the upgrade is complete.
  • Clustered or Central Server upgrades are scoped separately, with their own written plan and rollback steps.

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.