When an X-Road Security Server on Kubernetes makes sense
A Kubernetes deployment of an X-Road Security Server is possible, but it has to be checked against the packaging the X-Road release you plan to run actually supports. The supported Security Server platforms in the current documentation are Ubuntu Server 22.04 and 24.04 LTS and Red Hat Enterprise Linux 8 and 9, and the Security Server needs at least 3 GB of RAM. Container packaging for the Security Server is a separate question, so confirm in the X-Road documentation for your release whether a Kubernetes or container deployment is supported, and plan for the X-Road 8 Kubernetes installation as a different path with its own requirements. X-Road is open-source software published under the MIT license and developed by the Nordic Institute for Interoperability Solutions (NIIS). Its main components are the Central Server, the Security Server and the Configuration Proxy. Each member organization runs a Security Server that handles message exchange with other members, so the server is the part of the system your platform team actually hosts.
The cluster choice does not change what the Security Server needs from the network or the trust framework. It still has to accept TCP 5500 for message exchange and 5577 for OCSP from external networks, expose TCP 4000 for the admin UI, and reach 8080 or 8443 for information system access on the internal side. It still needs PostgreSQL, local or remote, and it still depends on certificates issued by approved certification authorities and on the global configuration from the Central Server. Before you choose EKS or AKS, ask your network team how these ports will reach the pods through load balancers, ingress and network policies, and confirm which source IP addresses other members will see. Those answers decide whether the design is workable, not the cluster product itself.
Kubernetes makes sense when your organization already operates EKS or AKS with the controls, backup practices and staff for it, and when a container-based Security Server fits your release and support plan. If you would rather keep the Security Server on a virtual machine that the X-Road documentation covers directly, a standard Linux host may be the lower-risk choice. Ask the packaging questions in writing before you commit: which X-Road release and container image are supported, how upgrades are applied, how the admin password and keys are stored, and whether your database is a managed PostgreSQL service. The answers determine the volume, secret and probe design that follows in this page.
Which deployment option fits your cluster and standards
This table compares where the Security Server can run, how its database is hosted, how secrets reach it, and how HSM access is handled. Read each row against your cluster standards, then check what your platform team would have to own. The main takeaway is that the Kubernetes option moves several controls into your cluster, so the platform team owns them.
| Decision | Option | When it fits | What the platform team must own |
|---|---|---|---|
| Runtime | Linux VM with the Ubuntu or RHEL package | Your standards require Ubuntu Server 22.04 or 24.04 LTS, or RHEL 8 or 9, on hosts managed outside the cluster | OS patching, package upgrades, firewall rules, host hardening and backups of the server configuration |
| Runtime | Containerized Security Server Sidecar on EKS or AKS | Your cluster standards, GitOps delivery and pod-level controls are mature and you accept running the Security Server as a workload | Pod specs, volumes for persistent state, probes, network policies, image provenance and upgrade sequencing between primary and secondary pods |
| Runtime | Standalone image for testing only | Trying X-Road, developing against services or testing integrations before a production server is registered | Nothing in production. Keep it out of production namespaces and do not treat it as a deployment pattern |
| Database | Local PostgreSQL on the host or pod | Small or early deployments where a separate database service is not yet available | PostgreSQL patching, backups, storage sizing and recovery for the serverconf, messagelog and opmonitor databases |
| Database | In-cluster PostgreSQL operator | Your platform already runs a PostgreSQL operator with tested backup and recovery | Operator upgrades, storage classes, backup target protection, failover tests and access policies |
| Database | AWS RDS or Azure Database for PostgreSQL | The Security Server requires PostgreSQL, and a managed service fits your database standards and network design | Network path from AKS or EKS, credentials rotation, parameter groups, backup retention and the managed service's maintenance windows |
| Secrets | Kubernetes Secrets with encryption at rest | Your cluster already enables encryption at rest for Secrets and restricts list and watch access with least-privilege RBAC | Confirming encryption at rest is enabled, RBAC for the namespace, and who can read the Secret objects |
| Secrets | External store through the Secrets Store CSI Driver | Your standards require secrets to live in a central vault or cloud key service outside etcd | Driver installation, provider configuration, mount permissions, rotation procedure and the audit trail of secret reads |
| HSM access | PKCS#11 through the xroad-addon-hwtokens package | Your signing keys must be held in a hardware security module with RSA or EC keys | Confirming the HSM vendor's PKCS#11 driver works in the chosen image, device or network access to the HSM, PIN handling and key backup. Confirm the HSM and cloud vendor support with them directly |
How the primary and secondary pod pattern changes operations
The primary and secondary pod pattern means one Security Server sidecar instance holds the working configuration and serves traffic, while a second instance stands ready to take over or serve alongside it. Operationally, this turns a single server into a pair that must agree on state at all times. Before you plan failover, confirm in the X-Road 8 Kubernetes installation documentation exactly which pod is the primary, how the secondary is brought up, and whether both pods can serve traffic at once for the release you intend to run. The exact mechanism is not something this page assumes, so treat it as a question for the vendor documentation and the X-Road high availability guidance for your release.
Three categories of state need to be shared or kept in step between the pods. The first is the server configuration, which defines members, subsystems, services and access rights. The second is the signing and authentication keys and certificates, which must be the same material on both pods or be provisioned consistently from a shared secret store. The third is runtime state, most importantly the PostgreSQL databases for serverconf and messagelog, plus the message log storage that holds exchanged messages. Ask which of these the chart or manifests replicate, which they only mount, and which the operator must synchronize by hand. Also confirm how a configuration change made on one pod reaches the other.
The shared PostgreSQL database and the message log storage are the main design constraints. Both pods need network access to a database that survives a pod or node loss, so a managed service such as Azure Database for PostgreSQL or AWS RDS, or an HA cluster you run, belongs in the plan from the start. Message log storage needs a volume that can be attached to the pod that writes it, and you must confirm whether two pods can write to the same log at once. Plan backups and restore tests for both, because a failover that works only with a healthy database and a complete message log is not a recovery plan. Scope the sizing questions against the sibling sizing topic rather than here.
How the cluster, database and member network connect
The diagram starts at external members and the X-Road Central Server outside the cluster boundary. Inbound message exchange and OCSP traffic on TCP 5500 and 5577 reach the Security Server pods through an ingress or load balancer you configure. Admin UI access on TCP 4000 and information system access on 8080 or 8443 stay on the internal side. The Security Server pods read their secrets from a source you choose and write to a PostgreSQL database outside the cluster. Confirm the Sidecar's internal component layout and which ports your chart exposes before you finalize firewall rules.
Illustrative traffic paths; the Sidecar's internal layout must be confirmed.
What to check on EKS compared with AKS
On Amazon EKS, the platform team should confirm how storage, secrets and load balancers are provisioned in the account and Region where the Security Server will run, because the cluster's add-ons and controllers decide the result more than the manifests do. Start by naming the storage class that backs the Security Server's persistent volumes and check whether the reclaim policy keeps the data when a pod or claim is deleted. Then decide where secrets come from, whether an external secret store, an AWS key service or the Secrets Store CSI Driver, and confirm that the chosen path does not leave secret values unencrypted in etcd.
- Persistent volumes: Confirm the storage class, the reclaim policy and the availability zone behavior of the volumes that hold configuration and the message log.
- Secret injection: Confirm which store holds the keys and passwords, who can read them, and whether the CSI driver or an external operator syncs them into the pod.
- Load balancer exposure: Confirm that the load balancer publishes TCP 5500 and 5577 only, and that TCP 4000 and the information system ports are reachable only from internal address ranges.
- Network policy: Confirm that the cluster's network plugin enforces network policies, so that ingress rules can restrict access to the admin UI and information system ports.
- Private database access: Confirm that the RDS endpoint resolves inside the VPC, that its security group admits only the Security Server's nodes or subnets, and that the connection uses TLS.
Ask the platform team to show the rendered load balancer and network policy objects, not just the source files, before the first registration.
On Azure AKS, the same checks apply, but the storage, secret and network controls come from Azure resources and AKS add-ons, so the team should verify them against the subscription, resource group and virtual network that the cluster uses. Start with the storage class and the reclaim policy of the disks or file shares that back the Security Server's data, and confirm that they survive a pod restart and a node replacement. Then confirm whether secrets will come from Azure Key Vault through the CSI driver or from another external store, and check how the cluster authenticates to that store.
- Persistent volumes: Confirm the storage class, the reclaim policy and whether the chosen disk type fits the message log growth expected for the deployment.
- Secret injection: Confirm the vault, the identity used to read it and the rotation process for the Security Server's keys and database credentials.
- Load balancer exposure: Confirm that the Azure load balancer exposes TCP 5500 and 5577 to the external network, while TCP 4000 and the information system ports stay on an internal load balancer or private address.
- Network policy: Confirm which network policy engine the cluster uses and that it enforces the rules that limit the admin UI and information system ports to approved sources.
- Private database access: Confirm that Azure Database for PostgreSQL is reached through a private endpoint or private access inside the virtual network, and that its firewall rules admit only the cluster's subnets.
Record the answers in the deployment design, because the ports and address ranges will be needed again for the firewall review.
Setup sequence for a Security Server on Kubernetes
This sequence takes a Security Server from a confirmed release and cluster to a running primary and secondary pod pair that is reachable on the right ports and ready for member registration. Each step ends with a check you can record, so the platform, security and compliance teams can review the same evidence.
Confirm the release and Kubernetes packaging
The platform engineering lead confirms which X-Road release the organization will run. The current release is 7.8.3, and the supported versions are 7.8.3, 7.7.4 and 7.6.5, according to the X-Road releases page. Confirm with NIIS or the repository which container image or package the Kubernetes deployment uses, and whether that packaging is published for the chosen release. Record the image tag or package version and its source. The check is a written release record that names the version, the image source and the digest or tag that will be deployed.
Size node pools against memory minimums
The cluster team sizes the node pool that will host the Security Server pods. The Security Server needs at least 3 GB RAM, or 4 GB with monitoring add-ons, and 3 GB of free disk space, according to the installation guide. Remember that each node reserves memory for the kubelet and system pods, so compare the requested memory per pod with the allocatable memory on each node, leaving room for the primary and secondary pods to be scheduled on different nodes. The check is that
kubectl describe nodeshows enough allocatable memory on at least two nodes for both pods, with monitoring enabled.Provision PostgreSQL and test connectivity
The database owner provisions PostgreSQL, either as a database the organization runs or as a managed service such as AWS RDS or Azure Database for PostgreSQL, which the installation guide lists as supported. Create the databases and roles the Security Server needs and confirm that the cluster network can reach the database endpoint on the database port. Confirm the required database layout with the installation guide for your release before creating objects. The check is a successful connection test from a temporary pod in the target namespace, using the same credentials the Security Server will use, with the result recorded.
Create secrets and persistent volumes
The security engineer creates Kubernetes Secrets for database credentials and any keys or passwords the deployment needs, and creates persistent volumes for configuration and message log data. By default, Kubernetes stores Secrets unencrypted in etcd, so confirm that encryption at rest is enabled for the cluster or that an external store is used through the Secrets Store CSI Driver. Restrict who can list and watch Secrets with least-privilege RBAC. The check is that a test pod mounts the secret and the volume, and that the data still exists after the pod is deleted and recreated in a non-production namespace.
Configure network policies and load balancer ports
The network team defines network policies and the load balancer service so that the message exchange and OCSP ports are reachable from external networks, and the admin UI and information system ports are reachable only from internal networks. According to the installation guide, external networks use TCP 5500 and 5577, while the admin UI uses TCP 4000 and information system access uses 8080 or 8443 from internal networks. Confirm the rules against your firewall design before applying them. The check is a port reachability test: 5500 and 5577 respond from an external network, and 4000 does not respond from outside.
Set probes after confirming health endpoints
The platform team adds liveness and readiness probes only after it confirms, from the release documentation or the packaged image, which health endpoints the Security Server exposes and what response means healthy. Do not assume a path or port from another product or version. Set conservative initial delays so that a slow database connection at startup does not trigger restarts. The check is that a pod in a healthy state reports Ready, and a deliberately broken database connection in a test namespace marks the pod as not ready without restarting it in a loop.
Deploy the primary and secondary pods
The platform engineer deploys the primary pod first, lets it complete its initial configuration, and then deploys the secondary pod on a different node. Confirm the primary and secondary pattern and the shared-state requirements for your release with the installation guide and the high availability documentation before deploying. Keep both pods in the same namespace with the same database and volume design, and apply pod scheduling rules so they do not land on the same node. The check is that both pods show Ready, that they are scheduled on separate nodes, and that the logs show no database or key errors.
Verify admin access and register the member
The security officer confirms that the admin UI on TCP 4000 opens only from the approved internal network, and that administrators sign in through the configured authentication method. The Security Server defines five user roles, and admin authentication uses PAM, which can be integrated with LDAP through SSSD. Once access is confirmed, the registration officer imports the configuration anchor, creates signing and authentication keys, requests certificates from an approved CA and sends the registration request, as described in the registration topic. The check is that the registration request appears in the approval workflow and each admin can sign in with the role assigned to them.
Security controls the Kubernetes deployment must keep
A Security Server on Kubernetes holds signing keys, admin credentials and database access, so the cluster and the X-Road configuration have to protect each other. The cards below cover the cluster controls for Secrets and namespaces, the X-Road admin and hardening settings, and HSM key access. Review each one against your own cluster and your X-Road hardening baseline before go-live.
Encryption at rest for Secrets
Kubernetes stores Secrets unencrypted in etcd by default, and the Security Server sidecar relies on Secrets for database credentials and key material. Confirm that encryption at rest is enabled on the control plane or that the managed service provides it for your EKS or AKS cluster, and check that existing Secrets were re-encrypted after the setting changed. Ask your provider exactly how etcd encryption keys are managed and who can rotate them.
Secrets good practicesLeast-privilege RBAC for Secrets
Any identity that can list or watch Secrets in the namespace can read the database password and the X-Road key material mounted into the pod. Bind Secrets access only to the deployment pipeline and the service accounts that need it, and remove list and watch verbs from human roles. Review cluster-wide bindings separately, because a namespace-scoped rule can be widened by a broader ClusterRoleBinding.
External secret stores with the CSI driver
If your policy forbids storing key material in etcd at all, mount secrets from an external store through the Secrets Store CSI Driver instead. Decide which values come from the store (database password, PKCS#11 PIN, admin credentials) and confirm that rotation is tested without restarting the sidecar in an unplanned way. Record the store's own access logs as part of the evidence trail.
Pod Security Standards for the namespace
Apply the Pod Security Standards to the namespace that runs the Security Server, starting with a level that blocks privileged containers, host networking and host paths. The sidecar needs a writable data path and specific ports, so test the enforcement mode in warn or audit before enforcing. Document any exception as a named, reviewed deviation rather than a silent label change.
PAM and LDAP admin access
Security Server admin users authenticate through PAM, and LDAP integration uses SSSD with LDAP groups mapped to the five X-Road roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. In a container, confirm that the SSSD configuration, CA certificate and group mappings are delivered as managed configuration, and that role separation is tested with real accounts before go-live.
Hardening guide baseline
Apply the items from the X-Road security hardening guide, version 0.6 dated 09.01.2025. Account lockout is 15 minutes after 3 failed logins, passwords need at least 16 characters, SSH uses keys only where SSH is available, and the allowed-hostnames setting guards against host header injection. Publishing global configuration over HTTPS applies from version 7.4, so confirm the URL your members use.
Hardening guidelinesHSM key access through PKCS#11
If signing keys live in a hardware security module, the sidecar reaches them through a PKCS#11 driver from the xroad-addon-hwtokens package, which supports RSA and EC keys. Confirm that the driver library and HSM client are present in the image, that the HSM network path is limited to the Security Server pods, and that the PIN is supplied from a protected store and never written into an image layer or a plain ConfigMap.
Questions teams ask before running X-Road on EKS or AKS
Is the X-Road Security Server supported on Kubernetes for my release?
Confirm support against the release you plan to run before design starts. The current release is 7.8.3, with 7.7.4 and 7.6.5 also supported. The published platforms for the Security Server are Ubuntu Server 22.04 and 24.04 LTS on x86-64 and Red Hat Enterprise Linux 8 and 9, and the main components are listed as supported on Ubuntu, RHEL and Docker. A Kubernetes deployment therefore depends on the containerized Security Server image, its base operating system and the deployment manifests for that release, so ask NIIS or check the X-Road releases page for the image tag and any statement on EKS or AKS. Also confirm that your managed Kubernetes version is still maintained by the Kubernetes project. As of September 2026, the maintained minor releases were 1.35, 1.36 and 1.37.
What does an EKS or AKS deployment cost in effort, and who pays for it?
The cost comes from three sources: your own engineers, a partner's fixed-scope engagement, or a retainer for ongoing work. Internal effort covers cluster standards, network approvals, database and key handling, X-Road registration and testing, paid through salaried hours. A fixed-scope engagement is priced from a written scope that lists deliverables, environments and testing, and DeployOpen does not publish a price list, so a quote follows from that scope. One-time costs include design, build, hardening and handover. Recurring costs include the managed PostgreSQL service, cloud load balancers, storage, cluster nodes, monitoring, Kubernetes minor-version upgrades and X-Road patching. Ask any provider for a quote that separates one-time work from recurring cloud and support charges, and that names who operates each component after handover.
What makes an X-Road Kubernetes deployment take longer?
Duration depends mostly on decisions your organization has not yet made. The main drivers are cluster standards, such as namespaces, Pod Security Standards, network policies, ingress and admin access. The database is another: the serverconf, messagelog and opmonitor databases must be reachable from pods, backed up and sized, whether on a self-managed PostgreSQL server or a service such as AWS RDS or Azure Database for PostgreSQL. Hardware security modules add work because PKCS#11 drivers are installed through the xroad-addon-hwtokens package and must be tested with RSA or EC keys. LDAP integration through PAM and SSSD requires mapping directory groups to the five X-Road admin roles. Network approvals for the ports the Security Server uses, and the certificates an approved CA issues, often set the critical path.
What does the work need from our team before it starts?
The work needs access, data and approvals from your side before design and build can proceed. Provide cluster access for a non-production and a production environment, with scoped admin roles, node pools, storage classes and the namespace layout you already use. Provide PostgreSQL details, including the host, network path, credentials handling and backup policy. Open approvals for the Security Server ports: TCP 5500 and 5577 from external networks, and TCP 4000 plus 8080 or 8443 from internal networks. Finally, provide X-Road registration details: your member class and member code, the governing authority contact, the approved certification authority you will use, and the configuration anchor. Confirm which of these your organization can supply and who owns each approval.
Can our team deploy X-Road on Kubernetes without an outside partner?
A capable platform team can deploy it alone if it already runs Kubernetes in production, operates PostgreSQL, manages a PKI and understands X-Road member operations. The Security Server holds signing and authentication keys, so key handling, backups and secret storage need the same care as any identity component. Kubernetes stores Secrets unencrypted in etcd by default, so encryption at rest, least-privilege RBAC and a choice of external secret store must be part of the design. Teams that lack one of these skills can split the work: keep platform operations internal, and buy a fixed-scope engagement for the X-Road build and handover, or a retainer for upgrades, testing and support. Either way, agree who owns each runbook before go-live.
How does X-Road 8 change a Kubernetes plan?
X-Road 8 changes the timing and the evaluation questions more than the basic design. X-Road 8 Spaceship is available for testing as 8.0.0 Beta 2, with production scheduled for December 2026, and it is positioned as a data space solution with improved monitoring and cloud compatibility. For production planning today, the 7.x Security Server remains the supported path, and NIIS intends to maintain X-Road 7 with fixes and security patches beyond 2026, although the length of that period has not been decided. Build the platform layer, covering clusters, PostgreSQL, secrets, network policy and monitoring, so it can serve either line. Then confirm the 8.0.0 Kubernetes installation details, including its secrets, database and identity model, in the beta documentation before any migration decision.
Limits to confirm in your environment
The supplied sources do not settle every detail of running the Security Server Sidecar on EKS or AKS. The cards below list the points to confirm with NIIS, in your cluster and against your own risk timeline before you commit to a design.
Sidecar packaging for your release
Confirm that the Security Server Sidecar Kubernetes packaging applies to the X-Road release you plan to run. The supported release line today is 7.8.3, 7.7.4 and 7.6.5, and the Kubernetes deployment shape may differ between 7.x and 8.x. Ask NIIS for the chart or manifest set, the image tag it targets, and the upgrade path between releases before writing any manifests.
X-Road releasesProbe endpoints and pod synchronization
The sources do not document the readiness and liveness probe endpoints for the Sidecar, nor how the primary and secondary pods synchronize configuration and state. Ask the vendor which health path each probe should call, what a healthy secondary looks like, and how a failed primary is replaced. Test a forced pod restart in a non-production cluster and record what the secondary serves during the gap.
EKS and AKS as supported platforms
Verify in writing whether Amazon EKS and Azure AKS are documented as supported platforms for the Sidecar. General Kubernetes conformance does not settle this for a specific product. Also confirm which storage classes, load balancer types and ingress controllers NIIS has tested, because those choices change how the message exchange and OCSP ports are exposed.
X-Road 8 production timing
The release plan targets December 2026 for X-Road 8 production, and 8.0.0 Beta 2 is available for testing only. Do not place the beta in a production trust path. Ask NIIS to confirm the production date, the migration route from a 7.x Sidecar, and whether any Kubernetes packaging changes are planned before go-live.
X-Road GitHub repositoryX-Road 7 support horizon
NIIS intends to maintain X-Road 7 with bug fixes and security patches beyond 2026, but has not decided how long. Ask for a written maintenance commitment or a decision date before you standardize a multi-year Kubernetes deployment on 7.x. Your risk team should model a scenario where patches stop, and agree on a migration trigger in advance.
- Last 7.x feature release
- 7.8.0
Kubernetes version support windows
Check which Kubernetes minor versions your EKS or AKS cluster runs and when each reaches end of life. The project lists 1.35 (end of life February 28, 2027), 1.36 (June 28, 2027) and 1.37 (October 28, 2027) as maintained. Plan cluster upgrades against the version skew policy, and confirm with NIIS that the Sidecar is tested on the minor version you run, not just the one in the release notes.
- Maintained minor versions
- 1.35 to 1.37
How DeployOpen scopes and delivers this work
DeployOpen plans, deploys and documents the X-Road Security Server on Kubernetes with EKS or AKS inside your own cloud accounts and network. Engagements are fixed-scope, so the cluster design, pod pattern, secrets handling and handover are agreed in writing before the build starts.
How we scope
- Confirm the EKS or AKS versions, node pools and network model your platform team already operates.
- Agree the primary and secondary Security Server pod pattern, volumes and probe design in the written scope.
- Define the external PostgreSQL target, whether managed or self-hosted, and who owns its backups and access.
How we build
- Create the deployment manifests, persistent volume claims and secret references for your cluster and namespace.
- Wire keys, certificates and database credentials through your chosen secret store rather than plain manifests.
- Test readiness and liveness probes, failover between pods and restart behavior after node drains.
How we hand over
- Deliver version-controlled manifests, a runbook for registration, upgrades and rollback, and a record of design decisions.
- Walk your platform and security teams through network exposure, RBAC, Pod Security settings and secret rotation.
- Provide a checklist of ports, ingress paths and firewall rules your network team must confirm before go-live.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retainers can cover X-Road version upgrades, Kubernetes minor version upgrades and changes to the pod pattern.
- Confirm retainer terms, response expectations and included testing in the quote, which follows the written scope.

