pontus-x_cli 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +161 -6
- package/dist/gaia-x_compliance/generate-did-web/index.js +1 -9
- package/dist/gaia-x_compliance/generate-did-web/index.js.map +1 -1
- package/dist/gaia-x_compliance/{generate-participant-vcs → generate-participant-credentials}/index.js +69 -55
- package/dist/gaia-x_compliance/generate-participant-credentials/index.js.map +1 -0
- package/dist/gaia-x_compliance/generate-participant-credentials/templates/lrn-request.hbs +9 -0
- package/dist/gaia-x_compliance/generate-participant-credentials/templates/participant.hbs +31 -0
- package/dist/gaia-x_compliance/generate-participant-credentials/templates/tandc.hbs +16 -0
- package/dist/index.js +56 -9
- package/dist/index.js.map +1 -1
- package/dist/publish/samples/algo/index.js +5 -2
- package/dist/publish/samples/algo/index.js.map +1 -1
- package/dist/publish/samples/data/index.js +5 -2
- package/dist/publish/samples/data/index.js.map +1 -1
- package/dist/utils/connection.js.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/package-version.js +22 -0
- package/dist/utils/package-version.js.map +1 -0
- package/dist/utils/publish-script-runner.js.map +1 -1
- package/package.json +9 -8
- package/dist/gaia-x_compliance/generate-participant-vcs/index.js.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -4,11 +4,15 @@ Command Line Interface for the Pontus-X Data Space Ecosystem.
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
If you don't have npm installed, install Node.js and NPM followin g the instructions at https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
|
|
8
|
+
|
|
9
|
+
Then, install the Pontus-X CLI globally using npm:
|
|
10
|
+
|
|
7
11
|
```shell
|
|
8
|
-
npm install -g
|
|
12
|
+
npm install -g pontus-x_cli
|
|
9
13
|
```
|
|
10
14
|
|
|
11
|
-
Then, create a `.env` file in your
|
|
15
|
+
Then, create a `.env` file in your working directory with the network to be used, for instance, PONTUSXDEV or PONTUSXTEST:
|
|
12
16
|
|
|
13
17
|
```
|
|
14
18
|
NETWORK=PONTUSXDEV
|
|
@@ -16,6 +20,8 @@ NETWORK=PONTUSXDEV
|
|
|
16
20
|
|
|
17
21
|
## Currently available commands
|
|
18
22
|
|
|
23
|
+
The following subsections detail the available command to interact with the Pontus-X Data Space Ecosystem. Additionally, there is a final section [Prepare yourself for Gaia-X compliance](#prepare-yourself-for-gaia-x-compliance) that will guide you through the process of setting up a DID-Web server and generating the necessary participant credentials following the Gaia-X Trust Framework using two additional `pontus-x_cli` commands.
|
|
24
|
+
|
|
19
25
|
### export-private-key
|
|
20
26
|
|
|
21
27
|
Export your private key as a JSON file, to use later with the login command or for Pontus-X portals automation. More details at [export-key-as-json](./src/export-key-as-json/README.md)
|
|
@@ -126,11 +132,160 @@ In the same folder, you should have a `description.md` file with the description
|
|
|
126
132
|
|
|
127
133
|
There are samples of publish scripts and description Markdown files for algorithms and datasets in the [src/publish/samples](src/publish/samples) folder.
|
|
128
134
|
|
|
135
|
+
## Prepare yourself for Gaia-X compliance
|
|
136
|
+
|
|
137
|
+
This section will help you to prepare your institution for Gaia-X compliance. It will guide you through the process of setting up a DID-Web server and generating the necessary participant credentials following the Gaia-X Trust Framework.
|
|
138
|
+
|
|
139
|
+
### Obtaining a domain and SSL certificate
|
|
140
|
+
|
|
141
|
+
Get a root domain for DID-Web and the associated SSL certificate. We will use for this Let's Encrypt certificates, the free alternative among Gaia-X's [list of defined Trust Anchors](https://gaia-x.gitlab.io/policy-rules-committee/trust-framework/trust_anchors/#list-of-defined-trust-anchors).
|
|
142
|
+
|
|
143
|
+
There are different ways of getting a Let's Encrypt certificate: https://letsencrypt.org/getting-started/
|
|
144
|
+
|
|
145
|
+
For this example, and as later we will need to publish online some of the generated documents, we will use a Kubernetes cluster with Cert Manager to automate the certificate issuance, plus NGINX to serve the generated documents.
|
|
146
|
+
|
|
147
|
+
First of all, you will need a Kubernetes cluster that is publicly accessible. You can use a cloud provider like Google Cloud Platform (GCP) or Amazon Web Services (AWS), or a local Kubernetes cluster like [Minikube](https://minikube.sigs.k8s.io/docs/start/).
|
|
148
|
+
|
|
149
|
+
Once Minikube is running, don't forget to enable the ingress addon using the command: `minikube addons enable ingress`. Then, install Cert Manager following the instructions at https://cert-manager.io/docs/installation/
|
|
150
|
+
|
|
151
|
+
After Cert Manager is installed, you can create a ClusterIssuer resource to issue Let's Encrypt certificates. The file [letsencrypt-production.yaml](src/gaia-x_compliance/letsencrypt-production.yaml) provides an example of a ClusterIssuer resource, which can be applied to your cluster using the command:
|
|
152
|
+
|
|
153
|
+
```shell
|
|
154
|
+
kubectl apply -f letsencrypt-production.yaml
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Now, you can create a NGINX deployment, with associated service and ingress, which will request the certificate from Let's Encrypt, for instance that defined at [test-nginx.yaml](src/gaia-x_compliance/test-nginx.yaml). It can be deployed using the commands:
|
|
158
|
+
|
|
159
|
+
```shell
|
|
160
|
+
kubectl create namespace test
|
|
161
|
+
kubectl apply -f test-nginx.yaml
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Just wait for all the resources to be ready and the certificate to be issued. You can check the status of all the resource in the test namespace using the command:
|
|
165
|
+
|
|
166
|
+
```shell
|
|
167
|
+
kubectl get all -n test
|
|
168
|
+
```
|
|
129
169
|
|
|
130
|
-
|
|
170
|
+
And check the certificate to be issued using the command:
|
|
171
|
+
|
|
172
|
+
```shell
|
|
173
|
+
kubectl get certificate -n test
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
Wait till the certificate is marked as ready:
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
NAME READY SECRET AGE
|
|
180
|
+
your.domain.org-cert True your.domain.org-cert 2m
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Now, you can retrieve the certificate chain including the root certificate as required by Gaia-X. We can use an online service like https://whatsmychaincert.com. Use the following command configuring you domain name, e.g. `your.domain.org`, to retrieve the whole chain and store it in `certificate-chain.crt`:
|
|
184
|
+
|
|
185
|
+
```shell
|
|
186
|
+
curl -o certificate-chain.crt "https://whatsmychaincert.com/generate?include_leaf=1&include_root=1&host=your.domain.org"
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Also retrieve the secret key for the certificate using the command:
|
|
190
|
+
|
|
191
|
+
```shell
|
|
192
|
+
kubectl get secret your.domain.org-cert -n test -o jsonpath='{.data.tls\.key}' | base64 --decode > certificate.key
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Setting up a DID-Web server
|
|
196
|
+
|
|
197
|
+
Once we have set a public domain and its associated SSL certificate, we can set up a DID-Web source where we can publish Gaia-X complaint credentials for participants and assets.
|
|
198
|
+
|
|
199
|
+
To generate the did.json file required for DID-Web, we will use the Gaia-X [did-web-generator](https://gitlab.com/gaia-x/lab/did-web-generator) and provide as input the base URL for DID-Web, e.g. https://your.domain.org, and the name of the file with the SSL certificate, e.g. `certificate-chain.crt`.
|
|
200
|
+
|
|
201
|
+
The did.json file is generated using the `generate-did-web` command provided by `pontus-x_cli`:
|
|
202
|
+
|
|
203
|
+
```shell
|
|
204
|
+
pontus-x_cli generate-did-web -d https://your.domain.org -c certificate-chain.crt
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
The output is stored in a file named `did.json` and is to be made available from the DID-Web domain at the well-known path `/.well-known/did.json` together with the certificate file.
|
|
208
|
+
|
|
209
|
+
To do so, we will use the NGINX server we have set up before. We will create a ConfigMap with the did.json file and the certificate file, and mount it in the NGINX deployment.
|
|
210
|
+
|
|
211
|
+
First, we create the config map in the test namespace from the `did.json` and `certificate-chain.crt` files using the following command:
|
|
212
|
+
|
|
213
|
+
```shell
|
|
214
|
+
kubectl --namespace test create configmap did-web-config --from-file=did.json --from-file=certificate-chain.crt --dry-run=client -o yaml | kubectl apply -f -
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Then, we update the NGINX deployment to mount the config map in the `/usr/share/nginx/html/.well-known` path. The updated deployment is defined in the file [test-nginx-did-web.yaml](src/gaia-x_compliance/test-nginx-did-web.yaml) and can be applied using the command:
|
|
218
|
+
|
|
219
|
+
```shell
|
|
220
|
+
kubectl apply -f test-nginx-did-web.yaml
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Now, the `did.json` should be available at https://your.domain.org/.well-known/did.json and the certificate chain at https://your.domain.org/.well-known/certificate-chain.crt.
|
|
224
|
+
|
|
225
|
+
The chain can be checked to see if it constitutes a valid trust anchor chain using the Gaia-X [Trust Anchor Registry](https://registry.lab.gaia-x.eu/v1-staging/docs#/TrustAnchor/TrustAnchorController_verifyTrustAnchorChain) API. The `v1-staging` version accepts Extended Validation (EV) Secure Sockets Layer (SSL) certificate issuers like Let's Encrypt, while the `v1` version only accepts the official [Gaia-X Trust Anchors]((https://gaia-x.gitlab.io/policy-rules-committee/trust-framework/trust_anchors/#list-of-defined-trust-anchors). EV SSL certificates are just recommended for testing.
|
|
226
|
+
|
|
227
|
+
### Generating Gaia-X Compliant Participant Credentials
|
|
228
|
+
|
|
229
|
+
To generate the credentials required by the Gaia-X Trust Framework to identify a Participant, we will use the `generate-participant-credentials` command provided by `pontus-x_cli`. This command requires as input a JSON file with the participant's data and the DID-Web URL where the credentials will be published. For instance, for the Universitat de Lleida, a sample [UdL.data.json](src/gaia-x_compliance/UdL.data.json) file is provided with the following content:
|
|
230
|
+
|
|
231
|
+
```json
|
|
232
|
+
{
|
|
233
|
+
"participant_name": "UdL",
|
|
234
|
+
"participant_uri": "https://www.udl.cat",
|
|
235
|
+
"participant_legal_name": "Universitat de Lleida",
|
|
236
|
+
"participant_vat_id": "ESQ7550001G",
|
|
237
|
+
"participant_country_subdivision_code": "ES-L",
|
|
238
|
+
"participant_street_address": "Victor Siurana, 1",
|
|
239
|
+
"participant_postal_code": "25003",
|
|
240
|
+
"participant_locality": "Lleida"
|
|
241
|
+
}
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
To generate the Verifiable Presentation of the Gaia-X credentials for Universitat de Lleida using the previous DID-Web server, we can use the following command. The Verifiable Presentation (VP) file will be generated in the same folder as the JSON file with the input data about the participant:
|
|
245
|
+
|
|
246
|
+
```shell
|
|
247
|
+
pontus-x_cli generate-participant-credentials -p UdL.data.json -d did.json -c certificate.key
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
To generate the VPs for other participants, just create a new JSON file with the participant's data and run the script with the new file. For instance, there is another sample JSON file for CEP in [CEP.data.json](src/gaia-x_compliance/CEP.data.json), which can be used to generate the credentials for the "Consorci Centre d'Estudis Porcins" using the command:
|
|
251
|
+
|
|
252
|
+
```shell
|
|
253
|
+
pontus-x_cli generate-participant-credentials -p CEP.data.json -d did.json -c certificate.key
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Publishing the Gaia-X Compliant Participant Credentials
|
|
257
|
+
|
|
258
|
+
To publish the generated credentials, we will use the NGINX server we have set up before and expand the ConfigMap to also include the files for the credentials (there is no need to also publish the Gaia-X Compliance responses). The following command will generate a new version of the config map including all the credentials for UdL and CEP participants, in addition to the original `did.json` and `certificate-chain.crt` files:
|
|
259
|
+
|
|
260
|
+
```shell
|
|
261
|
+
kubectl --namespace test create configmap did-web-config --from-file=did.json --from-file=certificate-chain.crt \
|
|
262
|
+
--from-file=UdL.vp.json --from-file=CEP.vp.json \
|
|
263
|
+
--dry-run=client -o yaml | kubectl apply -f -
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### Dealing with Certificate Expiration
|
|
267
|
+
|
|
268
|
+
In case of SSL certificate expiration, just regenerate and publish at well-know the certificate chain `certificate-chain.crt`
|
|
269
|
+
|
|
270
|
+
**Important**: public and private keys do not change and nothing more needs to be done, not even updating the `did.json` file.
|
|
271
|
+
|
|
272
|
+
So basically, download again the certificate chain after renewal using the previous command:
|
|
273
|
+
|
|
274
|
+
```shell
|
|
275
|
+
curl -o certificate-chain.crt "https://whatsmychaincert.com/generate?include_leaf=1&include_root=1&host=your.domain.org"
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
And update the ConfigMap with the new certificate chain, without forgetting the rest of files being already published:
|
|
279
|
+
|
|
280
|
+
```shell
|
|
281
|
+
kubectl --namespace test create configmap did-web-config --from-file=did.json --from-file=certificate-chain.crt \
|
|
282
|
+
--from-file=UdL.vp.json --from-file=CEP.vp.json \
|
|
283
|
+
--dry-run=client -o yaml | kubectl apply -f -
|
|
284
|
+
```
|
|
131
285
|
|
|
132
|
-
|
|
286
|
+
### Additional References
|
|
133
287
|
|
|
134
|
-
|
|
288
|
+
Gaia-X: onboarding, first credentials' issuance.
|
|
289
|
+
* Video tutorial: https://www.youtube.com/watch?v=xHaBM-T2--k
|
|
290
|
+
* Jupyter notebook: https://gitlab.com/gaia-x/lab/workshops/gaia-x-101
|
|
135
291
|
|
|
136
|
-
More details: [gaia-x_compliance](./src/gaia-x_compliance/README.md)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
exports.generateDidWeb = generateDidWeb;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const fs_1 = require("fs");
|
|
6
6
|
const did_web_generator_1 = require("@gaia-x/did-web-generator");
|
|
@@ -11,12 +11,4 @@ async function generateDidWeb(baseUrl, certificateFilePath) {
|
|
|
11
11
|
console.log('Writing DID Web document to ' + (0, path_1.resolve)(folder, 'did.json'));
|
|
12
12
|
(0, fs_1.writeFileSync)((0, path_1.resolve)(folder, 'did.json'), JSON.stringify(didJson, null, 2));
|
|
13
13
|
}
|
|
14
|
-
if (process_1.argv.length < 3) {
|
|
15
|
-
console.log('Usage: npm run generate-did-web -- <baseUrl> <certificateFileName>');
|
|
16
|
-
process.exit(1);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
console.log('Generating DID Web document for ' + process_1.argv[2] + ' with certificate ' + process_1.argv[3]);
|
|
20
|
-
generateDidWeb(process_1.argv[2], process_1.argv[3]).then(r => console.log('Done'));
|
|
21
|
-
}
|
|
22
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/gaia-x_compliance/generate-did-web/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/gaia-x_compliance/generate-did-web/index.ts"],"names":[],"mappings":";;AAIA,wCAMC;AAVD,+BAAkD;AAClD,2BAAiD;AACjD,iEAA8D;AAEvD,KAAK,UAAU,cAAc,CAAC,OAAe,EAAE,mBAA2B;IAC7E,MAAM,IAAI,GAAG,IAAA,iBAAY,EAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,MAAM,IAAA,qCAAiB,EAAC,OAAO,EAAE,IAAA,eAAQ,EAAC,mBAAmB,CAAC,EAAE,IAAI,CAAC,CAAC;IACtF,MAAM,MAAM,GAAG,IAAA,cAAO,EAAC,mBAAmB,CAAC,CAAC;IAC5C,OAAO,CAAC,GAAG,CAAC,8BAA8B,GAAG,IAAA,cAAO,EAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IAC1E,IAAA,kBAAa,EAAC,IAAA,cAAO,EAAC,MAAM,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -26,7 +26,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
|
|
29
|
+
exports.generateParticipantCredentials = generateParticipantCredentials;
|
|
30
|
+
exports.checkCompliance = checkCompliance;
|
|
30
31
|
const path_1 = require("path");
|
|
31
32
|
const fs_1 = require("fs");
|
|
32
33
|
const Handlebars = __importStar(require("handlebars"));
|
|
@@ -39,31 +40,34 @@ function generateSignedDocument(data, templateFile, signer) {
|
|
|
39
40
|
const document = JSON.parse(template(data));
|
|
40
41
|
return signer.sign(document);
|
|
41
42
|
}
|
|
42
|
-
async function generateParticipantVC(
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
async function generateParticipantVC(data, signer) {
|
|
44
|
+
console.log(__dirname);
|
|
45
|
+
const templateFile = require.resolve('./templates/participant.hbs');
|
|
46
|
+
const participantVCSigned = await generateSignedDocument(data, templateFile, signer);
|
|
45
47
|
console.log(`Verifiable Credential for participant ${data.participant_legal_name} ` +
|
|
46
|
-
`successfully generated
|
|
48
|
+
`successfully generated`);
|
|
49
|
+
return participantVCSigned;
|
|
47
50
|
}
|
|
48
|
-
async function generateParticipantTandCVC(
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
+
async function generateParticipantTandCVC(data, signer) {
|
|
52
|
+
const templateFile = require.resolve('./templates/tandc.hbs');
|
|
53
|
+
const tandcVCSigned = await generateSignedDocument(data, templateFile, signer);
|
|
51
54
|
console.log(`Signed Terms and Conditions for ${data.participant_legal_name} ` +
|
|
52
|
-
`successfully generated
|
|
55
|
+
`successfully generated`);
|
|
56
|
+
return tandcVCSigned;
|
|
53
57
|
}
|
|
54
|
-
async function generateParticipantLNRVC(
|
|
58
|
+
async function generateParticipantLNRVC(data) {
|
|
55
59
|
var _a;
|
|
60
|
+
const templateFile = require.resolve('./templates/lrn-request.hbs');
|
|
56
61
|
const notaryService = "https://registrationnumber.notary.lab.gaia-x.eu/v1-staging/registrationNumberVC";
|
|
57
|
-
const fileContent = (0, fs_1.readFileSync)((0, path_1.resolve)(
|
|
62
|
+
const fileContent = (0, fs_1.readFileSync)((0, path_1.resolve)(templateFile), 'utf-8');
|
|
58
63
|
const lnrRequestTemplate = Handlebars.compile(fileContent);
|
|
59
64
|
const lnrRequest = lnrRequestTemplate(data);
|
|
60
65
|
try {
|
|
61
|
-
const response = await axios_1.default.post(`${notaryService}?vcid=https://${data.issuer_domain}/.well-known/${data.participant_name}.
|
|
66
|
+
const response = await axios_1.default.post(`${notaryService}?vcid=https://${data.issuer_domain}/.well-known/${data.participant_name}.vp.json%23lrn`, JSON.parse(lnrRequest));
|
|
62
67
|
if (response.status === 200) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
`successfully generated and stored in ${data.participant_name}.lrn.json`);
|
|
68
|
+
console.log(`Verifiable Credential for ${data.participant_legal_name} Legal Registration Number` +
|
|
69
|
+
` successfully generated`);
|
|
70
|
+
return response.data;
|
|
67
71
|
}
|
|
68
72
|
else {
|
|
69
73
|
console.error(`Error generating Legal Registration Number for ${data.participant_legal_name}`);
|
|
@@ -74,64 +78,74 @@ async function generateParticipantLNRVC(folder, data) {
|
|
|
74
78
|
console.error(`Error generating Legal Registration Number for ${data.participant_legal_name}`);
|
|
75
79
|
console.error((_a = e.response) === null || _a === void 0 ? void 0 : _a.data);
|
|
76
80
|
}
|
|
81
|
+
return null;
|
|
77
82
|
}
|
|
78
|
-
|
|
79
|
-
var _a;
|
|
80
|
-
const complianceService = "https://compliance.lab.gaia-x.eu/v1-staging/api/credential-offers";
|
|
83
|
+
function generateParticipantVP(participantVC, tandcVC, lrnVC, folder, data) {
|
|
81
84
|
const vp = {
|
|
82
85
|
"@context": "https://www.w3.org/2018/credentials/v1",
|
|
83
86
|
"type": "VerifiablePresentation",
|
|
84
87
|
"verifiableCredential": [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
participantVC,
|
|
89
|
+
lrnVC,
|
|
90
|
+
tandcVC
|
|
88
91
|
]
|
|
89
92
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (response.status === 201) {
|
|
94
|
-
const lrn = response.data;
|
|
95
|
-
(0, fs_1.writeFileSync)((0, path_1.resolve)(folder, data.participant_name + '.compliance.json'), JSON.stringify(lrn, null, 2), 'utf-8');
|
|
96
|
-
console.log(`Gaia-X Compliance verified for ${data.participant_legal_name} credentials ` +
|
|
97
|
-
`and stored in ${data.participant_name}.compliance.json`);
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
console.error(`Error generating Compliance for ${data.participant_legal_name}`);
|
|
101
|
-
console.error(response === null || response === void 0 ? void 0 : response.data);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
catch (e) {
|
|
105
|
-
console.error(`Error generating Compliance for ${data.participant_legal_name}`);
|
|
106
|
-
console.error((_a = e.response) === null || _a === void 0 ? void 0 : _a.data);
|
|
107
|
-
}
|
|
93
|
+
(0, fs_1.writeFileSync)((0, path_1.resolve)(folder, data.participant_name + '.vp.json'), JSON.stringify(vp, null, 2), 'utf-8');
|
|
94
|
+
console.log(`Verifiable Presentation of the credentials for ${data.participant_legal_name} ` +
|
|
95
|
+
`generated and stored in ${data.participant_name}.vp.json`);
|
|
108
96
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
const folder = (0, path_1.dirname)(process_1.argv[2]);
|
|
115
|
-
const participantData = JSON.parse((0, fs_1.readFileSync)(process_1.argv[2], 'utf-8'));
|
|
97
|
+
async function generateParticipantCredentials(participantDataFile, didFile, certificateKeyFile) {
|
|
98
|
+
const folder = (0, path_1.dirname)(participantDataFile);
|
|
99
|
+
const participantData = JSON.parse((0, fs_1.readFileSync)(participantDataFile, 'utf-8'));
|
|
116
100
|
participantData.issuance_date = new Date().toISOString();
|
|
117
|
-
const didJson = JSON.parse((0, fs_1.readFileSync)(
|
|
101
|
+
const didJson = JSON.parse((0, fs_1.readFileSync)(didFile, 'utf-8'));
|
|
118
102
|
participantData.issuer_domain = didJson.id.substring(didJson.id.lastIndexOf(':') + 1);
|
|
119
103
|
console.log(`Generating Gaia-X credentials for participant ${participantData.participant_legal_name} ` +
|
|
120
104
|
`with issuer ${participantData.issuer_domain}`);
|
|
121
|
-
const pkcs1 = (0, fs_1.readFileSync)(
|
|
105
|
+
const pkcs1 = (0, fs_1.readFileSync)(certificateKeyFile, 'utf-8');
|
|
122
106
|
const key = (0, crypto_1.createPrivateKey)(pkcs1);
|
|
123
107
|
const signer = new json_web_signature_2020_1.GaiaXSignatureSigner({
|
|
124
108
|
privateKey: key,
|
|
125
109
|
privateKeyAlg: didJson.verificationMethod[0].publicKeyJwk.alg,
|
|
126
110
|
verificationMethod: didJson.verificationMethod[0].id
|
|
127
111
|
});
|
|
128
|
-
Promise.all([
|
|
129
|
-
generateParticipantVC(
|
|
130
|
-
generateParticipantTandCVC(
|
|
131
|
-
generateParticipantLNRVC(
|
|
112
|
+
await Promise.all([
|
|
113
|
+
generateParticipantVC(participantData, signer),
|
|
114
|
+
generateParticipantTandCVC(participantData, signer),
|
|
115
|
+
generateParticipantLNRVC(participantData)
|
|
132
116
|
])
|
|
133
|
-
.then(() => {
|
|
134
|
-
|
|
117
|
+
.then(([participantVC, tandcVC, lrnVC]) => {
|
|
118
|
+
if (participantVC && tandcVC && lrnVC) {
|
|
119
|
+
generateParticipantVP(participantVC, tandcVC, lrnVC, folder, participantData);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
console.error('Error with one of the credentials, therefore the Verifiable Presentation was not generated');
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
async function checkCompliance(participantDataFile, vpFile) {
|
|
127
|
+
const complianceService = "https://compliance.lab.gaia-x.eu/v1-staging/api/credential-offers";
|
|
128
|
+
const folder = (0, path_1.dirname)(participantDataFile);
|
|
129
|
+
const participantData = JSON.parse((0, fs_1.readFileSync)(participantDataFile, 'utf-8'));
|
|
130
|
+
const vp = JSON.parse((0, fs_1.readFileSync)(vpFile, 'utf-8'));
|
|
131
|
+
axios_1.default.post(`${complianceService}?` +
|
|
132
|
+
`vcid=https://${participantData.issuer_domain}/.well-known/${participantData.participant_name}.compliance.json`, vp)
|
|
133
|
+
.then(response => {
|
|
134
|
+
if (response.status === 201) {
|
|
135
|
+
const compliance = response.data;
|
|
136
|
+
(0, fs_1.writeFileSync)((0, path_1.resolve)(folder, participantData.participant_name + '.compliance.json'), JSON.stringify(compliance, null, 2), 'utf-8');
|
|
137
|
+
console.log(`Gaia-X Compliance verified for ${participantData.participant_legal_name} credentials ` +
|
|
138
|
+
`and stored in ${participantData.participant_name}.compliance.json`);
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
console.error(`Error generating Compliance for ${participantData.participant_legal_name}`);
|
|
142
|
+
console.error(response === null || response === void 0 ? void 0 : response.data);
|
|
143
|
+
}
|
|
144
|
+
})
|
|
145
|
+
.catch(reason => {
|
|
146
|
+
var _a;
|
|
147
|
+
console.error(`Error generating Compliance for ${participantData.participant_legal_name}`);
|
|
148
|
+
console.error((_a = reason.response) === null || _a === void 0 ? void 0 : _a.data);
|
|
135
149
|
});
|
|
136
150
|
}
|
|
137
151
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/gaia-x_compliance/generate-participant-credentials/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EA,wEA6BC;AAED,0CAuBC;AAjID,+BAAwC;AACxC,2BAAiD;AACjD,uDAAyC;AACzC,mCAA0C;AAC1C,6EAA6F;AAE7F,kDAA0C;AAE1C,SAAS,sBAAsB,CAAC,IAAS,EAAE,YAAoB,EAAE,MAAc;IAC3E,MAAM,WAA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AQ,CAAC,EAAE;QACb,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;YAC1B,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC;YACjC,IAAA,kBAAa,EAAC,IAAA,cAAO,EAAC,MAAM,EAAE,eAAe,CAAC,gBAAgB,GAAG,kBAAkB,CAAC,EAChF,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAClD,OAAO,CAAC,GAAG,CAAC,kCAAkC,eAAe,CAAC,sBAAsB,eAAe;gBAC/F,iBAAiB,eAAe,CAAC,gBAAgB,kBAAkB,CAAC,CAAC;QAC7E,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,KAAK,CAAC,mCAAmC,eAAe,CAAC,sBAAsB,EAAE,CAAC,CAAC;YAC3F,OAAO,CAAC,KAAK,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,CAAC;QAClC,CAAC;IACL,CAAC,CAAC;SACD,KAAK,CAAC,MAAM,CAAC,EAAE;;QACZ,OAAO,CAAC,KAAK,CAAC,mCAAmC,eAAe,CAAC,sBAAsB,EAAE,CAAC,CAAC;QAC3F,OAAO,CAAC,KAAK,CAAC,MAAC,MAAqB,CAAC,QAAQ,0CAAE,IAAI,CAAC,CAAC;IACzD,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/participant"
|
|
4
|
+
],
|
|
5
|
+
"type": "gx:legalRegistrationNumber",
|
|
6
|
+
"id": "{{ participant_uri }}#lrn",
|
|
7
|
+
"gx:vatID": "{{ participant_vat_id }}",
|
|
8
|
+
"gx:leiCode": "{{ participant_lei_code }}"
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
4
|
+
"https://w3id.org/security/suites/jws-2020/v1",
|
|
5
|
+
"https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
|
|
6
|
+
],
|
|
7
|
+
"id": "https://{{ issuer_domain }}/.well-known/{{ participant_name }}.vp.json#participant",
|
|
8
|
+
"type": "VerifiableCredential",
|
|
9
|
+
"issuer": "did:web:{{ issuer_domain }}",
|
|
10
|
+
"issuanceDate": "{{ issuance_date }}",
|
|
11
|
+
"credentialSubject": {
|
|
12
|
+
"id": "{{ participant_uri }}",
|
|
13
|
+
"type": "gx:LegalParticipant",
|
|
14
|
+
"gx:legalName": "{{ participant_legal_name }}",
|
|
15
|
+
"gx:legalRegistrationNumber": {
|
|
16
|
+
"id": "{{ participant_uri }}#lrn"
|
|
17
|
+
},
|
|
18
|
+
"gx:headquarterAddress": {
|
|
19
|
+
"gx:streetAddress": "{{ participant_street_address }}",
|
|
20
|
+
"gx:postalCode": "{{ participant_postal_code }}",
|
|
21
|
+
"gx:locality": "{{ participant_locality }}",
|
|
22
|
+
"gx:countrySubdivisionCode": "{{ participant_country_subdivision_code }}"
|
|
23
|
+
},
|
|
24
|
+
"gx:legalAddress": {
|
|
25
|
+
"gx:streetAddress": "{{ participant_street_address }}",
|
|
26
|
+
"gx:postalCode": "{{ participant_postal_code }}",
|
|
27
|
+
"gx:locality": "{{ participant_locality }}",
|
|
28
|
+
"gx:countrySubdivisionCode": "{{ participant_country_subdivision_code }}"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": [
|
|
3
|
+
"https://www.w3.org/2018/credentials/v1",
|
|
4
|
+
"https://w3id.org/security/suites/jws-2020/v1",
|
|
5
|
+
"https://registry.lab.gaia-x.eu/development/api/trusted-shape-registry/v1/shapes/jsonld/trustframework#"
|
|
6
|
+
],
|
|
7
|
+
"id": "https://{{ issuer_domain }}/.well-known/{{ participant_name }}.vp.json#tandc",
|
|
8
|
+
"type": "VerifiableCredential",
|
|
9
|
+
"issuer": "did:web:{{ issuer_domain }}",
|
|
10
|
+
"issuanceDate": "{{ issuance_date }}",
|
|
11
|
+
"credentialSubject": {
|
|
12
|
+
"id": "{{ participant_uri }}#tandc",
|
|
13
|
+
"type": "gx:GaiaXTermsAndConditions",
|
|
14
|
+
"gx:termsAndConditions": "The PARTICIPANT signing the Self-Description agrees as follows:\n- to update its descriptions about any changes, be it technical, organizational, or legal - especially but not limited to contractual in regards to the indicated attributes present in the descriptions.\n\nThe keypair used to sign Verifiable Credentials will be revoked where Gaia-X Association becomes aware of any inaccurate statements in regards to the claims which result in a non-compliance with the Trust Framework and policy rules defined in the Policy Rules and Labelling Document (PRLD)."
|
|
15
|
+
}
|
|
16
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -14,10 +14,12 @@ const export_key_as_json_1 = require("./export-key-as-json");
|
|
|
14
14
|
const utils_1 = require("./utils");
|
|
15
15
|
const ethereumjs_wallet_1 = __importDefault(require("ethereumjs-wallet"));
|
|
16
16
|
const nautilus_1 = require("@deltadao/nautilus");
|
|
17
|
+
const generate_did_web_1 = require("./gaia-x_compliance/generate-did-web");
|
|
18
|
+
const generate_participant_credentials_1 = require("./gaia-x_compliance/generate-participant-credentials");
|
|
17
19
|
const program = new commander_1.Command();
|
|
18
20
|
program
|
|
19
21
|
.name("pontus-x_cli")
|
|
20
|
-
.version(
|
|
22
|
+
.version((0, utils_1.packageVersion)())
|
|
21
23
|
.description("CLI for managing the Pontus-X ecosystem");
|
|
22
24
|
program.command("export-private-key")
|
|
23
25
|
.description("Export your private key as a JSON file," +
|
|
@@ -57,7 +59,7 @@ program.command("logout")
|
|
|
57
59
|
});
|
|
58
60
|
program.command("get <did>")
|
|
59
61
|
.description("Get the available metadata to the asset with the given DID")
|
|
60
|
-
.action(async (did
|
|
62
|
+
.action(async (did) => {
|
|
61
63
|
console.log(`Retrieving asset metadata for DID: ${did}`);
|
|
62
64
|
const { nautilus } = await utils_1.Connection.connect();
|
|
63
65
|
const aquariusAsset = await nautilus.getAquariusAsset(did);
|
|
@@ -66,7 +68,7 @@ program.command("get <did>")
|
|
|
66
68
|
});
|
|
67
69
|
program.command("access <did>")
|
|
68
70
|
.description("Access an asset that can be downloaded given its DID")
|
|
69
|
-
.action(async (did
|
|
71
|
+
.action(async (did) => {
|
|
70
72
|
const { nautilus } = await utils_1.Connection.connect();
|
|
71
73
|
console.log(`Getting access to downloadable asset: ${did}`);
|
|
72
74
|
const accessUrl = await nautilus.access({ assetDid: did });
|
|
@@ -75,7 +77,7 @@ program.command("access <did>")
|
|
|
75
77
|
});
|
|
76
78
|
program.command("revoke <did>")
|
|
77
79
|
.description("Publisher revocation of an owned DID ")
|
|
78
|
-
.action(async (did
|
|
80
|
+
.action(async (did) => {
|
|
79
81
|
const connection = await utils_1.Connection.connect();
|
|
80
82
|
if (readline_sync_1.default.keyInYNStrict(`Revoke asset ${did}? `)) {
|
|
81
83
|
try {
|
|
@@ -126,7 +128,6 @@ program.command("change-price <did> <newPrice>")
|
|
|
126
128
|
if (readline_sync_1.default.keyInYNStrict(`Set the price to ${newPriceNumber.toString()} for asset ${did}? `)) {
|
|
127
129
|
try {
|
|
128
130
|
const aquariusAsset = await connection.nautilus.getAquariusAsset(did);
|
|
129
|
-
const assetBuilder = new nautilus_1.AssetBuilder(aquariusAsset);
|
|
130
131
|
const serviceId = (_b = (_a = aquariusAsset.services) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.id;
|
|
131
132
|
const tx = await connection.nautilus.setServicePrice(aquariusAsset, serviceId, newPriceNumber.toString());
|
|
132
133
|
console.log(`Price updated for asset, ` +
|
|
@@ -208,16 +209,62 @@ program.command("edit-dataset-url <did> <url>")
|
|
|
208
209
|
process.exit(0);
|
|
209
210
|
});
|
|
210
211
|
program
|
|
211
|
-
.command("publish <script>")
|
|
212
|
+
.command("publish <script-folder>")
|
|
212
213
|
.description("Publish the asset as instructed in the provided script, " +
|
|
213
214
|
"for instance the sample scripts in https://github.com/rhizomik/pontus-x_cli/tree/master/src/publish/samples'")
|
|
214
215
|
.requiredOption("-p, --provider <provider>", "The Provider URL")
|
|
215
216
|
.option("--dry-run", "Dry run the publishing process")
|
|
216
|
-
.action(async (
|
|
217
|
+
.action(async (scriptFolder, options) => {
|
|
217
218
|
const connection = await utils_1.Connection.connect();
|
|
218
|
-
console.log(`Publishing asset ${
|
|
219
|
+
console.log(`Publishing asset ${scriptFolder} in provider ${options.provider} from wallet ${connection.wallet.address}`);
|
|
220
|
+
try {
|
|
221
|
+
await (0, utils_1.invokeFunctionFromFile)(`${scriptFolder}/index.ts`, 'publish', scriptFolder, connection, options.provider, options.dryRun);
|
|
222
|
+
process.exit(0);
|
|
223
|
+
}
|
|
224
|
+
catch (error) {
|
|
225
|
+
console.error(error);
|
|
226
|
+
process.exit(1);
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
program
|
|
230
|
+
.command("generate-did-web")
|
|
231
|
+
.description("Generate a did.json to set up a DID-Web source to publish Gaia-X complaint credentials")
|
|
232
|
+
.requiredOption("-d, --domain <url>", "URL where the DID-Web document will be hosted")
|
|
233
|
+
.requiredOption("-c, --certificate <certificate-chain.crt>", "Path to the file with the certificate chain for the DID domain URL")
|
|
234
|
+
.action(async (options) => {
|
|
235
|
+
try {
|
|
236
|
+
await (0, generate_did_web_1.generateDidWeb)(options.domain, options.certificate);
|
|
237
|
+
process.exit(0);
|
|
238
|
+
}
|
|
239
|
+
catch (error) {
|
|
240
|
+
console.error(error);
|
|
241
|
+
process.exit(1);
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
program
|
|
245
|
+
.command("generate-participant-credentials")
|
|
246
|
+
.description("Generate the Gaia-X credentials for the participant including their verifiable presentation and checking its compliance")
|
|
247
|
+
.requiredOption("-p, --participant <participant.data.json>", "Path to the JSON file including the required participant data")
|
|
248
|
+
.requiredOption("-d, --did <did.json>", "Path to the did.json file")
|
|
249
|
+
.requiredOption("-c, --certificate <certificate.key>", "Path to the certificate.key file")
|
|
250
|
+
.action(async (options) => {
|
|
251
|
+
try {
|
|
252
|
+
await (0, generate_participant_credentials_1.generateParticipantCredentials)(options.participant, options.did, options.certificate);
|
|
253
|
+
process.exit(0);
|
|
254
|
+
}
|
|
255
|
+
catch (error) {
|
|
256
|
+
console.error(error);
|
|
257
|
+
process.exit(1);
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
program
|
|
261
|
+
.command("check-compliance")
|
|
262
|
+
.description("Use Gaia-X Compliance to check a participant Verifiable Presentation")
|
|
263
|
+
.requiredOption("-p, --participant <participant.data.json>", "Path to the JSON file including the required participant data")
|
|
264
|
+
.requiredOption("--vp <participant.vp.json>", "Path to the participant Verifiable Presentation file")
|
|
265
|
+
.action(async (options) => {
|
|
219
266
|
try {
|
|
220
|
-
await (0,
|
|
267
|
+
await (0, generate_participant_credentials_1.checkCompliance)(options.participant, options.vp);
|
|
221
268
|
process.exit(0);
|
|
222
269
|
}
|
|
223
270
|
catch (error) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AACA,oDAA4B;AAC5B,gBAAM,CAAC,MAAM,EAAE,CAAA;AACf,2BAAiD;AACjD,mCAAkC;AAClC,kEAAyC;AACzC,yCAAoC;AACpC,6DAAuD;AACvD,mCAA6D;AAC7D,0EAAuC;AACvC,iDAAmF;AAEnF,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACF,IAAI,CAAC,cAAc,CAAC;KACpB,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,yCAAyC,CAAC,CAAC;AAE5D,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC;KAChC,WAAW,CAAC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AAkB,CAAC;KAC3B,WAAW,CAAC,sEAAsE,CAAC;KACnF,cAAc,CAAC,2CAA2C,EAAE,+DAA+D,CAAC;KAC5H,cAAc,CAAC,4BAA4B,EAAE,sDAAsD,CAAC;KACpG,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACtB,IAAI,CAAC;QACD,MAAM,IAAA,kDAAe,EAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACvD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACL,CAAC,CAAC,CAAC;AAEP,IAAI,CAAC;IACD,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE,IAAA,iBAAQ,EAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;IACnE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IACT,IAAI,CAAC,YAAY,KAAK,EAAE,CAAC;QACrB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IACpC,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IACpB,CAAC;IACD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC"}
|
|
@@ -32,9 +32,12 @@ const publish = async (folder, connection, provider, dryRun) => {
|
|
|
32
32
|
assetBuilder.setAlgorithm(algoMetadata);
|
|
33
33
|
const serviceBuilder = new nautilus_2.ServiceBuilder({ serviceType: nautilus_2.ServiceTypes.ACCESS, fileType: nautilus_2.FileTypes.URL });
|
|
34
34
|
const urlFile = {
|
|
35
|
-
type: 'url',
|
|
35
|
+
type: 'url', // there are multiple supported data source types, see https://docs.oceanprotocol.com/developers/storage
|
|
36
36
|
url: 'https://raw.githubusercontent.com/rogargon/ocean-algo/eda/eda.py',
|
|
37
|
-
method: 'GET'
|
|
37
|
+
method: 'GET' // HTTP request method
|
|
38
|
+
// headers: {
|
|
39
|
+
// Authorization: 'Basic XXX' // optional headers field e.g. for basic access control
|
|
40
|
+
// }
|
|
38
41
|
};
|
|
39
42
|
const service = serviceBuilder
|
|
40
43
|
.setServiceEndpoint(provider) // the access controller to be in control of this asset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/publish/samples/algo/index.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,iDAAiD;AAEjD,iDAA4E;AAE5E,MAAM,OAAO,GAAG,KAAK,EAAE,MAAc,EAAE,UAAe,EAAE,QAAgB,EAAE,MAAe,EAAE,EAAE;IACzF,MAAM,YAAY,GAAG,IAAI,uBAAY,EAAE,CAAC;IACxC,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC;SAC5B,OAAO,CAAC,2BAA2B,CAAC;SACpC,SAAS,CAAC,6BAA6B,CAAC;SACxC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC;SACnC,cAAc,CAAC,IAAA,iBAAY,EAAC,GAAG,MAAM,iBAAiB,EAAE,MAAM,CAAC,CAAC;SAChE,OAAO,CAAC,CAAC,KAAK,EAAE,2BAA2B,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;SAC3F,UAAU,CAAC,KAAK,CAAC;SACjB,UAAU,CAAC;QACR,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,SAAS;QACjB,aAAa,EAAE,CAAC;QAChB,QAAQ,EAAE,+EAA+E;QACzF,YAAY,EAAE,KAAK;KACtB,CAAC,CAAC;IACP,MAAM,YAAY,GAAG;QACjB,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAA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,GAAG,CAAC,mBAAmB;YAC3B,gBAAgB,UAAU,CAAC,aAAa,CAAC,WAAW,OAAO,MAAM,CAAC,oBAAoB,CAAC,eAAe,IAAI,CAAC,CAAC;IACpH,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAC/D,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -22,9 +22,12 @@ const publish = async (folder, connection, provider, dryRun) => {
|
|
|
22
22
|
.addLinks(['https://archive.ics.uci.edu/dataset/186/wine+quality']);
|
|
23
23
|
const serviceBuilder = new nautilus_2.ServiceBuilder({ serviceType: nautilus_2.ServiceTypes.COMPUTE, fileType: nautilus_2.FileTypes.URL });
|
|
24
24
|
const urlFile = {
|
|
25
|
-
type: 'url',
|
|
25
|
+
type: 'url', // there are multiple supported data source types, see https://docs.oceanprotocol.com/developers/storage
|
|
26
26
|
url: 'https://raw.githubusercontent.com/plotly/datasets/master/winequality-red.csv',
|
|
27
|
-
method: 'GET'
|
|
27
|
+
method: 'GET' // HTTP request method
|
|
28
|
+
// headers: {
|
|
29
|
+
// Authorization: 'Basic XXX' // optional headers field e.g. for basic access control
|
|
30
|
+
// }
|
|
28
31
|
};
|
|
29
32
|
const service = serviceBuilder
|
|
30
33
|
.setServiceEndpoint(provider) // the access controller to be in control of this asset
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/publish/samples/data/index.ts"],"names":[],"mappings":";;AAAA,2BAAkC;AAClC,iDAAiD;AAEjD,iDAA4E;AAE5E,MAAM,OAAO,GAAG,KAAK,EAAE,MAAc,EAAE,UAAe,EAAE,QAAgB,EAAE,MAAe,EAAE,EAAE;IACzF,MAAM,YAAY,GAAG,IAAI,uBAAY,EAAE,CAAC;IACxC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC;SAC1B,OAAO,CAAC,kBAAkB,CAAC;SAC3B,SAAS,CAAC,qBAAqB,CAAC;SAChC,QA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AC,CAAC;QACnC,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACxD,OAAO,CAAC,GAAG,CAAC,mBAAmB;YAC3B,gBAAgB,UAAU,CAAC,aAAa,CAAC,WAAW,OAAO,MAAM,CAAC,oBAAoB,CAAC,eAAe,IAAI,CAAC,CAAC;IACpH,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;IAC/D,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/utils/connection.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,gBAAM,CAAC,MAAM,EAAE,CAAA;AACf,sCAAqH;AACrH,mCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/utils/connection.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,gBAAM,CAAC,MAAM,EAAE,CAAA;AACf,sCAAqH;AACrH,mCAA0C;AAC1C,iDAA6C;AAE7C,MAAa,UAAU;IAEnB,YAA2B,MAAc,EACd,QAAkB,EAClB,aAA4B,EAC5B,aAA+D;QAH/D,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAU;QAClB,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAkD;IAAG,CAAC;IAEvF,MAAM,CAAC,KAAK,CAAC,OAAO;QACvB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;YACvB,OAAO,CAAC,KAAK,CAAC,4DAA4D;gBACtE,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC7C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;QAC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-16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./connection"), exports);
|
|
18
18
|
__exportStar(require("./publish-script-runner"), exports);
|
|
19
|
+
__exportStar(require("./package-version"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,0DAAwC;AACxC,oDAAkC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.packageVersion = packageVersion;
|
|
4
|
+
function packageVersion() {
|
|
5
|
+
let packageJson;
|
|
6
|
+
try {
|
|
7
|
+
// Try to require the local package.json
|
|
8
|
+
packageJson = require('../../package.json');
|
|
9
|
+
}
|
|
10
|
+
catch (localError) {
|
|
11
|
+
try {
|
|
12
|
+
// If local package.json is not found, require it from the installed package
|
|
13
|
+
packageJson = require('pontus-x_cli/package.json');
|
|
14
|
+
}
|
|
15
|
+
catch (packageError) {
|
|
16
|
+
console.error('Error: package.json not found locally or in the installed package.');
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return packageJson.version;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=package-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../src/utils/package-version.ts"],"names":[],"mappings":";;AAAA,wCAeC;AAfD,SAAgB,cAAc;IAC1B,IAAI,WAAW,CAAC;IAChB,IAAI,CAAC;QACD,wCAAwC;QACxC,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC;YACD,4EAA4E;YAC5E,WAAW,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;QACvD,CAAC;QAAC,OAAO,YAAY,EAAE,CAAC;YACpB,OAAO,CAAC,KAAK,CAAC,oEAAoE,CAAC,CAAC;YACpF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC;IACL,CAAC;IACD,OAAO,WAAW,CAAC,OAAO,CAAC;AAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-script-runner.js","sourceRoot":"","sources":["../../src/utils/publish-script-runner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"publish-script-runner.js","sourceRoot":"","sources":["../../src/utils/publish-script-runner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wDAsBC;AA1BD,uCAAyB;AACzB,uCAAyB;AACzB,+CAAiC;AAE1B,KAAK,UAAU,sBAAsB,CAAC,QAAgB,EAAE,YAAoB,EAAE,GAAG,IAAW;IAC/F,mCAAmC;IACnC,MAAM,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAEpD,qCAAqC;IACrC,MAAM,SAAS,GAAG,EAAE,CAAC,eAAe,CAAC,SAAS,EAAE;QAC5C,eAAe,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE;KACtD,CAAC,CAAC,UAAU,CAAC;IAEd,sCAAsC;IACtC,MAAM,MAAM,GAAG,IAAI,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAExE,gCAAgC;IAChC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAE7B,8BAA8B;IAC9B,IAAI,OAAO,OAAO,CAAC,YAAY,CAAC,KAAK,UAAU,EAAE,CAAC;QAC9C,OAAO,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1C,CAAC;SAAM,CAAC;QACJ,MAAM,IAAI,KAAK,CAAC,YAAY,YAAY,iBAAiB,QAAQ,EAAE,CAAC,CAAC;IACzE,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pontus-x_cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pontus-x_cli": "./dist/index.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"start": "NODE_NO_WARNINGS=1 ts-node src/index.ts",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"build": "tsc && chmod +x ./dist/index.js",
|
|
10
|
+
"build": "tsc && chmod +x ./dist/index.js && npm run copy-templates",
|
|
11
|
+
"copy-templates": "copyfiles -u 1 src/gaia-x_compliance/generate-participant-credentials/templates/* dist",
|
|
13
12
|
"clean": "rm -rf ./dist/",
|
|
14
|
-
"rebuild": "npm run clean & npm run build"
|
|
13
|
+
"rebuild": "npm run clean & npm run build",
|
|
14
|
+
"local-install": "npm install -g ."
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"homepage": "https://github.com/monatheoctocat/my_package",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@deltadao/nautilus": "^1.0.2",
|
|
29
|
-
"@gaia-x/did-web-generator": "^1.0
|
|
30
|
-
"@gaia-x/json-web-signature-2020": "^2.
|
|
31
|
-
"axios": "^1.7.
|
|
29
|
+
"@gaia-x/did-web-generator": "^1.1.0",
|
|
30
|
+
"@gaia-x/json-web-signature-2020": "^2.3.0",
|
|
31
|
+
"axios": "^1.7.7",
|
|
32
32
|
"commander": "^11.1.0",
|
|
33
33
|
"dotenv": "^16.3.1",
|
|
34
34
|
"ethereumjs-wallet": "^1.0.2",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@types/figlet": "^1.5.8",
|
|
43
43
|
"@types/node": "^22.2.0",
|
|
44
44
|
"@types/readline-sync": "^1.4.8",
|
|
45
|
+
"copyfiles": "^2.4.1",
|
|
45
46
|
"typescript": "^5.5.4"
|
|
46
47
|
},
|
|
47
48
|
"files": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/gaia-x_compliance/generate-participant-vcs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA+B;AAC/B,+BAAwC;AACxC,2BAAiD;AACjD,uDAAyC;AACzC,mCAA0C;AAC1C,6EAA6F;AAE7F,kDAA0C;AAE1C,SAAS,sBAAsB,CAAC,IAAS,EAAE,YAAoB,EAAE,MAAc;IAC3E,MAAM,WAAW,GAAG,IAAA,iBAAY,EAAC,IAAA,cAAO,EAAC,wBAAwB,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;IAC3F,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACrE,MAAM,QAAQ,GAAwC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACjF,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACjC,CAAC;AAED,KAAK,UAAU,qBAAqB,CAAC,MA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