Skip to content

Commit

Permalink
🚚 Rename the OpenAPI connector extension
Browse files Browse the repository at this point in the history
  • Loading branch information
agmangas committed Apr 5, 2024
1 parent 27c67af commit 4dddaf9
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ CMD ${PATH_CONNECTOR}/keystore-to-vault.sh && \
-Dedc.vault=${PATH_CONNECTOR}/vault.properties \
-Dedc.keystore=${KEYSTORE_PATH} \
-Dedc.keystore.password=${KEYSTORE_PASSWORD} \
-jar ${PATH_CONNECTOR}/core-connector/build/libs/core-connector.jar
-jar ${PATH_CONNECTOR}/openapi-connector/build/libs/openapi-connector.jar
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ var distZip = tasks.getByName("distZip")
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
exclude("**/pom.properties", "**/pom.xm")
mergeServiceFiles()
archiveFileName.set("core-connector.jar")
archiveFileName.set("openapi-connector.jar")
dependsOn(distTar, distZip)
}
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,21 @@ public void initialize(ServiceExtensionContext context) {

paramsProvider.registerSourceDecorator((request, address, builder) -> {
if (pkgVersion != null) {
builder.header("X-Core-Connector-Source-Version", pkgVersion);
builder.header("X-OpenAPI-Connector-Source-Version", pkgVersion);
}

builder.header("X-OpenAPI-Connector", "source");

return builder;
});

paramsProvider.registerSinkDecorator((request, address, builder) -> {
if (pkgVersion != null) {
builder.header("X-Core-Connector-Sink-Version", pkgVersion);
builder.header("X-OpenAPI-Connector-Sink-Version", pkgVersion);
}

builder.header("X-OpenAPI-Connector", "sink");

return builder;
});

Expand Down
2 changes: 1 addition & 1 deletion connector/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ dependencyResolutionManagement {
}
}

include("core-connector")
include("openapi-connector")
include("iam")
2 changes: 1 addition & 1 deletion dev-config/box-provider.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ edc.receiver.http.endpoint=http://provider.local:8000/pull
# https://github.com/eclipse-edc/Connector/tree/main/extensions/data-plane/data-plane-api
edc.dataplane.token.validation.endpoint=http://localhost:9192/control/token

# This is a property for the "core-connector" extension found in this repository.
# This is a property for the "openapi-connector" extension found in this repository.
# It should point to the OpenAPI definition of the API that needs to be exposed by the connector.
eu.datacellar.openapi.url=http://provider.local:9090/openapi.json

Expand Down
4 changes: 2 additions & 2 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
-Dedc.keystore.password=datacellar,
-Dedc.vault=/opt/src/dev-config/certs-consumer/vault.properties,
-jar,
/opt/src/connector/core-connector/build/libs/core-connector.jar,
/opt/src/connector/openapi-connector/build/libs/openapi-connector.jar,
]
ports:
- 29191:29191
Expand Down Expand Up @@ -76,7 +76,7 @@ services:
-Dedc.keystore=/opt/src/dev-config/certs-provider/cert.pfx,
-Dedc.keystore.password=datacellar,
-jar,
/opt/src/connector/core-connector/build/libs/core-connector.jar,
/opt/src/connector/openapi-connector/build/libs/openapi-connector.jar,
]
ports:
- 19191:19191
Expand Down

0 comments on commit 4dddaf9

Please sign in to comment.