Skip to content

Access Control

Introduction

This page explains how a request to a service of the data space is authenticated and authorised, which component makes each decision, and how buying an offer in the Marketplace ends up opening (or closing) access.

Access is decided in three layers, each answering a different question:

Layer Question Where it lives
1. Membership Is the credential's issuer a member of the data space? Central Trusted Issuers Registry (TIR) in the Trust Anchor
2. Authorisation to the service Does this credential, with these roles, have the right to use this provider's services? Provider's local Trusted Issuers List (TIL), driven by the Credentials Config Service (CCS)
3. Policy on the request Does a policy allow this path, method and party? ODRL policies in the provider's PAP, evaluated by OPA in APISIX

Components in a connector

Component Function
VCVerifier Receives a verifiable presentation (OID4VP), validates it and returns an access token (JWT)
Credentials Config Service (CCS) Database of "services": which credential types each service accepts and which trusted lists to query
Trusted Issuers List (local TIL) Provider's list of issuers allowed to access its services, with the claims they must carry (for example roles)
ODRL-PAP Stores the provider's ODRL policies
OPA Evaluates the policies for each request (the policy decision point)
APISIX Gateway that intercepts every request, asks OPA and forwards or rejects
TM Forum APIs + Contract Management Catalogue and lifecycle of purchases; writes policies and TIL entries when a product is acquired

Credential types

Credential Held by Typical use
LegalPersonCredential Organisation representative Login to the Marketplace, identity of the organisation
ServiceCredential A person or application Access to a provider's services (dashboards, APIs). Carries roles such as tetis_user, hidris_user, citizen
MachineCredential A machine Machine-to-machine access (for example SmartFlow API, data APIs)

The first one is checked only for membership (trusted issuer "" in the verifier). ServiceCredential and MachineCredential are additionally checked against the provider's local TIL*.

Layer 1: membership (TIR)

The verifier resolves the issuer's DID (did:web:<participant>.<domain>), checks the signature and queries the central TIR at tir.citcom-vrain-dataspace.eu. If the issuer is not registered there, nothing is accepted. A participant is registered after approval in the onboarding process; you can list the registered DIDs with:

curl -s "https://tir.citcom-vrain-dataspace.eu/v4/issuers?page%5Bsize%5D=100" | jq '[.items[].did]'

Layer 2: authorisation to the provider's service (local TIL)

Being a member is not enough to use a given provider's service. For ServiceCredential and MachineCredential the verifier queries the local TIL of the provider being called. Each entry says: "credentials issued by DID X of type Y are accepted if their claim roles takes only these values".

Two properties are important:

  • A role is an entitlement of the purchase, not a base permission of the user. A credential with clearence1 does not reach a service unless the provider's TIL has an entry for that issuer.
  • The verifier rejects a credential if it carries any role outside the allowed list. An issuer's entry must therefore include all roles the issuer's credentials carry (for example a citizen credential may carry clearence1, hidris_user and tetis_user).

The TIL is written by the Contract Management when someone buys an offer, and by the provider for manual grants. Citizens do not buy offers: each provider decides in its trusted list and policies what the credentials of the citizen issuer can do.

Layer 3: ODRL policy on the request

APISIX forwards the request context to OPA, which evaluates the provider's ODRL policies. A typical policy says "a party holding role X may use the target path Y". Policies of purchased offers add a constraint on the buyer (vc:currentParty equals the buyer's DID) and carry the order identifier in their odrl:uid, so that they can be removed when the order is cancelled.

The Marketplace shows these policies as plain-language sentences (for instance "Participants with role tetis_user may use /tetis/*"), with the original JSON behind an information icon, and the FDSC Dashboard shows them to administrators grouped by service.

The purchase flow

  1. The provider publishes a Product Specification with two features: a credentials configuration (credential type and role required) and an authorization policy (ODRL). See Publishing offers.
  2. A consumer buys the offer. The central Marketplace creates a product order in its TM Forum API.
  3. The Marketplace's contract management notifies the provider's contract management (a call to /order/start on the provider's host).
  4. The provider's contract management:
    1. registers the service in the verifier's CCS if needed,
    2. creates/updates an entry in the TIL for the buyer's issuer with the offer's role,
    3. writes the ODRL policy in the PAP, restricted to the buyer.
  5. The buyer's users, holding a credential with that role, can now obtain a token and call the service.

When the order changes to anything other than completed (cancellation, termination), the contract management reverses the process: access is revoked.

Which provider handles an order

All connectors subscribe to the central TM Forum, so every order reaches all of them. Each connector decides whether the order is its own by checking the provider role of the product specification. The Marketplace creates specifications with the role seller, so connectors are configured with organization.provider.role: seller; otherwise each connector would write policies for other providers' products.

Common access problems are described in Operations.