forked from eclipse-edc/DataDashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use connector client in
AssetService
(eclipse-edc#52)
* Rename data management to management * Switch create asset endpoint to connector client * chore: update asset service and models * chore: use a neutral domain name for mocked values * cleanup * Update documentation --------- Co-authored-by: OlfaBensoussia <[email protected]>
- Loading branch information
1 parent
366f3b9
commit 550f6d0
Showing
37 changed files
with
1,162 additions
and
507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,5 @@ Thumbs.db | |
|
||
.terraform* | ||
.angular/ | ||
.gradle | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"uid": "1", | ||
"name": "consumer.edc.connector.io", | ||
"addresses": { | ||
"default": "http://localhost:19191/api", | ||
"management": "http://localhost:19193/management", | ||
"protocol": "http://consumer-connector:9194/protocol", | ||
"public": "http://localhost:19291/public", | ||
"control": "http://localhost:19292/control" | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
deployment/conf/consumer-connector.config/configuration.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
edc.participant.id=consumer | ||
edc.dsp.callback.address=http://consumer-connector:9194/protocol | ||
|
||
web.http.port=9191 | ||
web.http.path=/api | ||
|
||
web.http.control.port=9192 | ||
web.http.control.path=/control | ||
|
||
web.http.management.port=9193 | ||
web.http.management.path=/management | ||
|
||
web.http.protocol.port=9194 | ||
web.http.protocol.path=/protocol | ||
|
||
edc.api.control.auth.apikey.value=123456 | ||
|
||
edc.receiver.http.endpoint=http://host.docker.internal:19999 | ||
|
||
edc.public.key.alias=public-key | ||
|
||
edc.transfer.dataplane.token.signer.privatekey.alias=1 | ||
edc.transfer.dataplane.sync.endpoint=http://consumer-connector:9291/public | ||
|
||
edc.transfer.proxy.token.signer.privatekey.alias=sync-transfer | ||
edc.transfer.proxy.token.verifier.publickey.alias=sync-transfer-public-key | ||
|
||
web.http.public.port=9291 | ||
web.http.public.path=/public | ||
|
||
edc.dataplane.token.validation.endpoint=http://consumer-connector:9192/control/token | ||
|
||
edc.negotiation.consumer.send.retry.limit=1 | ||
edc.negotiation.consumer.send.retry.base-delay.ms=10 | ||
edc.negotiation.provider.send.retry.limit=1 | ||
edc.negotiation.provider.send.retry.base-delay.ms=10 | ||
edc.negotiation.state-machine.iteration-wait-millis=100 | ||
edc.transfer.send.retry.limit=1 | ||
edc.transfer.send.retry.base-delay.ms=10 | ||
edc.transfer.state-machine.iteration-wait-millis=10 | ||
|
||
edc.web.rest.cors.enabled=true |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public-key=-----BEGIN CERTIFICATE-----\r\nMIIDazCCAlOgAwIBAgIUZ3/sZXYzW4PjmOXKrZn6WBmUJ+4wDQYJKoZIhvcNAQEL\r\nBQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM\r\nGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMjAyMjMxNTA2MDNaFw0zMjAy\r\nMjExNTA2MDNaMEUxCzAJBgNVB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nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArk7GSiuiNkUj/lrpWWn3\r\nqL57zh6n/bqQALsd+tgso2lM7ypgZhKIQclPpe0qw8ZCRBh8NfUfdzFwk3uJpsHT\r\nehEGXEzpWU3w07NmVMQ/rfC1mh6NbzsoXWlUC2fExYsJ8uaBNJCVy8pjpmJSbM/7\r\nF5/rrKjxsZrqQ3z9l/G2aLh9S8OV8mCwcRfVLNn2dfWStaFF48xAD4FR6MVCOwgm\r\nmUsBWyFcgKyoA3rfHM2k67zkGVPrsSK5AHlni/yxewOCuR5XGbqBSlHYTAUru4rH\r\n3+qJw7sc56I8xJn/CeHvqVH2MCSPzxrPx3iAfShR0BDZrbFflDnRyb9LiF3MZzy2\r\nbQIDAQAB\r\n-----END PUBLIC KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"uid": "2", | ||
"name": "provider.edc.connector.io", | ||
"addresses": { | ||
"default": "http://localhost:29191/api", | ||
"management": "http://localhost:29193/management", | ||
"protocol": "http://provider-connector:9194/protocol", | ||
"public": "http://localhost:29291/public", | ||
"control": "http://localhost:29292/control" | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
deployment/conf/provider-connector.config/configuration.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
edc.participant.id=provider | ||
edc.dsp.callback.address=http://provider-connector:9194/protocol | ||
|
||
web.http.port=9191 | ||
web.http.path=/api | ||
|
||
web.http.control.port=9192 | ||
web.http.control.path=/control | ||
|
||
web.http.management.port=9193 | ||
web.http.management.path=/management | ||
|
||
web.http.protocol.port=9194 | ||
web.http.protocol.path=/protocol | ||
|
||
edc.api.control.auth.apikey.value=123456 | ||
|
||
edc.receiver.http.endpoint=http://host.docker.internal:19999 | ||
|
||
edc.public.key.alias=public-key | ||
|
||
edc.transfer.dataplane.token.signer.privatekey.alias=1 | ||
edc.transfer.dataplane.sync.endpoint=http://provider-connector:9192/public | ||
|
||
edc.transfer.proxy.token.signer.privatekey.alias=sync-transfer | ||
edc.transfer.proxy.token.verifier.publickey.alias=sync-transfer-public-key | ||
|
||
web.http.public.port=9291 | ||
web.http.public.path=/public | ||
|
||
edc.dataplane.token.validation.endpoint=http://provider-connector:9192/control/token | ||
|
||
edc.negotiation.consumer.send.retry.limit=1 | ||
edc.negotiation.consumer.send.retry.base-delay.ms=10 | ||
edc.negotiation.provider.send.retry.limit=1 | ||
edc.negotiation.provider.send.retry.base-delay.ms=10 | ||
edc.negotiation.state-machine.iteration-wait-millis=100 | ||
edc.transfer.send.retry.limit=1 | ||
edc.transfer.send.retry.base-delay.ms=10 | ||
edc.transfer.state-machine.iteration-wait-millis=10 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public-key=-----BEGIN CERTIFICATE-----\r\nMIIDazCCAlOgAwIBAgIUZ3/sZXYzW4PjmOXKrZn6WBmUJ+4wDQYJKoZIhvcNAQEL\r\nBQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM\r\nGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMjAyMjMxNTA2MDNaFw0zMjAy\r\nMjExNTA2MDNaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw\r\nHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB\r\n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CRBh8NfUfdzFwk3uJpsHT\r\nehEGXEzpWU3w07NmVMQ/rfC1mh6NbzsoXWlUC2fExYsJ8uaBNJCVy8pjpmJSbM/7\r\nF5/rrKjxsZrqQ3z9l/G2aLh9S8OV8mCwcRfVLNn2dfWStaFF48xAD4FR6MVCOwgm\r\nmUsBWyFcgKyoA3rfHM2k67zkGVPrsSK5AHlni/yxewOCuR5XGbqBSlHYTAUru4rH\r\n3+qJw7sc56I8xJn/CeHvqVH2MCSPzxrPx3iAfShR0BDZrbFflDnRyb9LiF3MZzy2\r\nbQIDAQAB\r\n-----END PUBLIC KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM gradle:jdk17 AS build | ||
|
||
COPY --chown=gradle:gradle . /home/gradle/project/ | ||
WORKDIR /home/gradle/project/ | ||
RUN gradle build --no-daemon | ||
|
||
FROM openjdk:17-slim | ||
|
||
WORKDIR /app | ||
COPY --from=build /home/gradle/project/build/libs/connector.jar /app | ||
|
||
ENV EDC_FS_CONFIG=$EDC_FS_CONFIG | ||
ENV EDC_VAULT=$EDC_VAULT | ||
ENV EDC_KEYSTORE=$EDC_KEYSTORE | ||
ENV EDC_KEYSTORE_PASSWORD=$EDC_KEYSTORE_PASSWORD | ||
|
||
EXPOSE 9191 | ||
EXPOSE 9192 | ||
EXPOSE 9193 | ||
EXPOSE 9194 | ||
EXPOSE 9291 | ||
|
||
ENTRYPOINT java -jar connector.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
plugins { | ||
`java-library` | ||
id("application") | ||
alias(libs.plugins.shadow) | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(libs.edc.runtime.metamodel) | ||
implementation(libs.edc.control.plane.core) | ||
implementation(libs.edc.dsp) | ||
implementation(libs.edc.configuration.filesystem) | ||
implementation(libs.edc.vault.filesystem) | ||
implementation(libs.edc.iam.mock) | ||
implementation(libs.edc.management.api) | ||
implementation(libs.edc.api.observability) | ||
implementation(libs.edc.transfer.data.plane) | ||
implementation(libs.edc.transfer.pull.http.receiver) | ||
|
||
implementation(libs.edc.data.plane.selector.api) | ||
implementation(libs.edc.data.plane.selector.core) | ||
implementation(libs.edc.data.plane.selector.client) | ||
|
||
implementation(libs.edc.data.plane.api) | ||
implementation(libs.edc.data.plane.core) | ||
implementation(libs.edc.data.plane.http) | ||
|
||
implementation(libs.edc.federated.catalog.core) | ||
implementation(libs.edc.federated.catalog.api) | ||
} | ||
|
||
application { | ||
mainClass.set("org.eclipse.edc.boot.system.runtime.BaseRuntime") | ||
} | ||
|
||
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> { | ||
dependsOn("distTar", "distZip") | ||
mergeServiceFiles() | ||
archiveFileName.set("connector.jar") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[metadata] | ||
format.version = "1.1" | ||
|
||
[versions] | ||
edc = "0.2.0" | ||
shadow = "8.1.1" | ||
|
||
[libraries] | ||
edc-runtime-metamodel = { module = "org.eclipse.edc:runtime-metamodel", version.ref = "edc" } | ||
edc-control-plane-core = { module = "org.eclipse.edc:control-plane-core", version.ref = "edc" } | ||
edc-dsp = { module = "org.eclipse.edc:dsp", version.ref = "edc" } | ||
edc-configuration-filesystem = { module = "org.eclipse.edc:configuration-filesystem", version.ref = "edc" } | ||
edc-vault-filesystem = { module = "org.eclipse.edc:vault-filesystem", version.ref = "edc" } | ||
edc-iam-mock = { module = "org.eclipse.edc:iam-mock", version.ref = "edc" } | ||
edc-management-api = { module = "org.eclipse.edc:management-api", version.ref = "edc" } | ||
edc-api-observability = { module = "org.eclipse.edc:api-observability", version.ref = "edc" } | ||
edc-transfer-data-plane = { module = "org.eclipse.edc:transfer-data-plane", version.ref = "edc" } | ||
edc-transfer-pull-http-receiver = { module = "org.eclipse.edc:transfer-pull-http-receiver", version.ref = "edc" } | ||
edc-data-plane-selector-api = { module = "org.eclipse.edc:data-plane-selector-api", version.ref = "edc" } | ||
edc-data-plane-selector-core = { module = "org.eclipse.edc:data-plane-selector-core", version.ref = "edc" } | ||
edc-data-plane-selector-client = { module = "org.eclipse.edc:data-plane-selector-client", version.ref = "edc" } | ||
edc-data-plane-api = { module = "org.eclipse.edc:data-plane-api", version.ref = "edc" } | ||
edc-data-plane-core = { module = "org.eclipse.edc:data-plane-core", version.ref = "edc" } | ||
edc-data-plane-http = { module = "org.eclipse.edc:data-plane-http", version.ref = "edc" } | ||
edc-federated-catalog-core = { module = "org.eclipse.edc:federated-catalog-core", version.ref = "edc" } | ||
edc-federated-catalog-api = { module = "org.eclipse.edc:federated-catalog-api", version.ref = "edc" } | ||
|
||
|
||
[plugins] | ||
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" } |
Binary file not shown.
7 changes: 7 additions & 0 deletions
7
deployment/connector/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.