Redundant X-Road Security Servers without clustering: when registering more servers is enough
A provider or consumer that cannot afford a single Security Server outage has an option that does not require building a cluster. X-Road's built-in redundancy lets an organization register several Security Servers for the same member so that traffic can be spread across them and handled by the remaining servers if one fails. The mechanism is designed to work without an external cluster or shared configuration database, but its exact behavior is defined in the Security Server documentation for your version, and you should read it before relying on it. This design is most relevant to a provider whose services many consumers depend on, or to a consumer that calls a provider at high volume or cannot accept a gap in exchanges. The rest of this page tests whether that built-in mechanism is enough for your situation and where a cluster becomes the better choice.
Before you commit, confirm four things against the documentation for the release you run. The current supported releases are 7.8.3, 7.7.4 and 7.6.5, so check which one your deployment uses. First, confirm how X-Road chooses which registered server handles a request and how quickly traffic moves away from a server that stops answering. Second, establish what happens to a message in flight when its server fails, including whether the calling side retries and whether a retry is safe for that service. Third, confirm what each registered server needs of its own: a PostgreSQL database, local or remote, as set out in the Security Server installation guide, plus reachability on TCP 5500 for message exchange and TCP 5577 for OCSP from the external networks of the other parties. Fourth, confirm how changes such as access rights and service descriptions reach every registered server, because that determines how much manual work each node adds.
Treat the answer as a test with a written outcome rather than a design assumption. Build a small lab with two registered servers for the same member, stop one during a test exchange, and record what the consumer sees, how long traffic takes to shift, and whether any request was lost or processed twice. Repeat the test during a configuration change to see whether the nodes diverge. If the results fit the service's tolerance for interruption and retries, registering more servers may be enough for that service. If a request must never be lost or double-processed, or if temporary differences between nodes are unacceptable, the design needs the clustered approach covered in the sections that follow. Ask any implementation partner to show you these test results before you accept a design that depends on built-in failover.
How several registered Security Servers share one member's traffic
The consumer's information system sends each request to its own Security Server on the internal port 8080 or 8443. That Security Server selects one of the provider's Security Servers registered for the service and sends the message over the external port 5500. Each provider Security Server keeps its own PostgreSQL database and forwards the request to the provider's information system. Check that every node is registered under the same provider and that the external network allows 5500 to each one.
Two registered provider nodes, each with its own database, serving one service.
Which redundancy pattern fits your situation
Use this pattern when your organization publishes services as a provider and you want consumers to keep reaching them if one Security Server stops. Each additional Security Server is a separate node with its own configuration and database, registered for the same provider so that consumer Security Servers can choose between them. Failover depends on the consuming side noticing that a node is unreachable and sending the request elsewhere.
- Protects against: loss of one Security Server host or its operating system, provided the other registered nodes are reachable and the service is available through each of them.
- Does not protect against: failure of the information system behind the provider, because every node forwards requests to the same backend.
- Operating cost: each node needs its own patching, monitoring, backups and upgrade window, and your team must keep the configuration consistent across them.
- Request handling: a request in flight to a failed node may fail, so consuming applications should be prepared to retry.
Before you commit to this design, confirm with your architect how multiple registrations for one member are handled in your release, using the Security Server installation guide as the starting point.
Consumers call services through their own Security Server. Redundancy on this side protects the path from your information systems into the exchange, so the provider's service stays a single point of failure unless the provider has also planned for availability. This option suits organizations that consume many services and want their own access path to survive the loss of one node.
- Protects against: loss of the consumer's Security Server when your information systems can reach a second node.
- Requires: a change to application configuration or to the internal load balancer or DNS in front of the consumer nodes, which your application owners must test.
- Does not protect against: provider outages, failures of provider-side Security Servers or problems with the service itself.
- Operating cost: each consumer node is still a full Security Server to maintain, and you must check that both nodes receive the same trust settings and global configuration.
Ask the provider which of its services are published through more than one node, because consumer-side redundancy alone does not change the availability of the service you depend on.
A Security Server cluster has one primary and several secondary nodes that share identical keys and certificates, with configuration replicated to the secondaries. It fits when your team needs one identity presented behind one address, or when the systems calling it cannot be changed to point at several nodes. It is also the design with the most operating procedures, including how configuration changes reach the secondaries and how a node is promoted.
- Protects against: loss of a secondary node behind a balancer, while other members see one Security Server identity.
- Adds: replicated configuration, shared key material, a load balancer with health checks and a procedure your team must rehearse.
- Does not protect against: loss of configuration changes made while the primary is down, or message loss on a node that fails during a request.
- Operating cost: more components to license, monitor, secure and upgrade, and staff time for the cluster runbook.
Confirm the cluster procedure for your release with your architect and your security team before choosing this design, since key handling and configuration replication carry the most risk.
A single Security Server with tested backups and a rehearsed restore is a valid choice for some exchanges, mainly where the business accepts an outage window and the team can rebuild a node in a time it has measured. This option protects data and configuration. It does not keep the service available while a node is being rebuilt, so it fits services where short interruptions carry limited impact.
- Protects against: loss of configuration and database contents, provided backups are current and a restore has been carried out successfully in a test.
- Does not protect against: downtime during host failure, operating system patching or upgrades that require a restart.
- Key dependency: the PostgreSQL database and the signing and authentication keys must be recoverable, including the protection of backup copies.
- Planning input: the outage the service owners accept and the rebuild time measured in a rehearsal, which should be written into the service level expectations.
If the rehearsed rebuild time is longer than the outage your service owners accept, move to one of the redundant patterns above.
Configuration options and when each fits
This table compares the main configuration choices for registering several Security Servers without clustering, from how many servers a member registers to where each server keeps its database and keys. Read each row as a decision: the right column shows the situations where the option fits and what it adds to day-to-day operations.
| Option | What it involves | When it fits | What it adds to operations |
|---|---|---|---|
| Several registered Security Servers per member | Two or more Security Servers registered for the same provider or consumer, each with its own registration in the global configuration | Member needs failover and load sharing across its own servers and can keep each node's configuration and keys managed separately | Each node needs its own patching, backup, monitoring and certificate handling, and changes must be applied to every node |
| Separate database per Security Server | Each server runs its own local PostgreSQL instance holding its own server configuration | Nodes sit in separate failure domains and the team prefers no shared database dependency | Each database needs its own backups, upgrades and monitoring, and configuration must be kept consistent across nodes by process |
| Local PostgreSQL on the server host | PostgreSQL installed on the same host as the Security Server | Small deployments with a single operations team that already runs local PostgreSQL on hosts | Database patching and backups are tied to each host, which adds work as the number of nodes grows |
| Remote or managed PostgreSQL | A PostgreSQL service reached over the network, such as AWS RDS or Azure Database for PostgreSQL | Organizations that already run managed databases and want backups and patching handled by the provider within their own cloud accounts | Adds network paths, TLS and access rules to the database, and cost that recurs with the service; confirm which versions and features the provider offers before choosing |
| HSM-backed keys via PKCS#11 | Signing and authentication keys held in a hardware security module, accessed through the xroad-addon-hwtokens package | Regulated members whose key custody policy requires hardware protection for every registered node | Each node needs HSM connectivity and driver configuration, and HSM capacity, access and recovery must be tested for every server |
| LDAP-mapped admin roles | Admin users authenticated through PAM with SSSD, and LDAP groups mapped to the Security Server roles | Organizations that manage administrator access centrally and need role separation across the Security Officer, Registration Officer and System Administrator functions | Each node must be configured for the same directory and group mapping, and group membership changes need to be reviewed and tested |
| Local admin accounts only | Admin users defined on each Security Server without directory integration | Very small teams with few administrators and a documented process for account changes | Access reviews and offboarding must be repeated on every node, which increases the risk of stale accounts |
| Load balancer in front of the servers | An external load balancer distributes traffic across registered nodes, separate from the clustering design | Teams that need health-based routing in front of several servers and have a load balancer they already operate | Adds health checks, TLS handling and a component to monitor; confirm how it interacts with failover before relying on it |
Setting up a second Security Server for the same member
This sequence brings a second X-Road Security Server online under the same member identity so that consumers and producers can reach the member through either node. The result is two registered servers that serve the same member, which is the basis for X-Road's built-in load balancing and failover.
Confirm the platform and host baseline
The infrastructure or platform team confirms that the new host runs a supported platform: Ubuntu Server 22.04 or 24.04 LTS on x86-64, or Red Hat Enterprise Linux 8 or 9. Check the operating system version and architecture on the host, and confirm with your own change process that the image matches the approved build. The step is done when the host reports a supported OS and architecture and the team has recorded the version in the change record. Confirm the X-Road release you intend to run (the current release is 7.8.3) so both nodes match exactly.
Size the host and free disk space
Verify that the host meets the stated minimum of 3 GB RAM and 3 GB free disk space. If you plan to run monitoring add-ons, the documented figure is 4 GB RAM, so size for that from the start. Run the memory and disk checks on the host and compare the output with the installation guide. Also confirm with your platform team how the second node will be patched and monitored, since the two nodes should be treated as equals. The step is done when both checks pass and the sizing decision is recorded for both nodes.
Prepare the PostgreSQL database
The Security Server requires PostgreSQL, either local or remote, including managed services such as AWS RDS and Azure Database for PostgreSQL. Decide whether the second node uses its own local database or a shared remote instance, and confirm the choice with your database team and the installation guide. Create the database role and database the installer expects, and test connectivity from the new host with the same credentials the Security Server will use. The step is done when the host connects to PostgreSQL successfully and the credentials are stored in your secrets process rather than in shell history.
Open the required network ports
Open TCP 5500 for message exchange and TCP 5577 for OCSP from external networks, so that other members can reach the node. Open TCP 4000 for the admin UI and TCP 8080 or 8443 for information system access from internal networks only. Your network team should apply these rules at the firewall or security group level and confirm that the external load balancer or partner routes reach the new address. The step is done when a connectivity test from an external network reaches TCP 5500 and 5577, and a test from an internal network reaches TCP 4000 and the chosen information system port.
Install the Security Server package
Install the Security Server on the new host using the package or container method that matches your platform, following the installation guide for the same release version as the first node. Install the same package versions on both nodes so their behavior matches. Do not copy the first node's keys or configuration by hand at this stage. The step is done when the installation completes without errors and the Security Server services start on the host.
Register the second server for the member
Register the new Security Server for the same member in the X-Road configuration, so that it is recognized as an additional server of that member rather than a new member. The registration is performed through the admin UI and must be approved by the Security Officer or Registration Officer who manages your member's configuration, under the process your X-Road operator defines. Confirm the registration with the Central Server operator before going further. The step is done when the new server appears as a registered Security Server under the member in the configuration and the approval is recorded.
Verify both servers serve the same member
Check that both Security Servers list the same member identity and the same services, and that the access rights for each consumer match on both nodes. Send test requests through each node, and confirm from the message logs or the admin UI that requests are answered by both servers over time. If one node is missing services or rights, resolve the difference before routing production traffic. The step is done when test traffic succeeds through each node and the service and access rights lists agree on both.
How load balancing and failover behave between registered servers
The first thing to settle is what the consumer side does when one registered Security Server stops answering. A service provider can have more than one Security Server registered for the same member, and requests addressed to that provider are distributed across the registered servers without an external balancer in front of them. Each server is its own entry in the configuration, with its own keys and certificates, so the design survives the loss of one node without the shared database and replication work a cluster needs. Before you rely on this, confirm in the current documentation for your chosen version how the consumer Security Server selects a provider node, which errors cause a retry against another node, and how long a failed node stays in rotation.
When one node is down, the consumer system usually sees the effect only for requests that were already in flight to that node or that were routed to it before the failure was detected. Those requests can fail, and the consuming application must handle them. A request may also have been processed by the provider while its response was lost, so a retry can repeat an action such as a transfer or a record update. The consumer application therefore needs idempotency keys or equivalent checks, and the message log on the surviving nodes should be reviewed to see what was actually exchanged. Do not assume that a retry is always safe just because the platform recovers.
Test failover rather than assume it. Run the consumer workload against two or more registered servers, stop one node during load, and record the error rate, the latency spike and the time until traffic stops reaching the failed node. Then restart it and confirm it returns to rotation. Repeat the exercise after a configuration change such as an access rights update, because each node must receive the change. Check that monitoring and alerting fire for the failed node, not just for the pool as a whole. The exact failover timing and retry behavior depend on the X-Road version in use, and the supported versions are 7.8.3, 7.7.4 and 7.6.5, so confirm the figures in the X-Road Security Server user guide before you set any expectation.
Security considerations for multiple Security Servers
Every Security Server in a redundant set is a full member endpoint with its own admin interface, accounts, keys and trust configuration. Redundancy multiplies the attack surface as well as the capacity, so each node needs the same controls, checked individually.
Separate admin roles on each server
The Security Server defines five roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Assign them per person on every node, not once for the set, so that no single administrator can both change services and approve keys. Confirm that the same person does not hold conflicting roles across nodes, and record who holds each role in your access register.
Security Server user guideLDAP group mapping through PAM and SSSD
Admin users authenticate through PAM, and SSSD can map LDAP groups to X-Road roles. Mapping through a directory gives one place to remove access when someone leaves, and it keeps local accounts from drifting between nodes. Test that a removed directory account loses access to every node, and decide whether break-glass local accounts exist and who controls them.
Account lockout and password settings
The hardening guide recommends locking accounts for 15 minutes after 3 failed logins and using passwords of at least 16 characters. Apply the same policy on every node, because an attacker will try the weakest one. Confirm that lockout works on the PAM path you actually use, and that a locked administrator has a documented recovery route that does not depend on the failed node.
Hardening guidelinesAllowed hostnames against host header injection
The allowed-hostnames setting restricts which host names the Security Server accepts in requests, which limits host header injection. Set it on each node to the names clients and load balancers actually use, and recheck it after any change to DNS or load balancer front ends. A node that accepts unexpected host names may serve responses built from attacker-supplied values.
HTTPS for global configuration
From version 7.4, the hardening guide recommends publishing global configuration over HTTPS. Each node fetches the same configuration, so an unencrypted or unauthenticated channel on one node can feed it altered trust settings. Check that every node in the set uses the HTTPS source, that certificates are valid on each node, and that configuration updates are verified after a change.
Protecting keys with HSM use
Each Security Server holds its own signing and authentication keys, and a compromised key on one node lets an attacker sign requests as your member. X-Road supports hardware security modules through PKCS#11 drivers with the xroad-addon-hwtokens package, for RSA and EC keys. Ask your HSM vendor whether it supports your key types and how key backup and access control work on each node before you commit to a design.
Security Server installation guideQuestions teams ask before using registered-server redundancy
Does registering several Security Servers replace a cluster?
No, it replaces some of what a cluster does, and only for the failure modes it covers. Registering more than one Security Server for the same provider or consumer lets X-Road spread requests across them and fail over when one is unreachable. Each server keeps its own configuration database, keys and certificates, so configuration changes must be made on each node, and a node that misses a change can behave differently from the others. A cluster with identical keys, replicated configuration and a shared load balancer gives tighter consistency, but it also adds components to operate. Confirm the exact load-balancing and failover behavior for your X-Road release in the X-Road GitHub repository before you rely on it in a design review.
What does a registered-server redundancy setup cost, and how is it quoted?
The cost has four parts: the infrastructure for each extra Security Server (compute, storage, PostgreSQL, network and monitoring), the engineering to install and register each node, the design and testing of failover behavior, and the handover to your operations team. Infrastructure and database costs recur, while installation and testing are one-time. Costs rise with the number of consumers and providers, the number of nodes, hardware security module use and the size of your test matrix. A written quote should list the nodes and environments in scope, which failure scenarios are tested, what documentation is delivered, and what ongoing support is included. DeployOpen does not publish prices, and a quote follows from the agreed scope.
How long does a typical setup take, and what changes the timeline?
The duration depends on scope rather than on a standard figure. The main drivers are how many Security Servers you register, whether each node has its own database, whether hardware security modules are involved, how many information systems must be reconfigured, and how many failover tests your change board requires. Your own approval process and access to the Central Server, which is operated by a separate team in many federations, can also set the pace. Ask for a plan that separates environment preparation, node installation, registration, failover testing and handover, and confirm which steps depend on other parties.
What does the client need to provide before work starts?
The client provides the target environment, the list of providers and consumers to be registered, and the platform for each node. In practice this means supported operating systems (Ubuntu Server 22.04 or 24.04 LTS on x86-64, or Red Hat Enterprise Linux 8 or 9), the minimum memory and disk for each server, and PostgreSQL, either local or remote, including managed services. You also need network rules for TCP 5500 and 5577 from external networks and TCP 4000 and 8080 or 8443 from internal networks, Central Server access and approval, and the owners of each information system. If you use hardware security modules, confirm PKCS#11 driver support and key types early.
Can an internal team set up registered-server redundancy alone?
An internal team with Linux administration, PostgreSQL and network skills can install Security Servers by following the vendor documentation, and many do. The harder parts are repeatable failover testing, documenting which configuration changes must be applied to every node, and agreeing on operating rules for a multi-node provider. Teams that lack staff with recent X-Road experience often find the first registration and the first failover test the most time-consuming. Decide which parts you will own before you start, and ask a partner for a written scope if you want independent testing or a handover that your staff can run without help.
Which failures does registered-server redundancy protect against, and which does it not?
It helps when one Security Server becomes unavailable, because traffic can be routed to another registered server that serves the same member. It does not protect against a shared database failure, a faulty configuration change applied to only one node, or a compromised signing key. Messages in flight on a failed node may be lost, so clients need retry logic. Read the documented limits of Security Server clusters and test each failure you care about in a non-production environment before you accept the design.
How does the X-Road 8 timing affect a decision made now?
X-Road 7.8.3 is the current release, and the supported versions are 7.8.3, 7.7.4 and 7.6.5. X-Road 7.8.0 is the last new-feature release of the 7 line, and NIIS intends to maintain it with fixes and security patches beyond 2026, though the length of that period has not been decided. X-Road 8 Spaceship is available as 8.0.0 Beta 2, with production scheduled for December 2026. Build the redundancy design so it can be carried into your upgrade plan, and ask for the upgrade path and rollback steps as part of the scope. Evaluate the beta separately from any production commitment.
Is the redundancy design covered by a fixed-scope engagement?
DeployOpen works on most engagements under a fixed scope, with scope, deliverables and timelines agreed in writing before work starts. For this topic, the written scope should name the nodes, the providers and consumers, the failover scenarios to test, the documentation handed over, and any retainer for later upgrades or testing. Ongoing support, upgrades and continuous testing are available as retainers, which is useful if your provider count grows after the first build.
How DeployOpen scopes and supports X-Road redundancy
DeployOpen scopes X-Road redundancy as a fixed-scope engagement with deliverables and timelines agreed in writing before work starts. For a provider or consumer that registers several Security Servers, the written scope should name each node, the operating system and PostgreSQL arrangement on each, the network paths from the external and internal networks, and the information systems each node must reach. It should also state whether the work covers only the Security Servers or also the upstream load balancer and the Central Server registration. A quote follows from that written scope, so the reader should ask for every component to be listed explicitly rather than summarized as a generic redundancy build.
Testing happens on your infrastructure, with your identities and your registered services. The failover test should stop one Security Server at a time, confirm that message exchange continues on the remaining nodes, and record how long a failed node takes to leave rotation. The admin controls get the same treatment: the five Security Server roles (Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer) are checked against the people who should hold them, admin login through PAM and any LDAP group mapping is exercised, and the hardening settings in the security hardening guidelines are verified on every node, not only the first. The findings are delivered as a report with fixes and a retest, and the evidence pack covers node inventory, role assignments, test logs and configuration exports that your security and compliance reviewers can check.
Ongoing support is available as a retainer. Because each Security Server is maintained separately, patching, X-Road release upgrades and the monitoring of each node add recurring work that grows with the node count. Confirm with DeployOpen how the retainer covers upgrades across all nodes in one maintenance window, how the team tracks the X-Road 7 release line and maintenance decisions made by NIIS, and how continuous testing is scheduled. Ask for the retainer terms in writing, including what happens when a node is added or retired.

