Skip to content

omarsilva1/edc-broker-extension

 
 

Repository files navigation

EDC-Connector Broker Extension

To get started, a sample docker-compose file is located in the resources/docs folder.

Run extension with EDC

Configuration

Basic Configuration

  • EDC_IDS_TITLE: Title of the Connector
  • EDC_IDS_DESCRIPTION: Description of the Connector
  • EDC_IDS_ENDPOINT: URL of the Connectors endpoint
  • EDC_IDS_CURATOR: URL of the curator, i.e. the company, which configures data offerings etc.
  • EDC_CONNECTOR_NAME: The name of the connector
  • EDC_HOSTNAME: The host of the connector
  • EDC_API_AUTH_KEY: The API authorization key of management API

MDS Environment Configuration

The test environment is set by default.

Start

Start via docker compose up in the docker-compose file folder

Test extension

Use Postman (https://github.com/postmanlabs) and import collection located at resources/docs/postman_collection.json. Depending on your configuration changes, you need to adjust variables on collection MDV > Variables > Current Value

  • api_key needs to be aligned with EDC_API_AUTH_KEY

To test Broker functionality, simply execute steps

  1. Publish Asset 1
  2. Publish Policy 1
  3. Publish ContractDefinition 1: You will see a notification about registering resource at broker, which will then be reflected in the Broker's UI.
  4. Delete ContractDefinition 1: You will see a notification about unregistering the resource at broker.

FAQ

What should the client ID entry look like?

Example of a client-ID entry:

EDC_OAUTH_CLIENT_ID: 7X:7Y:...:B2:94:keyid:6A:2B:...:28:80

How do you get the SKI and AKI of a p12 and how do you convert it to a jks?

Here we show the way via the tool KeyStore Explorer (https://github.com/kaikramer/keystore-explorer) using Windows, for direct commands see other examples online.

  1. Convert the p12 to a jks
  • Open the p12 in the KeyStore Explorer by entering the password
  • File -> Save as -> Select KeyStore Files at Files of Type -> Directly save the file again as file of type KeyStore Files with a .jks extension in its name under File Name, e.g. keystore.jks
  1. Get SKI and AKI
  • Right-click on the KeyPair in KeyStore Explorer -> Export -> Export Certificate Chain -> Confirm the dialog with Export Button
  • Double-click on the certificate under the specified storage path (Windows Certificate Manager opens)
  • Under the Details section you will find the details about
    • AKI (Authority Key Identifier, dt.: Stellenschlüsselkennung) and
    • SKI (Subject Key Identifier, dt.: Schlüsselkennung des Antragstellers)
  • Finally, the identifiers itself have to be manually combined into the required format SKI:keyid:AKI with upper case letters and colon separator (see the above example of the client-ID):

License

This project is licensed under the Apache License 2.0 - see here for details.

About

EDC-Connector Broker Extension

Resources

License

Stars

Watchers

Forks

Packages 3

 
 
 

Languages

  • Java 88.8%
  • Kotlin 9.3%
  • Dockerfile 1.9%