# nordic-institute/x-road-7-workshop architecture

> Architecture diagram of the GitHub repository nordic-institute/x-road-7-workshop, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nordic-institute/x-road-7-workshop
- Repository: https://github.com/nordic-institute/x-road-7-workshop

## Overview

This repository provides a Docker Compose X-Road 7 workshop environment, not the X-Road server implementation itself. The main workflow is to start the local stack, configure its Central Server and Security Servers, then send example SOAP requests through the consumer Security Server to the example information system. The README also documents CA/OCSP/TSA setup, certificate export, configuration seeding, OCSP cache maintenance, and an optional external statistics service. Source excerpts are limited to the response formatter, so runtime links not established by the README are omitted or marked unverified.

Main entry points: [`compose.yaml`](https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml) (Compose stack), [`config/copy-config.sh`](https://github.com/nordic-institute/x-road-7-workshop/blob/main/config/copy-config.sh) (Configuration copier), [`scripts/send-request.sh`](https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/send-request.sh) (Request sender), [`scripts/export-ca-certs.sh`](https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/export-ca-certs.sh) (CA certificate export)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Workshop runtime"]
  node_stack["Compose stack<br/>[compose.yaml]"]
  node_central["Central Server<br/>[compose.yaml]"]
  node_ca["Test CA services<br/>[compose.yaml]"]
  node_ss1["Provider server ss1<br/>[compose.yaml]"]
  node_ss2["Consumer server ss2<br/>[compose.yaml]"]
  node_is["Example information system<br/>[compose.yaml]"]
  node_stats["X-Road statistics API"]
end

subgraph group_setup["Configuration setup"]
  node_config["Server configuration"]
  node_copy["Configuration copier<br/>[copy-config.sh]"]
  node_guide["Configuration guide"]
end

subgraph group_testing["Service testing"]
  node_requests["SOAP request examples"]
  node_sender["Request sender<br/>[send-request.sh]"]
  node_formatter["Response formatter<br/>[format-response.py]"]
  node_testclient(("Test client"))
end

subgraph group_operations["Operations"]
  node_certs["CA certificate export<br/>[export-ca-certs.sh]"]
  node_ocsp["OCSP cache clearing"]
end

node_operator(("Workshop operator"))

node_operator -->|"starts"| node_stack
node_stack -->|"runs"| node_central
node_stack -->|"runs"| node_ca
node_stack -->|"runs"| node_ss1
node_stack -->|"runs"| node_ss2
node_stack -->|"runs"| node_is
node_operator -->|"follows"| node_guide
node_copy -->|"copies"| node_config
node_copy -->|"seeds config"| node_central
node_copy -->|"seeds config"| node_ss1
node_copy -->|"seeds config"| node_ss2
node_operator -->|"runs"| node_certs
node_certs -->|"exports certificates"| node_ca
node_operator -->|"runs"| node_ocsp
node_operator -.->|"sends requests"| node_sender
node_requests -.->|"supplies examples"| node_sender
node_testclient -.->|"invokes services"| node_ss2
node_ss1 -->|"routes to"| node_is
node_sender -->|"pipes response"| node_formatter
node_ss2 -->|"exposes access to"| node_stats

click node_stack "https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml"
click node_central "https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml"
click node_ca "https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml"
click node_ss1 "https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml"
click node_ss2 "https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml"
click node_is "https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml"
click node_config "https://github.com/nordic-institute/x-road-7-workshop/tree/main/config"
click node_copy "https://github.com/nordic-institute/x-road-7-workshop/blob/main/config/copy-config.sh"
click node_guide "https://github.com/nordic-institute/x-road-7-workshop/blob/main/docs/configuration-guide.md"
click node_certs "https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/export-ca-certs.sh"
click node_ocsp "https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/clear-ocsp-cache.sh"
click node_requests "https://github.com/nordic-institute/x-road-7-workshop/tree/main/requests"
click node_sender "https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/send-request.sh"
click node_formatter "https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/format-response.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_stack,node_central,node_ca,node_ss1,node_ss2,node_is,node_stats toneBlue
class node_config,node_copy,node_guide toneAmber
class node_requests,node_sender,node_formatter,node_testclient toneMint
class node_certs,node_ocsp toneRose
class node_operator toneIndigo
```

## Components

### Workshop runtime

- [Compose stack](https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml): `compose.yaml`
- [Central Server](https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml): `compose.yaml`
- [Test CA services](https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml): `compose.yaml`
- [Provider server ss1](https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml): `compose.yaml`
- [Consumer server ss2](https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml): `compose.yaml`
- [Example information system](https://github.com/nordic-institute/x-road-7-workshop/blob/main/compose.yaml): `compose.yaml`
- **X-Road statistics API**

### Configuration setup

- [Server configuration](https://github.com/nordic-institute/x-road-7-workshop/tree/main/config): `config`
- [Configuration copier](https://github.com/nordic-institute/x-road-7-workshop/blob/main/config/copy-config.sh): `config/copy-config.sh`
- [Configuration guide](https://github.com/nordic-institute/x-road-7-workshop/blob/main/docs/configuration-guide.md): `docs/configuration-guide.md`

### Service testing

- [SOAP request examples](https://github.com/nordic-institute/x-road-7-workshop/tree/main/requests): `requests`
- [Request sender](https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/send-request.sh): `scripts/send-request.sh`
- [Response formatter](https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/format-response.py): `scripts/format-response.py`
- **Test client**

### Operations

- [CA certificate export](https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/export-ca-certs.sh): `scripts/export-ca-certs.sh`
- [OCSP cache clearing](https://github.com/nordic-institute/x-road-7-workshop/blob/main/scripts/clear-ocsp-cache.sh): `scripts/clear-ocsp-cache.sh`

### Other components

- **Workshop operator**

## Connections

- Workshop operator → Compose stack: starts (evidence: `README.md`)
- Compose stack → Central Server: runs (evidence: `README.md`)
- Compose stack → Test CA services: runs (evidence: `README.md`)
- Compose stack → Provider server ss1: runs (evidence: `README.md`)
- Compose stack → Consumer server ss2: runs (evidence: `README.md`)
- Compose stack → Example information system: runs (evidence: `README.md`)
- Workshop operator → Configuration guide: follows (evidence: `README.md`)
- Configuration copier → Server configuration: copies (evidence: `README.md`)
- Configuration copier → Central Server: seeds config (evidence: `README.md`)
- Configuration copier → Provider server ss1: seeds config (evidence: `README.md`)
- Configuration copier → Consumer server ss2: seeds config (evidence: `README.md`)
- Workshop operator → CA certificate export: runs (evidence: `README.md`)
- CA certificate export → Test CA services: exports certificates (evidence: `README.md`)
- Workshop operator → OCSP cache clearing: runs (evidence: `README.md`)
- Workshop operator → Request sender: sends requests
- SOAP request examples → Request sender: supplies examples
- Test client → Consumer server ss2: invokes services
- Provider server ss1 → Example information system: routes to (evidence: `README.md`)
- Request sender → Response formatter: pipes response (evidence: `scripts/format-response.py`)
- Consumer server ss2 → X-Road statistics API: exposes access to (evidence: `README.md`)
