Elffuss BraidHub

kikocis/gaiax-credentials-tool public

Changeset: 9c890de9d40d
9c890de9d40d Create LICENSE AndrΓ©s GarcΓ­a Mangas,
.env.example127 B
.gitignore61 B
LICENSE1.1 KiB
Makefile432 B
README.md3.9 KiB
certbot-certonly.shexecutable784 B
clone-sdsigner.shexecutable267 B
create-sdsigner-conf.shexecutable626 B
run-sdsigner.shexecutable1.7 KiB
sd-sign-process.graffle159.5 KiB
sd-sign-process.png41.5 KiB
self-description.json1.3 KiB
ssl.conf266 B

README.md

Gaia-X Self-Descriptions

A simple proof of concept of the process to build and sign a Self-Description using the Gaia-X Compliance Service. This has been developed in the context of the DATA CELLAR Horizon Europe project.

Prerequisites

  • A Linux server that has ports 80 and 443 exposed to the Internet. You also need sudo access.
  • Make.
  • Docker.
  • Git.
  • A public DNS domain that points to the IP address of the previous Linux server.

Configuration

Create an .env file in the root folder that defines the following variables:

VariableDescription
CERTBOT_DOMAINThe domain for which a Let's Encrypt certificate will be obtained.
CERTBOT_EMAILThe email of the domain owner.
DELTA_DAO_SDSIGNER_COMMITdeltaDAO/self-description-signer is a tool that simplifies the signing and validation of a Self-Description. This variable represents the commit hash that will be checked out locally.

Check out the .env.example file to see an example.

Please note that the DELTA_DAO_SDSIGNER_COMMIT hash that appears in .env.example is the version that we used to validate this proof of concept. This means that you should probably use the same value unless you explicitly want to test another version of self-description-signer.

Then, update the provided self-description.json file to match the information of your Participant.

Run the project

Simply run:

make run-self-description-signer

The output will look something like the following:

./clone-sdsigner.sh
+ : f220dc1e2c1b0c302b10e58a0ad9c467d6c5ad37
+ git clone https://github.com/deltaDAO/self-description-signer.git self-description-signer
Cloning into 'self-description-signer'...
remote: Enumerating objects: 244, done.

[...]

πŸ”’ SD signed successfully (local)
βœ… Verification successful (local)
πŸ“ ./output/1668009334582_self-signed_LegalPerson.json saved
πŸ“ ./output/1668009334582_did.json saved 

πŸ” Checking Self Description with the Compliance Service...
'Something went wrong:'
{
  statusCode: 409,
  message: 'Could not load document for given did:web: "did:web:gaiax.ctic.es#X509"',
  error: 'Conflict'
}

[...]

πŸ”’ SD signed successfully (local)
βœ… Verification successful (local)
πŸ“ ./output/1668009348412_self-signed_LegalPerson.json saved
πŸ“ ./output/1668009348412_did.json saved 

πŸ” Checking Self Description with the Compliance Service...
πŸ”’ SD signed successfully (compliance service)
βœ… Verification successful (compliance service)
πŸ“ ./output/1668009348412_complete_LegalPerson.json saved

The final, validated self description will be located in:

self-description-signer/output/<timestamp>_complete_LegalPerson.json

A simplified version of this process is shown in the following diagram:

Self-Description sign process