Comments (4)
Hi @arnoweiss
thanks for raising this, just to check which one is working for you this one?
{
"@id": "pol-def-id",
"policy": {
"@type": "odrl:Set",
"odrl:permission": {
"odrl:action": {
"odrl:type": "http://www.w3.org/ns/odrl/2/use"
},
"odrl:constraint": {
"odrl:and": [
{
"odrl:leftOperand": "cx-policy:FrameworkAgreement",
"odrl:operator": {
"@id": "odrl:eq"
},
"odrl:rightOperand": "traceability:3.0"
},
{
"odrl:leftOperand": "https://w3id.org/catenax/policy/UsagePurpose",
"odrl:operator": {
"@id": "odrl:eq"
},
"odrl:rightOperand": "cx.core.qualityNotifications:1"
}
]
}
},
"odrl:prohibition": [],
"odrl:obligation": []
},
"@context": {
"@vocab": "https://w3id.org/edc/v0.0.1/ns/",
"edc": "https://w3id.org/edc/v0.0.1/ns/",
"tx": "https://w3id.org/tractusx/v0.0.1/ns/",
"tx-auth": "https://w3id.org/tractusx/auth/",
"cx-policy": "https://w3id.org/catenax/policy/",
"odrl": "http://www.w3.org/ns/odrl/2/"
}
}
from tractusx-edc.
Your payload works as expected, mine doesn't. The UsagePurpose
constraint has no influence on the result.
from tractusx-edc.
From a quick look seems that what's happening here is that your payload actually works and gets evaluated in the catalog request with permission denied,
while my payload is wrong since the expanded version will be different from your.
"odrl:leftOperand": "cx-policy:FrameworkAgreement",
"http://www.w3.org/ns/odrl/2/leftOperand": [
{
"@value": "cx-policy:FrameworkAgreement"
}
]
which will not trigger the policy evaluation function.
while yours it's directly expanded and triggers the function
if you want to use the prefix i think you should have
"odrl:leftOperand": {
"@id", "cx-policy:FrameworkAgreement",
}
and should yield the same result (permission denied)
from tractusx-edc.
Thanks for hint
from tractusx-edc.
Related Issues (20)
- Unable to use Azure Workload Identity, AZURE_CLIENT_ID and AZURE_TENANT_ID are overritten by chart. HOT 3
- TRG 5.10 - run deployment tests against different K8S versions
- EDC 0.7.1 → Wrong URLs in Walkthrough and Swagger? HOT 1
- Update swagger file composition
- EDC 0.7.1 → /proxy → value.yaml HOT 1
- EDC 0.7.1 → DataAddress validator → How to activate? HOT 2
- EDC 0.7.1 → `AmazonS3-PUSH` and `AzureStorage-PUSH` → How to deactivate?
- `leftOperand` in the catalog is handled as `value` and not as `id` HOT 5
- replace `dataplane-selector-configuration` with data-plane self registration
- Convey `signaling` api context into `control`
- Helm charts: take API keys from Vault by default HOT 2
- [EDC 0.7.1] Shell Lookup from EDC Data Plane HOT 20
- Mandatory change in licensing and legal documentation HOT 2
- Reintroduce VC checks on Access Policies HOT 3
- bug: Failed to build docker images via Git Bash for Windows HOT 1
- Remove unneeded test dependencies
- Usage of proprietary Azure OpenTelemetry Distro HOT 2
- HTTP 500 on /v2/edrs/request with sortField HOT 6
- Add openapi spec to `.tractusx` file
- Add docs on access policy checks against VCs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tractusx-edc.