Sign inSign up

niis/xroad-security-server-sidecar

By niis

•Updated 18 days ago

A containerized version of the X-Road Security Server that supports production use.

Image
5

1M+

niis/xroad-security-server-sidecar repository overview

⁠X-Road Security Server Sidecar

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.

⁠Supported platforms

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.

  • CPUs: 2
  • Memory: 3 GiB (slim, 4GiB or more for a full container)
  • Disk space: 3 GiB

⁠Quick start guide

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.

⁠Available images

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.

FeatureSidecarSidecar Slim
Consume servicesYesYes
Provide servicesYesYes
Message logging⁠YesNo
Environmental monitoring⁠YesNo
Operational monitoring⁠YesNo
⁠Standalone

The Security Server Sidecar has several images with alternative configurations:

ImageDescription
niis/xroad-security-server-sidecar:<version>-slimSlim 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.
⁠Cluster

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.

ImageDescription
niis/xroad-security-server-sidecar:<version>-slim-primaryImage for the Primary Pod deployment using the slim version of the Security Server Sidecar
niis/xroad-security-server-sidecar:<version>-slim-secondaryImage for the Secondary Pod deployment using the slim version of the Security Server
niis/xroad-security-server-sidecar:<version>-primaryImage 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>-secondaryImage 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

⁠Key Points and Limitations for X-Road Security Server Sidecar Deployment

  • The Security Server Sidecar slim version does not support message logging, operational monitoring nor environmental monitoring functionality, which is recommended for a service provider's Security Server role.
  • The Security Server Sidecar creates and manages its own internal TLS keys and certificates and does TLS termination by itself. In a cluster setup with an external load balancer, the load balancer must use SSL passthrough so that SSL termination is done by the Sidecar.
  • The 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/⁠.

⁠How to get the latest security updates?

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.

⁠Steps to update
  1. Pull the latest version of your choice using the following command:
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.

  1. Follow the Sidecar upgrade steps described here⁠. The upgrade procedure is the same as upgrading to a newer X-Road version. Therefore, it must conform to the same requirements listed in the upgrade guide.

Tag summary

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