Overview
Identities and verifiable credentials
The PGTEC Data Space needs a reliable way to identify organisations, services and technical components that participate in it. This identity layer is the foundation for governance, access control and auditability.
This page describes, at a high level, how identities and verifiable credentials are used in the data space. For concrete details on the DID formats and how to generate them with Docker, see Decentralized identifiers.
Roles in the Data Space
From the point of view of identity and access, the main roles in the PGTEC data space are:
-
Data Space operator
Manages the core services of the data space, defines governance rules and operates shared infrastructure. -
Data Provider
Publishes climate, hydrological or risk-related data into the data space using agreed information models and interfaces. -
Data Consumer
Accesses data and services from the data space for visualisation, modelling, decision support or research. -
Service Provider
Offers applications or analytical services that run on top of PGTEC data (for example, early warning tools or hydrological simulations). -
Technical integrator
Develops and operates connectors, pipelines or adapters that link external systems to the data space.
Each organisation can hold one or more of these roles, and the identity and credential system needs to reflect that.
Decentralized Identifiers in PGTEC
To represent identities in a portable and cryptographically verifiable way, PGTEC uses decentralized identifiers (DIDs). A DID:
- Is a URI-like identifier that is globally unique and persistent
- Resolves to a DID document containing public keys and service endpoints
- Is not tied to a single central registry or certificate authority
Organisations can join with any DID method, although did:web is recommended. These are the two methods used in PGTEC:
- did:web, which binds identities to existing web domains and HTTPS infrastructure. It is the recommended method for organisations: the participants deployed by the data space use
did:web:<participant>.pgtec-vrain-dataspace.eu, and their DID document is served athttps://<participant>.pgtec-vrain-dataspace.eu/.well-known/did.json. - did:key, which derives identifiers directly from public keys. It is used for individuals and for tests, for example the identity that the custodial wallet creates for each person.
The practical details of did:web and did:key, including Docker-based helpers, are described in Decentralized identifiers.
Verifiable Credentials
On top of DIDs, the data space uses verifiable credentials to express claims about identities in a standardised way.
A verifiable credential typically contains:
- An issuer identifier (the DID of the entity that issues the credential)
- A subject identifier (the DID of the entity the credential talks about)
- A set of claims (for example, roles, permissions or attributes)
- Cryptographic proofs that allow any verifier to check authenticity and integrity
Verifiable credentials are designed to be:
- Machine-readable and interoperable between systems
- Selective, so that holders can disclose only what is necessary
- Verifiable without contacting the issuer each time, using public keys published in DID documents
Credential types in PGTEC
The data space currently uses three credential types, issued by each participant's Keycloak (Getting credentials):
| Credential | Subject | Purpose |
|---|---|---|
LegalPersonCredential |
An organisation representative | Identifies the organisation; used, for example, to log in to the Marketplace as a provider or consumer |
ServiceCredential |
A person or application | Grants access to services of a provider. Carries roles (tetis_user, hidris_user, smartflow_user, citizen...) that the provider's policies check |
MachineCredential |
A machine or process | Machine-to-machine access to APIs |
Other types described in the design of the data space (membership, delegation, connector attestation) are not issued yet. All credentials follow the same pattern of issuer, subject, claims and proof.
Roles are an entitlement: they are not given to every user by default, but are linked to what an organisation is allowed to do, in many cases because it bought an offer. See Access control.
Credential Lifecycle
The identity and credential model follows a simple lifecycle:
-
Registration
An organisation requests membership in the onboarding portal with its DID (did:webrecommended) and signs the membership agreement. After approval by an administrator, its DID is registered in the Trust Anchor. -
Issuance
The participant's own Keycloak (OID4VC) signs credentials for its users with the participant's DID key. There is no single central issuer: every registered participant issues for its own users. People without a connector receive their credential from the citizen issuer (keycloak-ciudadania). -
Storage
The holder stores the credentials in a wallet on their device, or, for people who log in with a digital certificate, in the custodial wallet. -
Presentation
When accessing data or services, the holder presents one or more credentials to prove that it has the required roles or permissions. -
Verification
The provider's verifier checks the proofs, resolves the issuer's DID document, checks the issuer in the Trust Anchor and in its own local trusted list, and then APISIX and OPA apply the ODRL policies (Access control). -
Revocation and update
Credentials can be revoked or replaced if roles change, access is withdrawn or errors are found.
Using identities and credentials for access control
In the PGTEC data space, services use identities and credentials to make access decisions. A typical pattern is:
- Authenticate the caller using its DID and cryptographic material
- Request verifiable credentials that prove specific roles or attributes
- Evaluate those credentials against local policy (for example, “only holders of a valid data-provider credential for region X can publish entities in this context”)
- Grant or deny the requested operation based on the result
This approach allows:
- Fine-grained access control that is independent of any single platform
- Explicit governance rules encoded in credentials and policies
- Better traceability of who accessed what, under which authorisation
Current status
The identity layer is in operation in the PGTEC data space:
- Every participant has a DID registered in the Trust Anchor.
- Each participant's Keycloak issues
LegalPersonCredential,ServiceCredentialandMachineCredentialwith OID4VC. Wallets compatible with OID4VCI/OID4VP are supported, such as the EUDI reference wallet and the Lissi wallet. - Users without a wallet can log in with a digital certificate (FNMT/ACCV) through the custodial wallet.
- Access to services is decided by credentials, the providers' local trusted lists and ODRL policies.
Still evolving: revocation and update processes of credentials, schemas of additional credential types, and how issuers are discovered when participants run in different clusters. The process to join the data space is described in Join data space.