Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Gaia-X compliance credentials in policy enforcement #14

Open
YassirSellami opened this issue Jun 19, 2023 · 1 comment
Open

Use Gaia-X compliance credentials in policy enforcement #14

YassirSellami opened this issue Jun 19, 2023 · 1 comment

Comments

@YassirSellami
Copy link

YassirSellami commented Jun 19, 2023

Feature Request

Participants should be able to use Gaia-x compliance credentials as policy enforcement for contract negotiation or access control.
This should apply to compliance credentials regardless of the credential subject type (participant or service).
In order to identify these credentials the property credentialSubject.type can be used with the value gx:compliance
As prerequisite, an integrity verification should also be performed in order to know if the subject Verifiable credential (the vc which have been certified as compliant) have been changed or not, which can be done as follows:

  • Resolve the id the credential subject, canonize it using the JSON Canonicalization Scheme described here: RFC8785
  • Perform a hash on the result using the algorithm provided in the credential subject in the verifiable credential credentialSubject.integrity, a sha256 at this time
  • Compare the result from above with the value of the integrity present in the credential

An example of a compliance credential subject:
"credentialSubject": [ { "type": "gx:compliance", "id": "did:web:wizard.lab.gaia-x.eu:development:api:credentials:2d37wbGvQzbAQ84yRouh2m2", "integrity": "sha256-00c7d91bf67242164d72656e1036361f5b9833e3a06fceeea9a1c058ea139777" } ]
A complete VC can be found here

Which Areas Would Be Affected?

For the integrity verification:

  • Create a new credential verifier in the identity hub
    For the verification of the presence of the credential or not:
  • Create a constraint function in this repository (eclipse-edc/TrustFrameworkAdoption)

Why Is the Feature Desired?

To make it easier for participant in a dataspace to only communicate with gaia-x compliant credential holders

Solution Proposal

A Pull request is already available for the constraint function part.

Type of Issue

New feature

@github-actions
Copy link

Thanks for your contribution 🔥 We will take a look asap 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant