Skip to content

Commit 86461ba

Browse files
authored
Merge pull request #1735 from eclipse-tractusx/dependabot/gradle/main/edc-0.11.0-20250110-SNAPSHOT
chore(deps): bump edc from 0.11.0-20241213-SNAPSHOT to 0.11.0-20250110-SNAPSHOT
2 parents 298da88 + 719326e commit 86461ba

File tree

11 files changed

+273
-283
lines changed

11 files changed

+273
-283
lines changed

.github/workflows/upgradeability-test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,10 @@ jobs:
5656
helm repo add tractusx https://eclipse-tractusx.github.io/charts/dev
5757
helm repo update tractusx
5858
59-
## Skip 0.6.0 when doing the compatibility check ref https://github.com/eclipse-tractusx/tractusx-edc/issues/1082
6059
- name: "Get latest released version"
6160
id: get-version
6261
run: |
63-
RELEASED_VERSION=$(helm search repo tractusx/tractusx-connector -l -o json | jq -r 'map(select(.version !="0.6.0")) | first | .version')
62+
RELEASED_VERSION=$(helm search repo tractusx/tractusx-connector -l -o json | jq -r 'first | .version')
6463
echo "Last official release is $RELEASED_VERSION"
6564
echo "RELEASE=$RELEASED_VERSION" >> $GITHUB_ENV
6665
exit 0

DEPENDENCIES

Lines changed: 225 additions & 229 deletions
Large diffs are not rendered by default.

charts/tractusx-connector-memory/templates/deployment-runtime.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ spec:
163163

164164
- name: "TX_EDC_DPF_CONSUMER_PROXY_AUTH_APIKEY"
165165
value: {{ .Values.runtime.endpoints.proxy.authKey | required ".Values.runtime.endpoints.proxy.authKey is required" | quote }}
166-
- name: "WEB_HTTP_DEFAULT_PORT"
166+
- name: "WEB_HTTP_PORT"
167167
value: {{ .Values.runtime.endpoints.default.port | quote }}
168-
- name: "WEB_HTTP_DEFAULT_PATH"
168+
- name: "WEB_HTTP_PATH"
169169
value: {{ .Values.runtime.endpoints.default.path | quote }}
170170
{{- if or (eq (substr 0 3 .Values.runtime.image.tag) "0.1") (eq (substr 0 3 .Values.runtime.image.tag) "0.2") }}
171171
# WEB_HTTP_DATA_PORT is renamed to WEB_HTTP_MANAGEMENT_PORT from version 0.2.1 and newer

charts/tractusx-connector-memory/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ runtime:
346346
# -- targetAverageUtilization of memory provided to a pod
347347
targetMemoryUtilizationPercentage: 80
348348

349-
350349
# -- [node selector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) to constrain pods to nodes
351350
nodeSelector: {}
352351
# -- [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) to configure preferred nodes

charts/tractusx-connector/templates/deployment-controlplane.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ spec:
162162
value: {{ .Values.controlplane.endpoints.management.authKey | required ".Values.controlplane.endpoints.management.authKey is required" | quote }}
163163
{{- end }}
164164

165-
- name: "WEB_HTTP_DEFAULT_PORT"
165+
- name: "WEB_HTTP_PORT"
166166
value: {{ .Values.controlplane.endpoints.default.port | quote }}
167-
- name: "WEB_HTTP_DEFAULT_PATH"
167+
- name: "WEB_HTTP_PATH"
168168
value: {{ .Values.controlplane.endpoints.default.path | quote }}
169169
- name: "WEB_HTTP_MANAGEMENT_PORT"
170170
value: {{ .Values.controlplane.endpoints.management.port | quote }}

charts/tractusx-connector/templates/deployment-dataplane.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ spec:
154154
#######
155155
- name: "TX_EDC_DPF_CONSUMER_PROXY_AUTH_APIKEY"
156156
value: {{ .Values.dataplane.endpoints.proxy.authKey | required ".Values.dataplane.endpoints.proxy.authKey is required" | quote }}
157-
- name: "WEB_HTTP_DEFAULT_PORT"
157+
- name: "WEB_HTTP_PORT"
158158
value: {{ .Values.dataplane.endpoints.default.port | quote }}
159-
- name: "WEB_HTTP_DEFAULT_PATH"
159+
- name: "WEB_HTTP_PATH"
160160
value: {{ .Values.dataplane.endpoints.default.path | quote }}
161161
- name: "WEB_HTTP_CONTROL_PORT"
162162
value: {{ .Values.dataplane.endpoints.control.port | quote }}

