Architecture
Last updated
The Health Dataspace v2 architecture in ArchiMate 3.2 views, with a sequence diagram wherever an order of messages matters: the five-layer graph model, the data flow, the deployment topology, the service dependencies, the permit and negotiation procedure, and the identity and trust framework. Click a diagram to open it full screen and zoom.
0. Foundations: what the hub is built on, and why
A data space lets organisations share data without a central owner. Three things make that safe: knowing who someone is, deciding what they may do with which data, and keeping that decision apart from the data itself. The hub takes each from a published architecture, protocol or regulation; every card says which, and where the hub implements it.
Reference architectures
IDSA Reference Architecture Model
The IDS-RAM 2026-3 (October 2026) is a design space rather than a blueprint, built around the Dataspace Protocol and the Decentralized Claims Protocol, and it leaves the data plane outside its scope. Its predecessor IDS-RAM 4.2 described layers and central components such as an identity provider and a broker. The IDSA Rulebook recommends decentralised data spaces.
In the hub: no central identity provider or broker; each participant has its own connector context and credentials (ADR-078).
DSSC Blueprint
The Data Spaces Blueprint 3.0, the final version from the Data Spaces Support Centre, sorts a data space into business, governance and legal building blocks and three technical pillars: data interoperability, data sovereignty and trust, and data value creation. Its access and usage policies building block asks for policies enforced during the sharing itself.
In the hub: an ODRL policy on every offer and an approved data permit before any data moves (odrl-engine.ts, permit-gate.ts).
Eclipse Dataspace Working Group
The Eclipse Dataspace Working Group has governed the Dataspace Protocol since IDSA handed it over after version 2024-1 (status of DSP). It hosts the Dataspace Protocol, the Decentralized Claims Protocol and Data Plane Signaling, with Eclipse Dataspace Components as an implementation and a compatibility kit to test against.
In the hub: the EDC 1.0 control plane, IdentityHub and IssuerService, built from runtimes/edc.
Protocols: who, what, and how the data moves
Dataspace Protocol (DSP 2025-1)
What is offered and on which terms: the catalog, contract negotiation and transfer process protocols let participants publish datasets, agree a contract and start a transfer. DSP runs on the control plane; the data transfer itself is outside its scope.
In the hub: the EDC control plane; the hub's own checks exercise the three protocols, the Eclipse compatibility kit has not been run yet.
Decentralized Claims Protocol (DCP v1.0)
Who a participant is: a DID and verifiable credentials from issuers the data space trusts, shown with a self-issued token, so no central identity provider is needed. A verifier must check revocation each time a credential is presented.
In the hub: IdentityHub and IssuerService; a Simpl Governance Authority as a further trusted issuer (#710).
Data Plane Signaling (1.0-RC4)
How a control plane tells a data plane to start, suspend or terminate a transfer. In a pull transfer the provider's data plane creates the endpoint address and its token. The control plane decides, the data plane moves the data, and neither does the other's job.
In the hub: siglet is the data plane: it issues the access token, renewed after its hour, and the Neo4j proxy serves only the dataset the token names (siglet-edc1.toml, ADR-078).
Regulation and identity
EHDS: an architecture in the Regulation?
Not a technical pattern. Regulation (EU) 2025/327 sets up infrastructures and roles and leaves the technology to implementing acts: MyHealth@EU for primary use, HealthData@EU with a Commission central platform for secondary use, health data access bodies, data permits and a federated EU dataset catalogue. Two rules shape every architecture under it: processing happens in a secure processing environment from which only non-personal data may be downloaded, and questions go to the data instead of moving the data.
In the hub: the permit gate, two secure processing environments and the HealthDCAT-AP catalogue (ADR-069).
Simpl
The Commission's Simpl-Open is open-source middleware for data spaces, and Simpl-Live brings it to real ones, the EHDS secondary-use data space among them. Its feasibility study finds the integration feasible; for health it says Simpl-Open can support EHDS2, with many requirements of the central platform still to be assessed.
In the hub: a connector outside the Simpl-Open agent, over DSP and DCP (section 7).
eIDAS 2.0: wallets for people and organisations
Regulation (EU) 2024/1183 gives natural and legal persons a European Digital Identity Wallet, with open-source software and selective disclosure under the user's sole control, specified in the Architecture and Reference Framework 3.0. For organisations the European Business Wallet is proposed and not yet adopted (procedure 2025/0358).
In the hub: sign-in with the EUDI Wallet's person identification data (ADR-065); a person acting for an organisation waits for the Business Wallet (#709).
Zero Trust across the layers
NIST SP 800-207 grants no trust for being inside a network: every request is authenticated and authorised per session, a policy decision point decides and an enforcement point enforces. A data space applies the same rule between organisations:
| Layer | Rule | In the hub |
|---|---|---|
| Identity of organisations | A verifiable credential, checked for revocation at every presentation | IdentityHub |
| Identity of persons | A session from Keycloak or the EUDI Wallet, asked for by every API route | requireAuth(), ADR-044 |
| Access policy | An ODRL offer and an approved, unexpired data permit (Art. 68) | odrl-engine.ts, permit-gate.ts |
| Usage policy | The permitted purpose (Art. 53), the opt-out (Art. 71), no small cells, processing in a secure environment (Art. 73) | opt-out.ts, k-anonymity.ts |
| Control and data plane | The control plane agrees; the data plane issues a short-lived token for one transfer | siglet |
| Evidence | A tamper-evident log of who read what | audit-chain.ts |
Why this matters when there is a breach
In an ecosystem of many organisations a breach will happen somewhere. Whether the others keep trusting the data space depends on how far it reaches and how fast it is known:
- Contained: a stolen session or key opens only what its credential, permit and purpose allow, for as long as its token lives; no position in a network grants more (NIST SP 800-207, section 2.1).
- Data stays put: analyses run in the secure processing environment and only reviewed, non-personal results leave it, so a breach at a data user exposes no records (Art. 73(2), Recital 77).
- Stopped at the source: an issuer revokes a credential and every verifier refuses it, without a central switch; EDC re-reads the status list after at most 15 minutes by default. The access body can revoke the permit and stop the processing (Art. 63(3)).
- Known and reported: the audit log shows who read what, which a controller needs to notify the supervisory authority within 72 hours (GDPR Art. 33) and the people concerned when the risk is high (Art. 34); essential entities give an early warning within 24 hours (NIS2 Art. 23).
None of this prevents a breach. It keeps one participant's breach from becoming the whole data space's, and that is what lets the others keep sharing.
1. Five-Layer Knowledge Graph
The Neo4j knowledge graph organises health data across five architectural layers: DSP Marketplace (connector discovery), HealthDCAT-AP (dataset metadata), FHIR R4 (clinical data), OMOP CDM (research analytics), and Ontology (terminology alignment).
2. Data Flow Pipeline
Synthetic patient data flows from Synthea generation through FHIR R4 resource loading into Neo4j, then transforms to OMOP CDM for research analytics. Each stage preserves full provenance through graph relationships.
3. Deployment Topology
The stack grew out of JAD and runs 32 Docker Compose services, profiles included: infrastructure (Traefik, PostgreSQL, Vault, NATS, Keycloak), EDC 1.0 (the control plane, with siglet as its data plane, ADR-078), identity (Identity Hub, Issuer Service), application (Neo4j, proxy, UI) and a static GitHub Pages export. CFM 0.0.7 starts only with the cfm profile (ADR-085). The same topology runs on Azure Container Apps at ehds.mabu.red (ADR-012); the apps there are the ones the off-hours script stops and starts. Arrows show runtime dependencies.
Operating hours on Azure
The Azure deployment runs Monday to Friday, 05:17 to 18:13 UTC, and is stopped outside those hours (ADR-053); two Container Apps jobs trigger the stop and the start (ADR-058). Stopping is a real stop through the Container Apps API, not scale-to-zero, because nearly every service is called by another one and would never reach zero replicas. The UI is the exception: it sleeps at zero replicas, wakes for a visitor and serves an offline notice that links the static export.
| Step | Evening stop (18:13 UTC) | Morning start (05:17 UTC, Mon to Fri) |
|---|---|---|
| 1 | UI to offline mode, min 0 | PostgreSQL Flexible Server, wait until Ready |
| 2 | 21 Container Apps stopped, consumers first | Vault, Keycloak, Neo4j, NATS, proxy, enricher, federation, observability |
| 3 | PostgreSQL Flexible Server stopped | EDC control plane, data planes, identity, CFM |
| 4 | UI back online, then the Keycloak login check |
Berlin public holidays skip the start. The catalog crawler runs in office hours only. A night or weekend session holds the stack with the repository variable LIVE_DEMO_HOLD_UNTIL; see the off-hours runbook.
4. Service Dependencies
Complete inventory of all services in the docker-compose.yml and docker-compose.jad.yml stacks, their exposed ports, upstream dependencies, and purpose.
| Service | Layer | Port(s) | Depends On | Purpose |
|---|---|---|---|---|
| Traefik v3.7 | Infrastructure | :80 / :8090 | -- | API gateway, reverse proxy, *.localhost routing |
| PostgreSQL 17.7 | Infrastructure | :5432 | -- | Shared database (13 DBs: cfm_v007, controlplane, controlplane_v1, dataplane_v1, identityhub_v1, issuerservice_v1, keycloak, redlinedb, rogueissuer, rogueissuer_v1, simplga, simplga_v1, taskdb) |
| HashiCorp Vault 2.0 | Infrastructure | :8200 | -- | Secrets store with file storage, so a restart keeps every key (since 2026-09-26; on Azure it stores in the Flexible Server, ADR-046) |
| NATS JetStream 2.14.3 | Infrastructure | :4222 / :8222 | -- | Async event mesh for DSP protocol events |
| Keycloak 26.8.0 | Infrastructure | :8080 / :9000 | PostgreSQL | OIDC SSO provider, realm edcv: 8 demo users and a service account, holding 6 of the realm's 10 roles |
| vault-bootstrap | Infrastructure | -- | Vault, Keycloak | Init sidecar: seeds Vault secrets and Keycloak config |
| vault-unseal | Infrastructure | -- | Vault | Sidecar: initialises Vault once, then unseals it after every restart |
| siglet 0.1.6 | EDC | -- | Vault | The data plane on EDC 1.0: answers the control plane's Data Plane Signaling and issues the access token; the Neo4j proxy serves the data (ADR-078) |
| Control Plane | EDC | :11003 | PostgreSQL, Vault, NATS, Keycloak | EDC 1.0 control plane built from runtimes/edc: DSP negotiation, management API, policy engine (ADR-078) |
| Identity Hub | Identity | :11005 | PostgreSQL, Vault, Keycloak | DCP: DID resolution, Verifiable Credential storage |
| Issuer Service | Identity | :10013 | PostgreSQL, Vault, Keycloak | VC issuance: EHDS membership, data permits, org credentials |
| CFM 0.0.7 | CFM | :18181 / :18182 | PostgreSQL, NATS, Keycloak | Only with the cfm profile: eclipse-cfm's Tenant and Provision Managers and its agents, the provisioning layer ADR-085 measures; by default the hub provisions participants itself (ADR-078) |
| Neo4j 5.26.28 | Application | :7474 / :7687 | -- | Knowledge graph: 5-layer model, with the APOC, APOC Extended, Graph Data Science and n10s plugins |
| Neo4j SPE2 | Application | :7475 / :7688 | -- | Secondary graph instance (federated profile) |
| Neo4j Proxy | Application | :9090 | Neo4j, Control Plane | Express bridge: FHIR/OMOP REST endpoints over Neo4j |
| Next.js UI | Application | :3000 / :3003 | Neo4j Proxy | Persona overviews, catalog, governance and exchange: 68 pages, 100 API routes |
| GitHub Pages | Static | -- | Next.js UI (static export) | Public demo site with mock data fixtures |
5. DSP Contract Negotiation
The Dataspace Protocol (DSP) governs how data holders and data users negotiate access to health datasets. The EHDS regulation adds HDAB approval as a pre-requisite for data permit issuance before contract negotiation can proceed.
6. Identity & Trust Framework
The Decentralized Claims Protocol (DCP) manages identity, credentials, and trust. Identity Hub stores DIDs and Verifiable Credentials, the Issuer Service mints EHDS-specific credentials, and Keycloak provides SSO/OIDC authentication.
7. SIMPL-Open & Compliance
The hub and the EU's Simpl-Open middleware stand on the same foundation: both run Eclipse EDC connectors, speak the Dataspace Protocol and admit participants with credentials from an authority they trust. The hub joins a Simpl data space as an EDC connector outside the Simpl-Open agent (ADR-064) and brings what health adds on top: FHIR and OMOP semantics, data permits, the right to opt out (Art. 71), fees and the gate in front of the secure processing environments.
What the hub and Simpl-Open share
- One connector: both run Eclipse EDC, Simpl in its simpl-edc connector, and speak the Dataspace Protocol for catalogue, negotiation and transfer
- Trust from an authority: a Simpl data space's Governance Authority can be a trusted issuer in the hub's IdentityHub, over DCP v1.0; checked on compose with a stand-in authority (#710)
- Bilateral agreements: a provider and a consumer agree, and the provider's connector enforces the policy (Simpl Q&A)
- DCAT-AP catalogues: Simpl adopts DCAT-AP in Innsbruck, and the hub's HealthDCAT-AP Release 8 is its health profile (ADR-063)
- Data stays with its holder: both federate, and neither copies data into a central store (Simpl architecture)
Regulatory Compliance
- EHDS, primary use: rights of natural persons (Art. 3 to 10): access, insertion, rectification, portability, restriction, information on access, opt-out
- EHDS, secondary use: permitted purposes (Art. 53), health data access bodies (Art. 55), applications and data permits (Art. 67, 68)
- GDPR: rights of the data subject (Art. 15 to 22)
- Cyber Resilience Act: a software bill of materials and a coordinated vulnerability disclosure policy (Art. 13, Annex I Part II); reporting under Art. 14
- BSI C5: the cloud security criteria of C5:2020, domains DEV and OPS (the hub against C5)
Next steps toward interoperability
- Now: a credential from Simpl's own issuer service in the hub's IdentityHub: Simpl signs JSON-LD credentials with Ed25519, and the test is whether the hub verifies one and a negotiation completes on it
- Now: the DSP compatibility kit against Simpl's published connector: release 1.0.26 builds on EDC 0.10.1, older than DSP 2025-1, and the upgrade to EDC 0.17.0 is not merged; the gaps go to the Simpl programme
- Now: a second data space on compose, whose Governance Authority admits a fictional insurer, AlphaKasse DE, on the trust built in #710
- Now: a use case across both sectors: AlphaKasse rewards an active year with a bonus and receives only a yes or no, never the data behind it (#934)
- With Simpl's move to DCP (SSI Tier 2, Innsbruck): EDC 1.0 in the same step, since DCP v1.0, the IdentityHub and the IssuerService ship with it
- With Innsbruck: the hub's catalogue as the health profile of Simpl's DCAT-AP model (roadmap), and search across both data spaces
The plan, the use case and its legal guardrails are in issue #934. EHDS Art. 54 keeps the bonus on the person's side: no premium or exclusion is ever decided from secondary-use data.
8. Architecture Decision Records
All 97 ADRs are maintained as standalone Markdown files in docs/ADRs/ .
Accepted
Accepted
Superseded
Accepted
Superseded
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Superseded
Accepted
Superseded
Superseded
Accepted
Accepted
Accepted
Accepted
Accepted
Superseded
Superseded
Accepted
Accepted
Accepted
Superseded
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Superseded
Accepted
Accepted
Superseded
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Proposed
Accepted
Accepted
Accepted
Accepted
Proposed
Accepted
Accepted
Superseded
Proposed
Accepted
Accepted
Accepted
Accepted
Proposed
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Accepted
Proposed
Proposed
Proposed
Proposed
Accepted
Accepted
Accepted
Accepted
Proposed