Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

391 backend UI api wrapper GET & POST & DELETE contract definition endpoint with 02x #466

Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
23b7f40
del: ids-clearinghouse-client-Extension
efiege Jun 6, 2023
e4eb869
del: ids-broker-client-Extension
efiege Jun 6, 2023
c0a5df5
feat: upgrade to core-edc-version 0.1.0
efiege Jun 6, 2023
e98ff36
fix: wrapper-Extension
efiege Jun 6, 2023
2e61c92
fix: tests and transfer process state mapping
efiege Jun 6, 2023
35e8347
test: e2e test for a http-push transfer
efiege Jun 15, 2023
9fc4940
chore: integrate lombok version into gradle submodules
efiege Jun 15, 2023
41d8e9e
feat: Add db-migration script for EDC-MS8 to 0.1.0
efiege Jun 19, 2023
b9cbef4
chore: Adapt dev-docker-compose to build images from scratch
efiege Jun 22, 2023
7334850
feat: Upgrade to version 0.1.2
efiege Jun 23, 2023
4fe6182
feat: enhance script to migrate old m8-data to version 0.1.2
efiege Jun 26, 2023
6f0ef3c
feat: update postman collection for version 0.1.2
efiege Jun 26, 2023
671a1ab
feat: update health endpoint in dockerfile for version 0.1.2
efiege Jun 27, 2023
f9d9527
feat: move ms8-to-0.1.0 migration script such that it will be execute…
efiege Jun 28, 2023
ca6c5a6
feat: rename ids endpoints and variables to protocol
efiege Jun 28, 2023
ee255f0
chore: update openapi.yaml to represent version 0.1.2 endpoints
efiege Jun 28, 2023
e55a7b3
chore: adapt changelog for 0.1.2 changes
efiege Jun 30, 2023
f7c170c
feat: upgrade to core edc version 0.1.3
efiege Jul 10, 2023
af33440
feat: upgrade to core edc version 0.2.0
efiege Jul 28, 2023
6619cff
feat(wrapper): create offer merge chnages from main and upgrade to ed…
timdah Jun 26, 2023
8b7596a
feat: migrate initiateTransfer endpoint to edc version 0.2.0
efiege Aug 1, 2023
021b2d0
feat: migrate transferHistory and contractAgreement endpoints to edc …
efiege Aug 1, 2023
f2fdfcb
chore: drop removed columns for edc schema version 0.2.0
efiege Aug 1, 2023
f74b4b9
Added GET Contract Definitions
SaadEGI Aug 3, 2023
5084136
GET and POST Contract Definition Calls
SaadEGI Aug 3, 2023
a26c7b1
DELETE Contract Definition Calls
SaadEGI Aug 3, 2023
d72d511
PR Revision I: Format + assert Functions
SaadEGI Aug 3, 2023
57d3941
Contract Definition Delete Test + PR Revision II
SaadEGI Aug 9, 2023
6081bd8
Merge branch 'main' of https://github.com/sovity/edc-extensions into …
SaadEGI Aug 10, 2023
e124589
test: Contract Definition Api
SaadEGI Aug 10, 2023
d0c3654
Merge branch 'main' of https://github.com/sovity/edc-extensions into …
SaadEGI Aug 10, 2023
dbe2572
fix: Code Style & Struct
SaadEGI Aug 10, 2023
77f916b
chore: CriterionLiteral + operatorDto
SaadEGI Aug 10, 2023
0c506d3
fix: typos and Style
SaadEGI Aug 10, 2023
fb21224
chore: Operator Refactoring+Mapper
SaadEGI Aug 11, 2023
b1b72c4
fix: tests, Criterion SumType
SaadEGI Aug 14, 2023
f8cca5f
fix: Pipeline
SaadEGI Aug 14, 2023
959b1af
chore: CriterionMapper test
SaadEGI Aug 15, 2023
a53052e
fix: remove obsolete wait statements
SaadEGI Aug 15, 2023
bbb34fa
fix: Pipeline
SaadEGI Aug 15, 2023
9ce4c1c
fix: Pipeline
SaadEGI Aug 15, 2023
8da0c04
fix: Timewrapper instead of wait statements
SaadEGI Aug 15, 2023
e901ac0
chore: simplify timewrapper
richardtreier Aug 15, 2023
cbae989
fix: Operator test
SaadEGI Aug 15, 2023
44b8e35
fix: Operator test Naming
SaadEGI Aug 15, 2023
ceb8edf
fix: False Changing
SaadEGI Aug 15, 2023
30729dd
fix: use of static
SaadEGI Aug 15, 2023
ce78b61
fix: Removed dead Code
SaadEGI Aug 15, 2023
9e1cc10
fix: Operator test case
SaadEGI Aug 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ All notable changes to this project will be documented in this file.

