Skip to content

Commit 8be68f5

Browse files
authored
Merge pull request #62 from FIWARE/gaia-x-profile
update odrl-pap and documentation
2 parents d20f865 + 9a3f534 commit 8be68f5

File tree

4 files changed

+76
-4
lines changed

4 files changed

+76
-4
lines changed

charts/data-space-connector/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: data-space-connector
33
description: Umbrella Chart for the FIWARE Data Space Connector, combining all essential parts to be used by a participant.
44
type: application
5-
version: 7.34.0
5+
version: 7.37.0
66
dependencies:
77
- name: postgresql
88
condition: postgresql.enabled
@@ -33,7 +33,7 @@ dependencies:
3333
# authorization
3434
- name: odrl-pap
3535
condition: odrl-pap.enabled
36-
version: 0.2.2
36+
version: 0.3.0
3737
repository: https://fiware.github.io/helm-charts
3838
- name: apisix
3939
condition: apisix.enabled

charts/data-space-connector/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ apisix:
252252
sidecars:
253253
# -- we want to deploy the open-policy-agent as a pdp
254254
- name: open-policy-agent
255-
image: openpolicyagent/opa:0.64.1
255+
image: openpolicyagent/opa:1.2.0
256256
imagePullPolicy: IfNotPresent
257257
ports:
258258
- name: http

doc/GAIA_X.MD

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,77 @@ The request has to be flagged as insecure, since the generated certificate is se
6666
}
6767
]
6868
}
69+
```
70+
71+
## Gaia-X ODRL Profile
72+
73+
As part of [Gaia-X](https://gaia-x.eu/), an [ODRL-Profile](https://gitlab.com/gaia-x/lab/policy-reasoning/odrl-vc-profile) with the goal to be able to refer in a clear and preciese way to Verifiable Credential Claims within ODRL-Policies.
74+
The FIWARE Data Space Connector supports the usage of all defined components:
75+
76+
77+
### ovc:Constraint
78+
79+
Its a sub type of an [odrl:Constraint](https://www.w3.org/TR/odrl-vocab/#constraints), that requires an ovc:leftOperand and ovc:credentialSubjectType to be present, beside the mandatory [odrl:operator](https://www.w3.org/TR/odrl-vocab/#term-Operator) and [odrl:rightOperand](https://www.w3.org/TR/odrl-vocab/#term-RightOperand).
80+
81+
### ovc:leftOperand
82+
83+
Implementation of the [odrl:leftOperand](https://www.w3.org/TR/odrl-vocab/#term-LeftOperand) that addresses a Verifiable Credential's Claim by using the Json-Path. Json-Paths into arrays are currently not supported.
84+
85+
Supported:
86+
```shell
87+
"ovc:leftOperand": "$.credentialSubject.my.claim"
88+
```
89+
90+
Not supported:
91+
```shell
92+
"ovc:leftOperand": "$.credentialSubject.my.claim[0]"
93+
```
94+
95+
### ovc:credentialSubjectType
96+
97+
```ovc:credentialSubjectType``` is a way to define the type of Verifiable Credential that the ```ovc:Constraint``` is intended for.
98+
99+
100+
## Usage
101+
102+
Policies can be created at the [ODRL-PAP](https://github.com/wistefan/odrl-pap).
103+
104+
> :bulb: The following examples use the [local-deployment of the connector](./deployment-integration/local-deployment/LOCAL.MD). However, all of them can be run on any other installation of the Data Space Connector.
105+
106+
The policy would allow any caller providing a Verifiable Credential with the the ```credentialSubject.type``` being ```gx:LegalParticipant``` and containing a claim ```credentialSubject.gx:legalAddress.gx:countrySubdivisionCode``` with the value either being ```FR-HDF``` or ```BE-BRU``` to read the entity with the id ```my-secured-object``` .
107+
108+
```shell
109+
curl -X 'POST' http://pap-provider.127.0.0.1.nip.io:8080/policy \
110+
-H 'Content-Type: application/json'
111+
-d '{
112+
"@context": {
113+
"odrl": "http://www.w3.org/ns/odrl/2/",
114+
"ovc": "https://w3id.org/gaia-x/ovc/1/",
115+
"rdfs": "http://www.w3.org/2000/01/rdf-schema#"
116+
},
117+
"@id": "urn:uuid:some-uuid",
118+
"@type": "odrl:Policy",
119+
"odrl:profile": "https://github.com/DOME-Marketplace/dome-odrl-profile/blob/main/dome-op.ttl",
120+
"odrl:permission": {
121+
"odrl:assigner": {
122+
"@id": "https://www.mp-operation.org/"
123+
},
124+
"odrl:target": "my-secured-object",
125+
"odrl:assignee":{
126+
"@id": "vc:any"
127+
},
128+
"odrl:action": {
129+
"@id": "odrl:read"
130+
},
131+
"ovc:constraint": [{
132+
"ovc:leftOperand": "$.credentialSubject.gx:legalAddress.gx:countrySubdivisionCode",
133+
"odrl:operator": "odrl:anyOf",
134+
"odrl:rightOperand": [
135+
"FR-HDF",
136+
"BE-BRU"
137+
],
138+
"ovc:credentialSubjectType": "gx:LegalParticipant"
139+
}]
140+
}
141+
}'
69142
```

doc/ONGOING_WORK.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ All planned work is listed in the [FIWARE Data Space Connector Taiga-Board](http
88
99
## Gaia-X Integration
1010

11-
* Support for the [Gaia-X ODRL-Profile](https://gitlab.com/gaia-x/lab/policy-reasoning/odrl-vc-profile) as part of the [ODRL-PAP](https://github.com/wistefan/odrl-pap)
1211
* Support for the Credentials Chain defined in the [24.07 Releas of the Identity, Credential and Access Management](https://docs.gaia-x.eu/technical-committee/identity-credential-access-management/24.07/pdf/document.pdf)
1312

1413
## Data Space Protocol Integration

0 commit comments

Comments
 (0)