Skip to content

paulocabrita-ionos/edc-ionos-s3-1

 
 

Repository files navigation

IONOS S3 Extension for Eclipse Dataspace Connector

This repository contains the IONOS S3 Extension that works with the Eclipse Dataspace Connector allowing operations into the IONOS S3 Storage.

Disclaimer: The code of this repo is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing this code and assume any risks associated with Your exercise of permissions. For more information check the License.

Please refer to the official site.

Based on the following

Requirements

You will need the following:

  • IONOS account;
  • Java Development Kit (JDK) 11 or higher;
  • Docker;
  • GIT;
  • Linux shell or PowerShell;

Folders Description

connector

Contains the required instructions to create an EDC docker image with the IONOS S3 Extension.

edc-ionos-extension

Contains the source code of the IONOS S3 Extension.

example

Contains an example with a file transfer process between two S3 buckets.

gradle/wrapper

Contains gradle's files required for the building process.

Dependencies and Configurations

Dependencies

The extension has the following dependencies:

Module name Description
edc-ionos-extension:provision-ionos-s3 Provisioning operations for IONOS S3 storage
edc-ionos-extension:data-plane-ionos-s3 Copy data do and from IONOS S3 buckets
org.eclipse.edc:api-observability Health data regarding the state of the connector
org.eclipse.edc:auth-tokenbased Securing the API
org.eclipse.edc:api-control-plane-core Main features of the control plane
org.eclipse.edc:configuration-filesystem Configuration file features
org.eclipse.edc:http HTTP support
org.eclipse.edc:data-management-api EDC asset and contract management
org.eclipse.edc:data-plane-core Main features of the data plane
org.eclipse.edc:data-plane-selector-client Offers several implementations for the data plane selector
org.eclipse.edc:data-plane-selector-core Main features of the data plane selector
org.eclipse.edc:ids Support IDS
de.fraunhofer.iais.eis.ids.infomodel:java IDS Information Model for Java

Configurations

It is required to configure an Access key and a Secret Access Key from the IONOS S3 storage service.

The credentials can be found/configured in one of the following:

  • Vault;
  • Properties file;
  • Java arguments;
  • Environment Variables (IONOS_ACCESS_KEY, IONOS_SECRET_KEY and IONOS_TOKEN);

It is required to configure those parameters:

Parameter name Description Mandatory
edc.ionos.access.key IONOS Access Key Id to access S3 Yes if the context is accessing file
edc.ionos.secret.access.key IONOS Secret Access Key to access S3 Yes if the context is accessing file
edc.ionos.token IONOS token to allow S3 provisioning Yes if the context is provisioning access for others

To create the token please take a look at the following documentation.

Building and Running

git clone [TBD]
cd EDC-IONOS-Extension
./gradlew clean build
cd connector
java -Dedc.fs.config=resources/config.properties -jar build/libs/dataspace-connector.jar

Example

In order to see a working example, go to the example folder.

Deploying to IONOS Kubernetes

Check the deployment readme to see how to deploy the Connector locally or to an external Kubernetes cluster.

About

IONOS S3 Extension for Eclipse Dataspace Connector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 52.0%
  • Kotlin 19.0%
  • Shell 13.4%
  • HCL 10.7%
  • Dockerfile 2.8%
  • Smarty 2.1%