## [x.x.x] - UNRELEASED

### Overview

### EDC UI

### EDC-Extensions

#### Major Changes

#### Minor Changes
### Major Changes

#### Patch Changes
- Upgrade to core-EDC version `0.1.2`
- Now using the `Dataspace Protocol`
- Major changes to the management API
- Examples for the new requests are located in the postman collection in the `docs` folder
- The `OpenAPI` file has been updated to represent the EDC version `0.1.2`

### Deployment Migration Notes
### Patch Changes

#### Compatible Versions
- Fix API Wrapper Broker Server API Spec not showing in client libraries.

- Connector Backend Docker Images:
- Dev EDC: `ghcr.io/sovity/edc-dev:{{ VERSION HERE }}`
- Sovity EDC CE: `ghcr.io/sovity/edc-ce:{{ VERSION HERE }}`
- MDS EDC CE: `ghcr.io/sovity/edc-ce-mds:{{ VERSION HERE }}`
- Connector UI Docker Image: `ghcr.io/sovity/edc-ui:0.0.1-milestone-8-sovity{{ VERSION HERE }}`
### Migration Notes

- The `MY_EDC_IDS_BASE_URL` has been renamed to `MY_EDC_PROTOCOL_BASE_URL`
- The default value of `WEB_HTTP_PROTOCOL_PATH` been changed from `${MY_EDC_BASE_PATH}/api/v1/ids` to `${MY_EDC_BASE_PATH}/api/v1/protocol`
- The following new environment variables must be set
- `EDC_PARTICIPANT_ID`: `provider`
- `EDC_JSONLD_HTTPS_ENABLED`: `true`
- `EDC_DSP_CALLBACK_ADDRESS`: `http://edc:11003/api/v1/protocol`
- All endpoints have a `v2` prefix now
- example: `http://localhost:11002/api/v1/management/assets/request` is now available at `http://localhost:11002/api/v1/management/v2/assets/request`

## [4.1.0] - 2023-07-24

