Skip to content

CIRC-UITS/txt-connector

Repository files navigation

TXT Connector

Introduction

TXT Connector is a connector designed to facilitate the construction of dataspaces and the secure exchange of data, guaranteeing data sovereignty.

It extends the functionality of the Eclipse Dataspace Components (EDC) framework by adding new policies, configuring the Omejdn DAPS, and easing database migration.

Getting started

This section will guide you through the necessary steps to configure and start the TXT Connector in a local environment using Docker Compose,including certificate generation and configuration of the Dynamic Attribute Provisioning Service (DAPS).

Prerequisites

Before starting, make sure you have installed the following tools:

  • Docker: If you don't already have it, you can download and install Docker from the official site here.
  • Docker Compose: Check that you have Docker Compose installed, it is usually included in Docker Desktop. You can check this with the command:
    docker-compose --version
  • Git: Needed to clone this repository. You can install it from here.
  • OpenSSL: Needed to generate certificates.

Installation

Follow these steps to configure the environment and start the connector.

  1. Clone the repository

    Start by cloning this repository in your local environment.

        git clone ...
        cd repo-name
  2. Generation of certificates
    The connector requires certificates to authenticate with DAPS. Follow the detailed instructions for generating certificates in the certificate.md file.

  3. Set up environment variables
    The connector requires some specific environment variables to function correctly. These are defined in an .env file.

    • Creates an .env file based on the template provided.

          cp .env.example .env
          mv .env /services/connector/launchers
    • Edit the .env file to configure the necessary parameters. Here are some examples of variables you may need to set:

      DATABASE_URL=postgres://user:password@localhost:5432/yourdatabase
      DAPS_URL=https://daps.example.com
      

      Be sure to replace the example values with those specific to your environment.

  4. Start the connector with Docker Compose
    Once the .env file is configured, you can start the connector using the following command:

        ./run.sh up

    This command will start all services defined in the docker-compose.yml file.

Postman collection

The most popular requests, such as contract negotiation, asset retrieval, and data transfer  can be started using the postman collection. This collection contains endpoints designed to manage the entire process, from asset creation to data transfer, making it easy to interact with other connectors within a dataspace.

Connector API Endpoints.postman_collection

Demo enviroment.postman_environment

Make sure to import the environment file as well, as this collection includes preconfigured environments.

About

TXT Connector integrated with IDSA Minimum Viable Data Space for the CIRC-UITS project

Topics

Resources

License

Stars

Watchers

Forks

Contributors