edc-extensions/dataplane/dataplane-proxy/edc-dataplane-proxy-consumer-api/src/main/java/org/eclipse/tractusx/edc/dataplane/proxy/consumer/api/DataPlaneProxyConsumerApiExtension.java

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@
2323
import org.eclipse.edc.api.auth.spi.AuthenticationService;
2424
import org.eclipse.edc.api.auth.spi.registry.ApiAuthenticationRegistry;
2525
import org.eclipse.edc.connector.dataplane.spi.pipeline.PipelineService;
26+
import org.eclipse.edc.runtime.metamodel.annotation.Configuration;
2627
import org.eclipse.edc.runtime.metamodel.annotation.Extension;
2728
import org.eclipse.edc.runtime.metamodel.annotation.Inject;
2829
import org.eclipse.edc.runtime.metamodel.annotation.Setting;
30+
import org.eclipse.edc.runtime.metamodel.annotation.Settings;
2931
import org.eclipse.edc.spi.monitor.Monitor;
3032
import org.eclipse.edc.spi.security.Vault;
3133
import org.eclipse.edc.spi.system.ServiceExtension;
3234
import org.eclipse.edc.spi.system.ServiceExtensionContext;
33-
import org.eclipse.edc.web.spi.WebServer;
3435
import org.eclipse.edc.web.spi.WebService;
35-
import org.eclipse.edc.web.spi.configuration.WebServiceConfigurer;
36-
import org.eclipse.edc.web.spi.configuration.WebServiceSettings;
36+
import org.eclipse.edc.web.spi.configuration.PortMapping;
37+
import org.eclipse.edc.web.spi.configuration.PortMappingRegistry;
3738
import org.eclipse.tractusx.edc.dataplane.proxy.consumer.api.asset.ClientErrorExceptionMapper;
3839
import org.eclipse.tractusx.edc.dataplane.proxy.consumer.api.asset.ConsumerAssetRequestController;
3940
import org.eclipse.tractusx.edc.edr.spi.service.EdrService;
@@ -50,16 +51,18 @@
5051
*/
5152
@Extension(value = DataPlaneProxyConsumerApiExtension.NAME)
5253
public class DataPlaneProxyConsumerApiExtension implements ServiceExtension {
53-
public static final int DEFAULT_THREAD_POOL = 10;
54+
55+
public static final String NAME = "Data Plane Proxy Consumer API";
56+
private static final String PROXY = "proxy";
57+
private static final int DEFAULT_PROXY_PORT = 8186;
58+
private static final String DEFAULT_PROXY_PATH = "/proxy";
59+
private static final int DEFAULT_THREAD_POOL = 10;
60+
5461
@Setting("Vault alias for the Consumer Proxy API key")
5562
public static final String AUTH_SETTING_CONSUMER_PROXY_APIKEY_ALIAS = "tx.edc.dpf.consumer.proxy.auth.apikey.alias";
5663
@Setting("API key for the Consumer Proxy API")
5764
public static final String AUTH_SETTING_CONSUMER_PROXY_APIKEY = "tx.edc.dpf.consumer.proxy.auth.apikey";
58-
static final String NAME = "Data Plane Proxy Consumer API";
59-
private static final int DEFAULT_PROXY_PORT = 8186;
60-
private static final String CONSUMER_API_ALIAS = "consumer.api";
61-
private static final String CONSUMER_CONTEXT_PATH = "/proxy";
62-
private static final String CONSUMER_CONFIG_KEY = "web.http.proxy";
65+
6366
@Setting(value = "Data plane proxy API consumer port", type = "int")
6467
private static final String CONSUMER_PORT = "tx.edc.dpf.consumer.proxy.port";
6568
@Deprecated(since = "0.7.1")
@@ -72,29 +75,24 @@ public class DataPlaneProxyConsumerApiExtension implements ServiceExtension {
7275
private static final String AUTH_SETTING_APIKEY_ALIAS_DEPRECATED = "edc.api.auth.key.alias";
7376
@Deprecated(since = "0.7.1")
7477
private static final String AUTH_SETTING_APIKEY_DEPRECATED = "edc.api.auth.key";
75-
@Inject
76-
private WebService webService;
7778

78-
@Inject
79-
private WebServer webServer;
79+
@Configuration
80+
private DataPlaneProxyConsumerApiConfiguration apiConfiguration;
8081

82+
@Inject
83+
private WebService webService;
8184
@Inject
8285
private PipelineService pipelineService;
83-
8486
@Inject
8587
private EdrService edrService;
86-
87-
@Inject
88-
private WebServiceConfigurer configurer;
89-
9088
@Inject
9189
private Vault vault;
92-
9390
@Inject
9491
private ApiAuthenticationRegistry apiAuthenticationRegistry;
95-
9692
@Inject
9793
private Monitor monitor;
94+
@Inject
95+
private PortMappingRegistry portMappingRegistry;
9896

9997
private ExecutorService executorService;
10098

@@ -105,22 +103,22 @@ public String name() {
105103

106104
@Override
107105
public void initialize(ServiceExtensionContext context) {
106+
// when deprecated port will be purged, just assign `apiConfiguration.port()` to `port`
108107
var port = propertyCompatibility(context, CONSUMER_PORT, CONSUMER_PORT_DEPRECATED, DEFAULT_PROXY_PORT);
109-
var config = context.getConfig(CONSUMER_CONFIG_KEY);
110-
111-
configurer.configure(config, webServer, createApiContext(port));
108+
var portMapping = new PortMapping(PROXY, port, apiConfiguration.path());
109+
portMappingRegistry.register(portMapping);
112110

113111
var poolSize = propertyCompatibility(context, THREAD_POOL_SIZE, THREAD_POOL_SIZE_DEPRECATED, DEFAULT_THREAD_POOL);
114112
executorService = newFixedThreadPool(poolSize);
115113

116114
var authenticationService = createAuthenticationService(context);
117-
apiAuthenticationRegistry.register(CONSUMER_API_ALIAS, authenticationService);
115+
apiAuthenticationRegistry.register(PROXY, authenticationService);
118116

119-
var authenticationFilter = new AuthenticationRequestFilter(apiAuthenticationRegistry, CONSUMER_API_ALIAS);
120-
webService.registerResource(CONSUMER_API_ALIAS, authenticationFilter);
117+
var authenticationFilter = new AuthenticationRequestFilter(apiAuthenticationRegistry, PROXY);
118+
webService.registerResource(PROXY, authenticationFilter);
121119

122-
webService.registerResource(CONSUMER_API_ALIAS, new ClientErrorExceptionMapper());
123-
webService.registerResource(CONSUMER_API_ALIAS, new ConsumerAssetRequestController(edrService, pipelineService, executorService, monitor));
120+
webService.registerResource(PROXY, new ClientErrorExceptionMapper());
121+
webService.registerResource(PROXY, new ConsumerAssetRequestController(edrService, pipelineService, executorService, monitor));
124122
}
125123

126124
@Override
@@ -138,14 +136,14 @@ private AuthenticationService createAuthenticationService(ServiceExtensionContex
138136
return new TokenBasedAuthenticationService(context.getMonitor().withPrefix("ConsumerProxyAPI"), apiKey);
139137
}
140138

141-
private WebServiceSettings createApiContext(int port) {
142-
return WebServiceSettings.Builder.newInstance()
143-
.apiConfigKey(CONSUMER_CONFIG_KEY)
144-
.contextAlias(CONSUMER_API_ALIAS)
145-
.defaultPath(CONSUMER_CONTEXT_PATH)
146-
.defaultPort(port)
147-
.name(NAME)
148-
.build();
139+
@Settings
140+
record DataPlaneProxyConsumerApiConfiguration(
141+
@Setting(key = "web.http." + PROXY + ".port", description = "Port for " + PROXY + " api context", defaultValue = DEFAULT_PROXY_PORT + "")
142+
int port,
143+
@Setting(key = "web.http." + PROXY + ".path", description = "Path for " + PROXY + " api context", defaultValue = DEFAULT_PROXY_PATH)
144+
String path
145+
) {
146+
149147
}
150148

151149
}

edc-tests/edc-controlplane/iatp-tests/src/test/java/org/eclipse/tractusx/edc/tests/transfer/iatp/harness/IatpParticipant.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public String verificationId() {
5050
@Override
5151
public Map<String, String> getConfiguration() {
5252
var cfg = new HashMap<>(super.getConfiguration());
53-
cfg.put("web.http.resolution.port", String.valueOf(csService.getPort()));
54-
cfg.put("web.http.resolution.path", csService.getPath());
53+
cfg.put("web.http.presentation.port", String.valueOf(csService.getPort()));
54+
cfg.put("web.http.presentation.path", csService.getPath());
5555
if (dimUri != null) {
5656
cfg.put("tx.edc.iam.sts.dim.url", dimUri.toString());
5757
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
format.version = "1.1"
33

44
[versions]
5-
edc = "0.11.0-20241213-SNAPSHOT"
5+
edc = "0.11.0-20250110-SNAPSHOT"
66
assertj = "3.27.2"
77
awaitility = "4.2.2"
88
aws = "2.29.49"

resources/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ HEALTHCHECK NONE
4949

5050
ENTRYPOINT ["java", \
5151
"-javaagent:/app/opentelemetry-javaagent.jar", \
52-
"-Dedc.fs.config=/app/configuration.properties", \
5352
"-Dotel.javaagent.configuration-file=/app/opentelemetry.properties", \
54-
"-Dotel.metrics.exporter=prometheus", \
55-
"-Dotel.exporter.prometheus.port=9090", \
53+
"-Dedc.fs.config=/app/configuration.properties", \
5654
"-Djava.security.egd=file:/dev/urandom", \
5755
"-jar", \
5856
"edc-runtime.jar"]

0 commit comments

Comments
 (0)