Architecture
PGTEC Data Space Architecture
This page describes the technical architecture of the PGTEC data space as it is currently deployed:
- How participants connect to the data space.
- Which common services are shared by everyone.
- Which components make up each participant's FIWARE Data Space Connector (FDSC).
- Where and how everything runs.
It complements the high-level introduction in the main Data Space page. The pages linked at the end go deeper into each topic.
The architecture is designed to:
- Let multiple organisations share climate and hydrological data and services.
- Keep each participant in control of the data and services it exposes.
- Apply common rules for trust, access control and interoperability.
At the centre are FIWARE Data Space Connectors (one per participant) and a small set of shared trust and discovery services (Trust Anchor, Marketplace, Onboarding portal), all deployed on Kubernetes.
Participants and roles
From the point of view of the data space, participants play one or more roles:
-
Data Providers Organisations that expose observed or forecast data through their own connector. Examples: AEMET, CHJ, AVAMET and other climate data providers.
-
Service Providers Organisations that expose value-added services (hydrological models, dashboards, simulations, APIs) that consume data from the space and publish their results as services. Examples: IIAMA (TETIS, Water4Cast) and VRAIN (Hidris, nowcast, SmartFlow API).
-
Data Consumers Any participant, or citizen with a valid credential, that consumes datasets or services published by providers.
-
Data Space operator Runs the shared services (Trust Anchor, Marketplace, Onboarding) and decides who is admitted.
Most participants play more than one role. For example, IIAMA and VRAIN consume climate data and provide services built on it.
High-level architecture
The data space is composed of:
- One FIWARE Data Space Connector per participant, each in its own Kubernetes namespace.
- Shared services: Trust Anchor, central Marketplace, Onboarding portal, citizen issuer and a custodial wallet for login with a digital certificate.
- Per-participant identity: each participant's Keycloak acts as a verifiable-credential issuer (OID4VC) for its own users, and publishes a
did:webidentity. - A Kubernetes cluster (k3s) on a server at UPV hosting everything, exposed to the internet with public DNS names over HTTPS.
Each participant connects through its own connector. The connector is a standardised gateway where:
- Incoming requests are authenticated with verifiable credentials.
- Usage policies (ODRL) are enforced before any data is returned.
- Data is exposed through interoperable APIs (NGSI-LD, TM Forum).
Naming convention
Every service follows the pattern <component>-<participant>.<domain> and identities are did:web:<participant>.<domain>:
| Component | Example |
|---|---|
| Keycloak (issuer) | keycloak-avamet.pgtec-vrain-dataspace.eu |
| Verifier | verifier-avamet.pgtec-vrain-dataspace.eu |
| APISIX gateway | apisix-avamet.pgtec-vrain-dataspace.eu |
| DID document | avamet.pgtec-vrain-dataspace.eu/.well-known/did.json |
| Admin dashboard | dashboard-iiama.pgtec-vrain-dataspace.eu |
| Trust anchor | tir.citcom-vrain-dataspace.eu |
Details on DNS and certificates are in Network and certificates.
Shared trust and governance services
Trust Anchor
The Trust Anchor is the root of trust of the data space. It ensures that interactions only happen between authenticated and authorised participants.
- Trusted Issuers Registry (TIR): the list of participants (DIDs) that are admitted to the data space. Every verifier consults it to decide whether to accept a credential issued by someone.
Its read API is public, so any verifier (or anyone) can check whether an organisation is a member.
Two kinds of trusted-issuer list
The central TIR answers "is this organisation a member of the data space?". Each provider additionally has a local TIL that answers "may this credential access my services?". See Access control.
Marketplace
The Marketplace is the central catalogue where providers publish their data and services as governed offers and where consumers discover and buy access. It is based on the Business API Ecosystem with TM Forum APIs, with PGTEC extensions:
- Login with a verifiable credential (wallet) or with a digital certificate through the custodial wallet.
- Policies displayed as plain-language sentences, with the original JSON available on demand.
- An in-app
/guidessection for providers and consumers. - E-mail notifications on order creation and status changes.
- Fully translated Spanish interface.
When a consumer buys an offer, the Marketplace's contract management notifies the provider's connector, which writes the matching access policies and trust entries. See Access control and Marketplace.
Credential issuance (Keycloak with OID4VC)
There is no single central issuer. Each participant runs its own Keycloak with the OID4VC plugin, and issues credentials (LegalPersonCredential, ServiceCredential, MachineCredential) to its own users. The trust that this participant is allowed to issue comes from being registered in the Trust Anchor.
People who do not have a connector are served by the citizen issuer (keycloak-ciudadania), the Keycloak of the ciudadania participant, which issues them a ServiceCredential so that they do not need to deploy anything (how to join as a citizen). See Getting credentials and Identities and credentials.
Onboarding portal
Organisations request membership through a web form (identity, DID, signed membership agreement). Administrators review the request and, once approved, the participant's DID is registered in the Trust Anchor. The same portal creates the accounts of citizens, who only give their name and e-mail. See Onboarding and Participant onboarding.
FIWARE Data Space Connector
Each participant runs its own connector (Helm chart data-space-connector, version 10.x, deployed with Terraform from the module test_dsc_v10). Its components, grouped by function:
Authentication and authorisation
- APISIX API Gateway — public entry point. Every request to a protected route is checked before being forwarded.
- OPA + ODRL-PAP — Policy Decision Point. Evaluates ODRL policies stored in the Policy Administration Point against the credential claims.
- VCVerifier — checks the verifiable presentations sent by clients and issues a short-lived access token (JWT) if valid.
- Credentials Config Service (CCS) — tells the verifier which credential types are accepted for each service and which trusted lists to consult.
- Trusted Issuers List (local) — the provider's own list of who may access its services and with which roles.
- Keycloak — issuer of verifiable credentials for the participant's users.
Data publication and discovery
- NGSI-LD context broker: every connector includes Scorpio. Data providers with a real-time layer serve their data with Orion-LD, with Mintaka and TimescaleDB for temporal queries.
- TM Forum APIs and Contract Management — expose the provider's catalogue and handle the lifecycle of purchases (create, change, revoke access).
Provider-specific services
Behind the gateway, each provider publishes its own services as APISIX routes: TETIS and Water4Cast dashboards (IIAMA), the Hidris model and nowcast (VRAIN), SmartFlow API, etc. Providers with real-time data also run Airflow, Orion-LD, Mintaka and TimescaleDB (Data Flow).
Admin dashboard
Each connector can run the FDSC Dashboard, an administration UI with the provider's ODRL policies explained in plain language, grouped by service, trusted lists and a usage log.
Request flow
The following sequence summarises what happens when a consumer calls a protected service:
Consumer Provider Keycloak Provider verifier APISIX + OPA Service
│ (1) credential │ │ │ │
│◄────────────────────┤ VC issued (OID4VC) │ │ │
│ (2) present VP ───────────────────────────────►│ │ │
│ │ (3) signature + issuer in TIR/TIL? │ │
│◄───────────────────────────── access token (JWT) ┤ │ │
│ (4) request + JWT ────────────────────────────────────────────────────►│ │
│ │ │ (5) ODRL policy ok? ──────────────►
│◄────────────────────────────────────────────────────────────── response ┤◄───────────────┤
- The user obtains a credential from their organisation's Keycloak (or from the custodial wallet, with a digital certificate).
- The client presents the credential to the provider's verifier.
- The verifier checks the signature, resolves the issuer's DID and checks the issuer in the Trust Anchor and the provider's local TIL.
- With the resulting token the client calls APISIX.
- APISIX asks OPA whether an ODRL policy allows that path, method and credential. Only then does the request reach the service.
Minimum Viable Data Space (MVDS)
The project started with a reduced scope to validate the key interactions: Trust Anchor, a few climate-agency connectors and an IIAMA connector acting as consumer of climate data and provider of hydrological services.
The deployment has since grown beyond the MVDS: the central Marketplace, per-participant credential issuance, the onboarding portal, the citizen issuer, the VRAIN services and login by digital certificate are all in operation. The diagram highlights the initial scope within today's deployment.
Infrastructure
The data space runs on a k3s Kubernetes cluster on a server at UPV, exposed to the internet with public DNS names and Let's Encrypt certificates. Each connector runs in its own namespace, together with its auxiliary services (databases, Keycloak, dashboards). Everything is declared as Terraform code.
See Deployment and infrastructure for an overview of the layers and Operations for common problems.
History
The data space was originally designed for, and first deployed on, AWS (managed Kubernetes). It was later moved to a UPV server running k3s. The component architecture did not change.
Related pages
- Network and certificates: public domains, HTTPS and how one service trusts another.
- Access control: verifier, trusted lists, ODRL policies and the purchase flow.
- Identities and credentials and DIDs: the identity layer.
- FDSC Dashboard: administration UI of each connector.
- Custodial wallet: access with a digital certificate.
- Data Sources, Data and services and Data Flow: the data that flows through the connectors.