X-Road upgrade rollback starts before the upgrade window opens
Rollback for an X-Road upgrade is a set of layered options that you prepare before the upgrade window opens. Each layer depends on the target release, so confirm its exact mechanics in that release's notes and with NIIS before you rely on it. Start by fixing the target path. The current X-Road release is 7.8.3, and 7.7.4 and 7.6.5 are also supported versions. 7.8.0 is the last new-feature release of X-Road 7, and 7.8.x is the version every X-Road 8 upgrade starts from, so a rollback plan for a 7.6 or 7.7 Security Server should assume 7.8 as the landing point.
X-Road 8.0.0 Beta 2 is available for testing, and the production release is scheduled for December 2026. Treat that date as a planning input to confirm with NIIS before you build a rollback plan around it. Beta software shows how your configuration, database and certificates behave in a test environment, but a test run does not stand in for a rollback path on production hosts. Decide early which path the window covers: a move to 7.8.x only, or a move to 7.8.x now with an X-Road 8 migration later. Each path has its own snapshot, backup and database restore steps, and a rollback that works for one may not work for the other.
Before the window opens, check the layers you will rely on, in the order you would use them. Confirm that the host snapshot can be taken and restored on your virtualization platform, that the Security Server backup can be produced and stored outside the host, and that the PostgreSQL database it depends on, whether local or a managed service such as AWS RDS or Azure Database for PostgreSQL, can be restored to a point that matches the backup. Then write down who makes the rollback decision, the time by which it must be made, and the symptoms that trigger it, so the on-call team is not deciding under pressure. Test at least one restore on a non-production Security Server before the window, because an untested backup is only an assumption about recovery.
Which X-Road release changes narrow or widen your rollback options
This table compares the X-Road release facts that affect how far back you can roll a failed upgrade. Read each row against your current version and the version you plan to reach, because the support status of a fallback release decides whether it is a sound target. The main takeaway is that the 7.x releases are supported today, but their maintenance end date is open, and breaking changes must be checked for each version pair.
| Change | Impact on rollback | Action needed |
|---|---|---|
| Current release 7.8.3, supported 7.6.5, 7.7.4 and 7.8.3 | A rollback target on the supported list has published support. Anything outside that list does not. | Record the exact version on each Security Server before you start the upgrade. |
| 7.8.0 is the last new-feature 7.x release | Rolling back below 7.8.0 returns you to an older feature line and removes 7.8 features from the server. | Choose 7.8.x as the fallback where your configuration depends on 7.8 features. |
| NIIS intends to maintain 7.x with fixes and security patches beyond 2026 | A 7.x fallback stays patched for now, but the maintenance length is undecided, so a long rollback window may outlast support. | Ask NIIS for the current maintenance position before you set a rollback window. |
| X-Road 8.0.0 Beta 2 is available for testing, with production scheduled for December 2026 | The beta is for testing only. Moving a production Security Server onto it removes the supported 7.x fallback path. | Test the upgrade and rollback in a non-production environment and confirm the production schedule with NIIS. |
| X-Road 8 is positioned as a data space solution with improved monitoring and cloud compatibility | This positioning describes the target, not the rollback path. New monitoring or cloud components may not be covered by older backups. | List any components the target release adds and confirm how each one is restored. |
| Breaking changes and deprecations between your current and target release | Removed or changed settings can make a restore to the older version fail or behave differently. | Read the release notes for your exact version pair and mark each breaking change that touches your rollback steps. |
Backups that make X-Road upgrade rollback possible
Each card covers one layer of rollback, and no single layer restores the whole Security Server. Host snapshots, the wizard's snapshot, full backups, database copies, HSM token state and a staging rehearsal overlap only in part, so a gap in one layer can leave another unable to restore the system.
Host snapshots before the upgrade
A host snapshot is the fastest way back to the pre-upgrade state, but only if its timing is right. Ask your hypervisor or cloud provider whether snapshots of a running Security Server are crash-consistent or application-consistent, and whether they include memory state. A snapshot taken while PostgreSQL is writing can restore a database that does not start cleanly, so stop services or quiesce the database before capture. Confirm that a restored host keeps its network identity and its certificates and keys. Keep a copy outside the hypervisor's snapshot chain.
The wizard's configuration snapshot
The upgrade wizard keeps its own configuration snapshot, separate from any host or database copy you make. Before you run it, confirm in the 7.8 to 8 wizard documentation what the snapshot contains, where it is written on the host, and how long it is kept. Do not assume it covers signing and authentication keys or HSM state. Those may sit with the key store or the token, so check whether a restore path exists for them. Copy the snapshot off the host before the migration step starts, because a failed run is the case where you need it most. Test the restore on staging first.
Full Security Server backups
A full backup is the copy that lets you rebuild a Security Server on a clean host, so it must hold more than the database. Confirm which configuration, keys and certificates it includes, and whether it stores database contents or only a reference to them. Keep copies off the Security Server host, under separate access controls, because a backup on the same host fails with the host. Encrypt backups at rest and restrict who can read them, since they may hold keys and credentials. Record the X-Road version and OS release in the backup label so a restore targets a compatible build.
PostgreSQL backup and restore tests
The Security Server requires PostgreSQL, whether local or remote, and managed services such as AWS RDS and Azure Database for PostgreSQL are supported options. A managed service adds its own snapshots and point-in-time restore, but a restore into a new instance does not reconnect the Security Server on its own, so confirm the connection settings and credentials afterward. For a local database, use backup tooling you have restored from at least once. Check database version compatibility against the Security Server release you are rolling back to, and time each restore against your rollback window.
Installation guideHSM and PKCS#11 token state
X-Road supports hardware security modules through PKCS#11 drivers using the xroad-addon-hwtokens package, with RSA and EC keys. Restoring the host does not restore keys held on the token, so the server can point at key handles that no longer match its configuration. Before the upgrade, record the token label, key labels and key type for each RSA and EC key, and confirm the PKCS#11 driver version the target release expects. Ask your HSM vendor whether keys can be exported or backed up, and whether your key ceremony policy permits it. Rehearse a restore on a non-production token where one is available.
Installation guideStaging rehearsal and environment inventory
A staging rehearsal proves the rollback path on a copy of your production setup before you need it. Build the inventory first: OS version on each host, RAM and free disk against the Security Server minimums, the ports the service uses, and the LDAP group-to-role mappings. The ports to check are TCP 5500 and 5577 from external networks, and TCP 4000 with 8080 or 8443 from internal networks. Size staging hosts at or above production, or the rehearsal will not show whether the restore fits. Rehearse the full path, including an admin login as each mapped role, and time each step.
Installation guideSequencing X-Road upgrade rollback points step by step
This sequence places a checkpoint at each stage of an X-Road Security Server upgrade, so every change has a verified backup, a written decision point and a tested way back. Each step leaves evidence the team reviews before moving on, and the final record shows whether the upgrade completed or was rolled back.
Confirm target release and prerequisites
Confirm the target release against the supported list at X-Road releases, which currently includes 7.8.3, 7.7.4 and 7.6.5, and read its release notes for breaking changes and the exact scope of the configuration snapshot the wizard takes. Check that each host runs Ubuntu Server 22.04 or 24.04 LTS on x86-64, or Red Hat Enterprise Linux 8 or 9, with at least 3 GB RAM (4 GB with monitoring add-ons) and 3 GB free disk. Record the version, OS and free resources in the change ticket. Done when the release notes review is signed off and every host passes the check.
Take and restore-test every backup
Take host snapshots, configuration backups, full Security Server backups and database backups for every node in scope, and store copies outside the host being upgraded. Restore each set into a staging environment that matches production, including the PostgreSQL database, which the Security Server requires whether it runs locally or on a remote or managed service. The people who will run the rollback perform the restore, with the backup owner present. Done when the staging server starts, loads its configuration, and the restored data matches the source. File the restore log with the change ticket.
Rehearse the upgrade and rollback
Run the full upgrade and the full rollback in staging using the same steps, wizard options and sequence planned for production. Record each deviation from the release notes, each command that failed and the fix applied. The change owner then records a go or no-go decision in writing, listing the conditions that must hold before production starts, such as a verified backup set and an agreed maintenance window. Done when the rehearsal log shows a complete rollback and the decision record is signed by the change owner and the security lead.
Upgrade the first Security Server
Start production with one Security Server inside the agreed window. Freeze configuration changes on the other nodes, confirm the fresh backup set is complete, and then run the upgrade exactly as rehearsed. If the installation is clustered, follow the clustered upgrade procedure for node order before starting. Keep the wizard output, package versions and any error messages in the change log. If the upgrade fails midway, stop and move to the rollback step before attempting any retry. Done when the server reports the target version and its services are running.
Verify ports, exchange and admin access
Check that the upgraded server accepts message exchange on TCP 5500 and OCSP on 5577 from external networks, and that the admin UI answers on TCP 4000 and information system access works on 8080 or 8443 from internal networks. Run a test service call between a consumer and a provider, and confirm the exchange appears in the logs your team uses. Note any port that fails along with the firewall rule that governs it. Done when every port check and the test exchange pass and the results are saved to the change ticket.
Apply the pre-agreed pass or fail gate
Apply the pass or fail criteria and the time limit for reaching a decision that were fixed in the rehearsal record, so no one changes them during the window. The gate covers the port checks, the test exchange, admin login and any alerts from monitoring. If every criterion passes within the limit, the upgrade proceeds to the remaining nodes. If any criterion fails or the limit expires, the owner starts rollback unless the ticket already records a verified fix that can be tested within the limit. Done when the gate result is recorded as pass or fail with a timestamp.
Restore in reverse order and verify
If the gate fails, stop further changes and undo the upgrade in reverse order. First confirm the release notes guidance on package and database compatibility, then restore the configuration and database from the backup set taken earlier, return the packages to their prior versions, and use the host snapshot only if the earlier restores do not bring the service back. Re-run the port checks and test exchange against the restored node, and compare the results with the pre-upgrade baseline. Done when the node passes the same checks as the baseline and the change owner confirms service is back.
Record the incident and plan the retry
Write an incident record covering the timeline, the gate result, the commands run, the backup set used and the root cause as far as it is known. Decide whether to roll forward with a fix or to retry, and schedule a retry only after the staging rehearsal reproduces the failure and the fix passes it. Assign an owner to each follow-up item and check the release notes against the target version before the next attempt. Done when the incident record and the retry plan are filed with the change ticket.
How the rollback decision path runs from backup to roll forward
The path starts with backups verified in staging, then runs the upgrade and the post-upgrade checks on 5500, 5577 and 4000, plus the admin UI. A pass goes straight to closure. A fail requires a written decision against the criteria agreed before the upgrade. If those criteria are not met, the team rolls back by restoring the host snapshot, the wizard's configuration snapshot, or a full backup with a database restore. If they are met, the team rolls forward with a fix. Confirm each rollback option's scope in the release notes before the change window opens.
Decision path from verified backups through checks to rollback or roll forward.
Choosing a rollback option by deployment shape
A single Security Server has one host, one PostgreSQL database (local or remote) and one set of keys, so rollback means returning that machine and its data to a known state. Host snapshots and full backups carry most of the weight, and the upgrade wizard's configuration snapshot covers the configuration layer.
- Host snapshot: Take a snapshot of the virtual machine or disk before the upgrade starts, and confirm that it restores cleanly with the network identity intact.
- Configuration snapshot: Confirm where the wizard writes its configuration snapshot, and copy it off the host before the upgrade begins so it survives loss of the host disk.
- Full Security Server backup: Confirm that the backup includes configuration and keys, and test a restore on a separate host before the production window.
- Database restore: If the database runs remotely, confirm who owns its backup schedule and whether its point in time matches the host snapshot.
- HSM state: If keys sit in an HSM accessed through PKCS#11, confirm the token still holds the keys the restored host expects.
Confirm the full restore order on a test host, because a host snapshot paired with a database from a different point in time can leave the two layers out of step.
In a cluster, the load balancer decides which member receives each request. A rollback that restores only one node can send traffic to a member running a different state, so the priorities are keeping routing correct throughout and stopping a bad configuration from spreading to the other nodes.
- Load balancer routing: Record the pool membership and health check settings before changing anything, and decide which nodes leave rotation during the rollback.
- Replication state: Confirm whether configuration replication is paused before you roll back the primary, so a restored primary does not overwrite healthy secondaries.
- Primary first: Restore the node that holds the configuration you intend to keep, and verify it before any secondary returns to the pool.
- Secondary nodes: Decide for each node whether to restore from its own snapshot or re-synchronize from the primary, and confirm every node reports the same X-Road version afterward.
- Shared database: If the cluster shares a database, a database restore affects every node at once, so plan that step as a separate decision.
Confirm that the load balancer marks each member healthy and on the agreed version before you reopen traffic to the full pool.
The Central Server holds the ecosystem's global configuration and signing state, and its rollback depends on HSM and signer state that a generic host restore may not cover. Follow the Central Server upgrade guide for the rollback sequence, and use the points below as questions to put to that guide and to your operator team.
- Signer and HSM state: Confirm how the signing keys are held, whether in an HSM accessed through PKCS#11 or in software, and what the guide says about restoring them.
- Database and configuration: Confirm which database snapshot matches the pre-upgrade configuration, and whether any changes were accepted during the upgrade window.
- Matched snapshots: Confirm that the host snapshot and database snapshot are taken at the same point in time, so the two layers agree.
- Ecosystem notification: Confirm who must be told if the Central Server is rolled back, and what member organizations will see during the outage.
- Rollback criteria: Agree in advance with your operator team which failures justify rollback and which you will fix forward.
Confirm the signer and HSM steps with your HSM administrator and the HSM vendor's documentation before the change window opens.
When rolling forward is safer than a restore
Agree the roll-forward criteria in writing before the upgrade starts, with the change owner, the Security Server administrators and the owners of the services that depend on the exchange. During a failed run, teams often restore by default because it feels reversible, but a restore is only safe when the state it reinstates is complete. Put the criteria in the change plan as a short decision table: the fault types that may be fixed forward, the state changes that rule out a restore, the longest acceptable interruption and the person who makes the call. Record the decision deadline too, so the team does not keep attempting fixes after the agreed window has closed. Check the criteria against the release notes for the target version before the window opens.
An isolated fault is the strongest case for rolling forward. If the failure traces to one component, such as a service that will not start after the package upgrade, a configuration key that the new version reads differently or a single failing connector, a targeted patch or configuration change may clear it without touching data. Confirm with the release notes and NIIS guidance whether a known fix exists for the exact symptom, and reproduce the fault on a staging Security Server first. A fault that spreads across the database, the signer or the trust anchors is a different case, because each fix can expose the next. Also list what has changed since the last backup: new messages in the message log, newly imported authentication or signing certificates, changed member or service configuration and any HSM or signer state. A database restore brings back the older version of each item, so anything written after the backup is lost or conflicts with what the ecosystem already holds.
Measure the cost of the rollback window before choosing a restore. A restore is never free for the services that depend on the exchange. Consumers and providers that call through the Security Server will see failures for as long as it is down or running the restored state, and some may have timeouts, retry rules or batch schedules that amplify the impact. List each dependent service, then confirm with its owner how long it can tolerate interruption and whether a second node in a cluster or a load balancer can carry traffic during the fix. Also confirm whether the ecosystem's operators need notice before a version change or a restore. If a healthy node can keep serving, fixing forward on one node may cost the dependent services far less than a full restore. Write these answers into the criteria now so they are settled when an incident starts.
What makes X-Road rollback planning take longer
This table compares the factors that expand a rollback plan for an X-Road Security Server upgrade and shows how each one changes the work. Read each row as a question to answer about your environment before you fix a window or a rollback method. The main takeaway is that rollback effort grows with the number of servers, the state held outside the host, and the number of systems that must be paused together.
| Driver | Effect on effort | What to confirm |
|---|---|---|
| Number of Security Servers and clusters | Each server needs its own snapshot, backup or restore path. A cluster adds replication state and load balancer routing that must be reversed in step. | How many servers and clusters are in scope, and whether each member can roll back alone or must roll back with its peers. |
| Database size and location | A local database is covered by a host snapshot. Remote or managed PostgreSQL needs a separate restore path and its own timing. | Whether PostgreSQL is local, remote or a managed service such as AWS RDS or Azure Database for PostgreSQL, and who can restore it. |
| Number of HSM tokens and key types | Keys on PKCS#11 tokens (RSA and EC) are not restored by a host snapshot, so token state and vendor restore steps must be part of the plan. | How many tokens are in use, which key types each holds, and whether the vendor procedure supports restoring or re-linking each key. |
| Monitoring add-ons | Add-ons raise the memory floor from 3 GB to 4 GB, and their configuration and data must be included in the rollback point. | Whether monitoring add-ons are installed, and whether their settings and data are covered by the snapshot or backup. |
| LDAP and SSSD role mapping | Admin access depends on PAM and SSSD mapping LDAP groups to the five X-Road roles, so a restored host can lock out administrators if directory state has changed. | Which LDAP groups map to which roles, and whether a local break-glass administrator exists before the upgrade starts. |
| Number of connected information systems and their change windows | Each system that calls the Security Server must be paused or verified before and after a rollback, and each team may have its own change calendar. | How many systems depend on the server, who owns each one, and which change windows each owner can accept. |
| Length of the maintenance window | A rollback must fit inside the same window as the upgrade, including restore and verification steps. A short window pushes teams toward rolling forward. | The approved window, what the change board counts as a rollback, and the latest point at which a rollback decision is still possible. |
| Staging capacity for a full rehearsal | Without a staging copy that matches production in database size, OS packages and token setup, rollback steps stay untested and the time estimate is a guess. | Whether staging can hold a copy of the database, run the same OS and package versions, and use a similar token setup for a full restore test. |
How much does X-Road upgrade rollback planning cost and take?
What drives the cost of X-Road rollback planning and who is paid for each part?
The biggest cost driver is how many components the rollback must cover. Each Security Server and Central Server in scope needs its own plan for host snapshots, the wizard's configuration snapshot, full Security Server backups and database restores, so the number of servers, clusters and databases matters most. Other drivers include whether the database is local or a managed service such as AWS RDS or Azure Database for PostgreSQL, whether hardware security modules hold signing keys that the restore path must account for, and how many rehearsals you want before the production window. Your internal staff are paid for access, change windows and sign-off. A partner, if you use one, is paid for the analysis, the written runbook, rehearsal support and retesting. Ask the quote to split these lines, name every server and database in scope, and state who holds the backup media.
Is X-Road rollback planning a one-time cost or does it recur?
Rollback planning is mostly one-time work for each environment, but parts of it recur with every upgrade. The first plan produces the runbook, the backup procedure and the decision points for choosing rollback or roll-forward, and those become the template for later work. Each new upgrade, such as a move between 7.x releases or the move to X-Road 8, needs the plan reviewed against that release's notes, because the steps can change between releases. Backups themselves are a recurring operating task, and they should be restore-tested on a schedule the client owns. If you want a partner to keep the plan current across future upgrades, that is a separate ongoing arrangement, and DeployOpen offers retainers for ongoing support. Ask whether the quote covers one upgrade or several, and who maintains the runbook afterward.
How long does X-Road rollback planning take, and what makes it longer?
No standard duration applies to this work, so confirm a timeline in the written scope rather than relying on a general estimate. Duration depends mainly on the number of Security Servers and clusters, the database layout, and how many rollback paths you want covered: a host snapshot only, the wizard's configuration snapshot, or full backups with a database restore. Plans take longer when documentation is thin, when HSM or signer state needs extra checks, and when change windows allow only a few rehearsals. Two things shorten the work: a current inventory of hosts and installed versions, and a staging environment where restores can be tested before production. Ask the partner for the planned milestones, the number of rehearsal cycles included, and the date the finished runbook will be handed over.
What does the client team need to provide for an X-Road rollback plan?
Your team provides access, environment facts and the decisions only you can make. Expect to supply an inventory of Central Servers and Security Servers with installed versions, the operating system of each (Ubuntu Server 22.04 or 24.04 LTS, or Red Hat Enterprise Linux 8 or 9 for Security Servers), database locations and any hardware security module setup. You also need access to the hypervisor or cloud snapshot tools, a staging environment, backup storage the rollback can reach, and named owners for change approval and business sign-off. Security staff should confirm how admin accounts, SSH keys and the PAM and LDAP configuration are handled during a restore, so that controls are not reset without review. Agree with the partner which failure conditions trigger rollback and which trigger roll-forward, and who makes that call during the window. Put these items in the written scope so both sides know what each party delivers.
Can an internal team plan X-Road rollback without outside help?
Yes, an internal team can plan a rollback if it includes people who know Security Server installation, PostgreSQL administration and the upgrade procedure for the release in question. The work is documentation-heavy and depends more on rehearsal time than on specialist tooling. The main risks for an internal team are untested restores, backups that exist but cannot be restored, and one person holding all the knowledge. Before deciding, check three things: whether two people can run the same restore independently, whether the staging environment matches production closely enough to trust the result, and whether someone outside the upgrade team reviews the runbook. An outside partner adds an independent review, extra hands during rehearsals and a written deliverable on a fixed scope. DeployOpen typically delivers this work as fixed-scope engagements agreed in writing before work starts.
Should we wait for X-Road 8 production before upgrading and planning rollback?
Waiting is a business decision, and NIIS has not yet settled how long X-Road 7 maintenance will last, so plan for both paths. X-Road 7.8.0, released at the beginning of February 2026, is the last new-feature release of the 7.x line. NIIS intends to keep maintaining X-Road 7 with bug fixes and security patches beyond 2026, but the length of that period has not been decided. X-Road 8 is available for testing as 8.0.0 Beta 2, with its production release scheduled for December 2026. Rollback planning for your current upgrade still matters if you proceed now, because it protects the step you take now. Before committing to a date, ask NIIS and your ecosystem operator for their current support position in writing, and check it against your own migration plan. NIIS announcement of X-Road 7.8.0
How DeployOpen scopes and rehearses an X-Road upgrade rollback plan
DeployOpen plans the rollback for an X-Road upgrade before the upgrade starts, so each path back is known for every Security Server or Central Server being changed. The plan covers host snapshots, the upgrade wizard's configuration snapshot, full Security Server backups and database restores, and the point at which the team rolls forward instead. Engagements are fixed-scope, with the scope agreed in writing before work starts.
How we scope
- The written scope lists each X-Road component in the upgrade, including Security Servers, Central Servers and any clustered nodes.
- It names the rollback options per host, such as host snapshots, the wizard's configuration snapshot and full backups.
- Fixed-scope engagements are agreed in writing before work starts, and ongoing support is available as a retainer.
How we build
- We record the current versions, the PostgreSQL database layout and the HSM or token setup before any change is made.
- We rehearse each rollback path on a staging copy, then check restore steps against the change window.
- We document the decision point after which the team rolls forward, with the test that triggers it.
How we hand over
- Deliverables include the written rollback runbook, a restore checklist per host and the rehearsal record.
- Your operators run a supervised rollback drill, so each restore step is performed before a live change.
- Backup locations, access rights and the owner for each rollback decision are written into the handover pack.
How we support
- Retainers can cover upgrade-day support, patch review and retesting of the rollback path after each X-Road release.
- Confirm with the X-Road release notes which rollback options each target version supports before you commit to a path.
- Re-run the rollback rehearsal when your ecosystem moves to a new supported 7.x version or to X-Road 8.