Expand All @@ -52,9 +52,9 @@ Security improvements of container image and enhancements for the `ReferringConn
#### Compatible Versions

- Connector Backend Docker Images:
- Dev EDC: `ghcr.io/sovity/edc-dev:4.1.0`
- Sovity EDC CE: `ghcr.io/sovity/edc-ce:4.1.0`
- MDS EDC CE: `ghcr.io/sovity/edc-ce-mds:4.1.0`
- Dev EDC: `ghcr.io/sovity/edc-dev:4.1.0`
- Sovity EDC CE: `ghcr.io/sovity/edc-ce:4.1.0`
- MDS EDC CE: `ghcr.io/sovity/edc-ce-mds:4.1.0`
- Connector UI Docker Image: `ghcr.io/sovity/edc-ui:0.0.1-milestone-8-sovity12`

## [4.0.1] - 2023-07-07
Expand All @@ -80,9 +80,9 @@ No changes besides docker image versions.
#### Compatible Versions

- Connector Backend Docker Images:
- Dev EDC: `ghcr.io/sovity/edc-dev:4.0.1`
- Sovity EDC CE: `ghcr.io/sovity/edc-ce:4.0.1`
- MDS EDC CE: `ghcr.io/sovity/edc-ce-mds:4.0.1`
- Dev EDC: `ghcr.io/sovity/edc-dev:4.0.1`
- Sovity EDC CE: `ghcr.io/sovity/edc-ce:4.0.1`
- MDS EDC CE: `ghcr.io/sovity/edc-ce-mds:4.0.1`
- Connector UI Docker Image: `ghcr.io/sovity/edc-ui:0.0.1-milestone-8-sovity11`

## [4.0.0] - 2023-07-05
Expand Down Expand Up @@ -116,9 +116,9 @@ No changes besides docker image versions.
#### Compatible Versions

- Connector Backend Docker Images:
- Dev EDC: `ghcr.io/sovity/edc-dev:4.0.0`
- Sovity EDC CE: `ghcr.io/sovity/edc-ce:4.0.0`
- MDS EDC CE: `ghcr.io/sovity/edc-ce-mds:4.0.0`
- Dev EDC: `ghcr.io/sovity/edc-dev:4.0.0`
- Sovity EDC CE: `ghcr.io/sovity/edc-ce:4.0.0`
- MDS EDC CE: `ghcr.io/sovity/edc-ce-mds:4.0.0`
- Connector UI Docker Image: `ghcr.io/sovity/edc-ui:0.0.1-milestone-8-sovity9`

## [3.3.0] - 2023-06-06
Expand All @@ -133,6 +133,7 @@ No changes besides docker image versions.

- Minor EE API adjustments.


## [3.2.0] - 2023-05-17

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions connector/.env
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ WEB_HTTP_PROTOCOL_PORT=11003
WEB_HTTP_CONTROL_PORT=11004
WEB_HTTP_PATH=${MY_EDC_BASE_PATH}/api
WEB_HTTP_MANAGEMENT_PATH=${MY_EDC_BASE_PATH}/api/v1/management
WEB_HTTP_PROTOCOL_PATH=${MY_EDC_BASE_PATH}/api/v1/ids
WEB_HTTP_PROTOCOL_PATH=${MY_EDC_BASE_PATH}/api/v1/protocol
WEB_HTTP_CONTROL_PATH=${MY_EDC_BASE_PATH}/api/v1/control


EDC_HOSTNAME=${MY_EDC_FQDN}
EDC_UI_CONNECTOR_ID=${MY_EDC_PROTOCOL}${MY_EDC_FQDN}

MY_EDC_IDS_BASE_URL=${MY_EDC_PROTOCOL}${MY_EDC_FQDN}
IDS_WEBHOOK_ADDRESS=${MY_EDC_IDS_BASE_URL}
EDC_IDS_ENDPOINT=${MY_EDC_IDS_BASE_URL}${WEB_HTTP_PROTOCOL_PATH}
MY_EDC_PROTOCOL_BASE_URL=${MY_EDC_PROTOCOL}${MY_EDC_FQDN}
IDS_WEBHOOK_ADDRESS=${MY_EDC_PROTOCOL_BASE_URL}
EDC_IDS_ENDPOINT=${MY_EDC_PROTOCOL_BASE_URL}${WEB_HTTP_PROTOCOL_PATH}

# Flyway Extension: Required
MY_EDC_JDBC_URL=jdbc:postgresql://missing-postgresql-url
Expand Down
2 changes: 1 addition & 1 deletion connector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY --from=build /home/gradle/project/connector/build/libs/app.jar /app
COPY ./connector/src/main/resources/logging.properties /app

# health status is determined by the availability of the /health endpoint
HEALTHCHECK --interval=5s --timeout=5s --retries=10 CMD curl -H "X-Api-Key: $EDC_API_AUTH_KEY" --fail http://localhost:11002/api/v1/management/check/health
HEALTHCHECK --interval=5s --timeout=5s --retries=10 CMD curl --fail http://localhost:11001/api/check/health

# Use "exec" for graceful termination (SIGINT) to reach JVM.
# ARG can not be used in ENTRYPOINT so storing values in ENV variables
Expand Down
4 changes: 3 additions & 1 deletion connector/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ dependencies {
implementation("${edcGroup}:configuration-filesystem:${edcVersion}")
implementation("${edcGroup}:control-plane-aggregate-services:${edcVersion}")
implementation("${edcGroup}:http:${edcVersion}")
implementation("${edcGroup}:ids:${edcVersion}")
implementation("${edcGroup}:dsp:${edcVersion}")
implementation("${edcGroup}:json-ld:${edcVersion}")
implementation("${edcGroup}:monitor-jdk-logger:${edcVersion}")

// Control-plane to Data-plane
implementation("${edcGroup}:transfer-data-plane:${edcVersion}")
Expand Down
33 changes: 25 additions & 8 deletions docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ services:
environment:
- EDC_UI_ACTIVE_PROFILE=${EDC_UI_ACTIVE_PROFILE}
- EDC_UI_CONFIG_URL=edc-ui-config
- EDC_UI_DATA_MANAGEMENT_API_URL=http://localhost:11002/api/v1/management
- EDC_UI_DATA_MANAGEMENT_API_URL=http://localhost:11002/api/v1/management/v2
- EDC_UI_DATA_MANAGEMENT_API_KEY=ApiKeyDefaultValue
- EDC_UI_CATALOG_URLS=http://edc2:11003/api/v1/ids/data
- EDC_UI_CATALOG_URLS=http://edc2:11003/api/v1/protocol
edc:
image: ${DEV_EDC_IMAGE}
# image: ${DEV_EDC_IMAGE}
build:
dockerfile: connector/Dockerfile
args:
JVM_ARGS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
BUILD_ARGS: -Pfs-vault -Pdmgmt-api-key -Ppostgres-flyway -Poauth
depends_on:
- postgresql
environment:
Expand Down Expand Up @@ -43,14 +48,18 @@ services:

MY_EDC_PROTOCOL: "http://"
MY_EDC_FQDN: "edc"
MY_EDC_IDS_BASE_URL: "http://edc:11003"
MY_EDC_PROTOCOL_BASE_URL: "http://edc:11003"

MY_EDC_JDBC_URL: jdbc:postgresql://postgresql:5432/edc
MY_EDC_JDBC_USER: edc
MY_EDC_JDBC_PASSWORD: edc
EDC_WEB_REST_CORS_ENABLED: 'true'
EDC_WEB_REST_CORS_HEADERS: 'origin,content-type,accept,authorization,x-api-key'
EDC_WEB_REST_CORS_ORIGINS: '*'

EDC_PARTICIPANT_ID: provider
EDC_JSONLD_HTTPS_ENABLED: true
EDC_DSP_CALLBACK_ADDRESS: http://edc:11003/api/v1/protocol
ports:
- '11001:11001'
- '11002:11002'
Expand Down Expand Up @@ -78,11 +87,15 @@ services:
environment:
- EDC_UI_ACTIVE_PROFILE=${EDC_UI_ACTIVE_PROFILE}
- EDC_UI_CONFIG_URL=edc-ui-config
- EDC_UI_DATA_MANAGEMENT_API_URL=http://localhost:22002/api/v1/management
- EDC_UI_DATA_MANAGEMENT_API_URL=http://localhost:22002/api/v1/management/v2
- EDC_UI_DATA_MANAGEMENT_API_KEY=ApiKeyDefaultValue
- EDC_UI_CATALOG_URLS=http://edc:11003/api/v1/ids/data
- EDC_UI_CATALOG_URLS=http://edc:11003/api/v1/protocol
edc2:
image: ${DEV_EDC_IMAGE}
build:
dockerfile: connector/Dockerfile
args:
JVM_ARGS: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005
BUILD_ARGS: -Pfs-vault -Pdmgmt-api-key -Ppostgres-flyway -Poauth
depends_on:
- postgresql2
environment:
Expand Down Expand Up @@ -114,14 +127,18 @@ services:

MY_EDC_PROTOCOL: "http://"
MY_EDC_FQDN: "edc2"
MY_EDC_IDS_BASE_URL: "http://edc2:11003"
MY_EDC_PROTOCOL_BASE_URL: "http://edc2:11003"

MY_EDC_JDBC_URL: jdbc:postgresql://postgresql2:5432/edc
MY_EDC_JDBC_USER: edc
MY_EDC_JDBC_PASSWORD: edc
EDC_WEB_REST_CORS_ENABLED: 'true'
EDC_WEB_REST_CORS_HEADERS: 'origin,content-type,accept,authorization,x-api-key'
EDC_WEB_REST_CORS_ORIGINS: '*'

EDC_PARTICIPANT_ID: consumer
EDC_JSONLD_HTTPS_ENABLED: true
EDC_DSP_CALLBACK_ADDRESS: http://edc2:11003/api/v1/protocol
ports:
- '22001:11001'
- '22002:11002'
Expand Down
Loading