A containerized version of the X-Road Security Server that supports production use.
1M+
X-Road Security Server Sidecar is a containerized version of the Security Server that supports production use. The Sidecar is a Docker container that runs in the same virtual context (virtual host, Kubernetes Pod, etc.) with an information system. The Sidecar can be used for both consuming and producing services.
Full documentation and source code are available on GitHub.
The X-Road Security Server Sidecar can be deployed using Docker (Linux, x86-64 architecture) or Kubernetes. Docker Desktop for Windows or macOS (x86-64) can be used in testing and development, but is not supported for production use.
To run X-Road Security Server Sidecar, use the following command:
docker run --detach \
--name <container name> \
-p 127.0.0.1:<admin port>:4000 \
-p 127.0.0.1:<healthcheck port>:5588 \
-p <consumer information system port>:8443 \
-p 5500:5500 \
-p 5577:5577 \
-e XROAD_TOKEN_PIN=<token pin> \
-e XROAD_ADMIN_USER=<admin user> \
-e XROAD_ADMIN_PASSWORD=<admin password> \
-e XROAD_LOG_LEVEL=INFO \
# Optional parameters - BEGIN
-v <config-volume>:/etc/xroad \
-v <archive-volume>:/var/lib/xroad \
-v <database-volume>:/var/lib/postgresql/12/main \
-e XROAD_DB_HOST=<database-host> \
-e XROAD_DB_PORT=<database-port> \
-e XROAD_DB_PWD=<postgres password> \
# Optional parameters - END
niis/xroad-security-server-sidecar:<version[-type[-variant]>
Note! This command persists all configuration inside the Sidecar container which means that state is lost when the container is destroyed. In production use, either persistent volumes should be used. Using a separate database is recommended.
The Security Server Sidecar has images for a standalone setup and a clustered setup on Kubernetes. Each Security Server version number (e.g., 7.0.0, etc.) has its own set of images. The images are built from pre-built X-Road software packages downloaded from the official X-Road repository.
All of the images can act as a provider or consumer Security Servers, but some of the images have less features available. The images with a country code suffix (e.g., -fi) come with a country-specific configuration. The images without a country code suffix come with the X-Road default configuration.
| Feature | Sidecar | Sidecar Slim |
|---|---|---|
| Consume services | Yes | Yes |
| Provide services | Yes | Yes |
| Message logging | Yes | No |
| Environmental monitoring | Yes | No |
| Operational monitoring | Yes | No |
The Security Server Sidecar has several images with alternative configurations:
| Image | Description |
|---|---|
| niis/xroad-security-server-sidecar:<version>-slim | Slim image with the minimum required packages and configuration to function. |
| niis/xroad-security-server-sidecar:<version> | Full image uses the slim as the base and adds message logging, and environmental and operational monitoring. |
| niis/xroad-security-server-sidecar:<version>-slim-<variant> | Same as the slim image but with the NIIS member/partner country variant (ee,fi,fo,is) settings included. |
| niis/xroad-security-server-sidecar:<version>-<variant> | Same as the full image but with the NIIS member/partner country variant configuration settings included. |
All of the X-Road Security Server Sidecar standalone images are suitable to be used for a Kubernetes deployment. Additionally, there are images suitable to be used for a Load Balancer Kubernetes deployment as described here. These images include the necessary configuration so that the Pods can act as Primary or Secondary.
| Image | Description |
|---|---|
| niis/xroad-security-server-sidecar:<version>-slim-primary | Image for the Primary Pod deployment using the slim version of the Security Server Sidecar |
| niis/xroad-security-server-sidecar:<version>-slim-secondary | Image for the Secondary Pod deployment using the slim version of the Security Server |
| niis/xroad-security-server-sidecar:<version>-primary | Image for the Primary Pod deployment using the regular (with message logging and operational monitor) version of the Security Server |
| niis/xroad-security-server-sidecar:<version>-secondary | Image for the Secondary Pod deployment using the regular version of the Security Server. |
| niis/xroad-security-server-sidecar:<version>-slim-primary-<variant> | Image for the Primary Pod deployment using the slim version of the Security Server Sidecar with NIIS member settings |
| niis/xroad-security-server-sidecar:<version>-slim-secondary-<variant> | Image for the Secondary Pod deployment using the slim version of the Security Server with NIIS member settings |
| niis/xroad-security-server-sidecar:<version>-primary-<variant> | Image for the Primary Pod deployment using the regular version of the Security Server with NIIS member settings |
| niis/xroad-security-server-sidecar:<version>-secondary-<variant> | Image for the Secondary Pod deployment using the regular version of the Security Server with NIIS member settings |
slim version does not support message logging, operational monitoring nor environmental monitoring functionality, which is recommended for a service provider's Security Server role.xroad services are run inside the container using supervisord as root, although the processes it starts are not. To avoid potential security issues, it is possible to set up Docker so that it uses Linux user namespaces, in which case root inside the container is not root (user id 0) on the host. For more information, see https://docs.docker.com/engine/security/userns-remap/.Monthly security updates are provided to last three minor versions. The updates are released monthly on the 25th, with additional releases for critical vulnerabilities. The updates include the latest base image with up-to-date packages and security fixes. There are no changes to X-Road Security Server software and its packages inside. These changes are released with a version change.
docker pull niis/xroad-security-server-sidecar:<target-version[-type[-variant]>
Note: If you do not pull the latest version, Docker may use a local image of the same version that may not be up-to-date. You can check when each image was last updated on Docker hub.
Content type
Image
Digest
sha256:03bdb7211…
Size
822 MB
Last updated
18 days ago
docker pull niis/xroad-security-server-sidecar:7.8.3-slim