eclipse-tractusx / digital-product-pass

digital product pass
https://github.com/eclipse-tractusx/digital-product-pass
Apache License 2.0
21 stars 10 forks source link

[DPP] Data Sovereignty checks performed #300

Closed matbmoser closed 1 month ago

matbmoser commented 2 months ago

Data Sovereignty Checks:

We are using EDC: 0.7.0

Policy Configuration Guide: https://github.com/eclipse-tractusx/digital-product-pass/blob/main/docs/data-sovereignty/PolicyConfigGuide.md

matbmoser commented 2 months ago

This guide to be released: https://github.com/catenax-ng/tx-digital-product-pass/blob/71f7a5533e0c4fa34d0016121ce254c146f29c81/docs/data-sovereignty/PolicyConfigGuide.md

Contains all the explanation how the policy configuration is done!

matbmoser commented 1 month ago

Waiting for app to be available in INT

matbmoser commented 1 month ago

Test passed in INT! image

matbmoser commented 1 month ago

All the points are fulfilled, requesting today the data sovereignty review... The framework agreement was requested in the portal and approved. Also the usage purpose needs to match in the configuration.

matbmoser commented 1 month ago

Policy configured:

{
   "@context": {
      "odrl": "http://www.w3.org/ns/odrl/2/",
      "cx-policy": "https://w3id.org/catenax/policy/"
   },
   "@type": "PolicyDefinitionRequest",
   "@id": "cx-policy",
   "policy": {
      "@type": "Policy",
      "profile": "cx-policy:profile2405",
      "odrl:permission": [
         {
            "odrl:action": "USE",
            "odrl:constraint": {
               "@type": "LogicalConstraint",
               "odrl:and": [
                  {
                     "@type": "Constraint",
                     "odrl:leftOperand": "cx-policy:Membership",
                     "odrl:operator": {
                        "@id": "odrl:eq"
                     },
                     "odrl:rightOperand": "active"
                  },
                  {
                     "@type": "Constraint",
                     "odrl:leftOperand": "cx-policy:FrameworkAgreement",
                     "odrl:operator": {
                        "@id": "odrl:eq"
                     },
                     "odrl:rightOperand": "circulareconomy:1.0"
                  },
                  {
                     "@type": "Constraint",
                     "odrl:leftOperand": "cx-policy:UsagePurpose",
                     "odrl:operator": {
                        "@id": "odrl:eq"
                     },
                     "odrl:rightOperand": "cx.circular.dpp:1"
                  }
               ]
            }
         }
      ],
      "odrl:obligation": [],
      "odrl:prohibition": []
   }
}
matbmoser commented 1 month ago

Policy selection modal is enabled: image

If user selects a policy which he is not allowed the backend will send this error: image

matbmoser commented 1 month ago

In case is the allowed one it will let it work.

matbmoser commented 1 month ago

Tested runned and documented.