The consumption of artifacts is the default IDS way of interaction between two connectors. Following the general process of:
The test connector deployed at https://test-connector.playground.dataspac.es/ui/ provides a single artifact with a simple policy offer attached to it that allows for READ
and USE
rights if a consumer requests a contract with a validity in 2022 and 2023.
values.public.yaml
: https://tno-tsg.gitlab.io/assets/playground/values.public.yamlkubectl create secret generic ids-identity-secret --from-file=ids.crt=./component.crt --from-file=ids.key=./component.key --from-file=ca.crt=./cachain.crt
ids.info.idsid
, ids.info.curator
, ids.info.maintainer
in the values.local.yaml
file to the corresponding identifiers that you filled in during creation of the certificates. ids.info.idsid
should be the Connector ID, and ids.info.curator
, ids.info.maintainer
should be the Participant ID.playground
but this can be changed to a more secure password, which is especially needed for public Kubernetes deployments.
security.users[0].password
to a new BCrypt encoded password (e.g. via https://bcrypt-generator.com/)host
to the domain name you configured with the ingress controlleruseNewIngress
to false
in case you’re using an older version of Kubernetes (<=v1.21)coreContainer.ingress.clusterIssuer
, coreContainer.ingress.secretName
, and/or coreContainer.ingress.annotations
to change the behaviour of the main IngressadminUi.ingress.clusterIssuer
, adminUi.ingress.secretName
, and/or adminUi.ingress.annotations
to change the behaviour of the admin UI IngressFor this the Helm repository must be added:
helm repo add tsg https://nexus.dataspac.es/repository/tsg-helm
helm repo update
After that the Helm chart must be installed, for the public Kubernetes version:
helm upgrade --install playground tsg/tsg-connector --version 3.0.0-master -f values.public.yaml
The user interface of the TSG Core Container will be available at the hostname you’ve configured, on the path /ui/
(e.g. https://domain.name/ui/)
To view the deployment and show the logs of the TSG Core Container, either Lens or kubectl can be used. For Lens, the main view will be Workloads > Pods. For kubectl the following commands can be used to view information of the deployment:
kubectl get pods
kubectl logs -f deployment/playground-tsg-connector-core-container
An artifact is provided by a connector deployed on https://test-connector.playground.dataspac.es. The following steps show how this artifact can be retrieved from this connector.
The steps that must be followed are:
Navigate to https://domain.name/ui/#/selfdescription/request
Fill in the form with the following values:
Connector ID | urn:playground:tsg:connectors:TestConnector |
Agent ID | leave empty |
Access URL | https://test-connector.playground.dataspac.es/selfdescription |
Requested Element | leave empty |
And click Request description
.
When the self description of the connector is retrieved successfully, the details are shown in a tabular form.
Click the catalog urn:playground:tsg:connectors:TestConnector:resources
to show the available resources.
Click on the lock icon under Actions to go the next step directly.
If you’ve clicked the lock icon in the previous step, the values in the form are filled in automatically. Otherwise, navigate to https://domain.name/ui/#/artifacts/consumer and the following values can be used:
Connector ID | urn:playground:tsg:connectors:TestConnector |
Agent ID | leave empty |
Access URL | https://test-connector.playground.dataspac.es/router/artifacts/urn%3Aplayground%3Atsg%3Aconnectors%3ATestConnector%3Aresources%3Aa3ea77e5-e786-4b5b-a637-4467c029df2e |
Contract Offer | Contract Offer JSON-LD
|
Click Request Contract
to perform the contract negotiation process.
If the process is successfully completed, the Transfer Contract field in the Request Artifact form should be filled with an URL similar to https://w3id.org/idsa/autogen/contractAgreement/00000000-0000-0000-0000-000000000000
If you’ve just executed the contract negotiation process, the Request Artifact is filled in automatically. Otherwise, navigate to https://domain.name/ui/#/artifacts/consumer and use the following values:
Artifact ID | urn:playground:tsg:connectors:TestConnector:artifacts:9aa27c59-9f0c-4e77-9ad5-420f5eda0b98 |
Connector ID | urn:playground:tsg:connectors:TestConnector |
Agent ID | urn:playground:tsg:TNO |
AccessURL | https://test-connector.playground.dataspac.es/router/artifacts/urn%3Aplayground%3Atsg%3Aconnectors%3ATestConnector%3Aresources%3Aa3ea77e5-e786-4b5b-a637-4467c029df2e |
Transfer Contract | navigate to https://domain.name/ui/#/pef/pap and copy the Agreement ID. If it’s automatically filled in, you don’t have to copy the ID from the PAP. |
Click Request Artifact
to actually download the artifact to your local system.
If you do not want to proceed with other tutorials, you can remove the resources used.
To remove all of the used Kubernetes resources execute:
helm uninstall playground
kubectl delete secret/ids-identity-secret