Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:17.0.13_11-jre-focal
FROM eclipse-temurin:21.0.11_10-jre-noble

ARG jar

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ allprojects {
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

tasks.withType(JavaCompile).configureEach {
Expand Down
4 changes: 2 additions & 2 deletions iexec-sms-library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ dependencies {
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withJavadocJar()
withSourcesJar()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2025 IEXEC BLOCKCHAIN TECH
* Copyright 2020-2026 IEXEC BLOCKCHAIN TECH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -112,7 +112,7 @@ public TeeServicesProperties resolveTeeServiceProperties(final String version) {
}

private String createSessionId(final String taskId) {
final String randomString = RandomStringUtils.randomAlphanumeric(10);
final String randomString = RandomStringUtils.secure().nextAlphanumeric(10);
return String.format("%s0000%s", randomString, taskId);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2025 IEXEC BLOCKCHAIN TECH
* Copyright 2020-2026 IEXEC BLOCKCHAIN TECH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,6 +38,8 @@
import org.yaml.snakeyaml.Yaml;

import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.List;
import java.util.Map;
Expand All @@ -57,9 +59,9 @@ class SconeSessionMakerServiceTests {

static {
try {
MAA_URL_OUT_OF_SERVICE = new URL("https://broken.maa.attestation.service");
MAA_URL = new URL("https://maa.attestation.service");
} catch (MalformedURLException e) {
MAA_URL_OUT_OF_SERVICE = new URI("https://broken.maa.attestation.service").toURL();
MAA_URL = new URI("https://maa.attestation.service").toURL();
} catch (URISyntaxException | MalformedURLException e) {
throw new RuntimeException(e);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2025 IEXEC BLOCKCHAIN TECH
* Copyright 2025-2026 IEXEC BLOCKCHAIN TECH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -24,6 +24,8 @@
import org.junit.jupiter.api.Test;

import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.List;
import java.util.Set;
Expand All @@ -39,8 +41,8 @@ class SconeSessionSecurityConfigTests {

static {
try {
MAA_URL = new URL("https://maa.attestation.service");
} catch (MalformedURLException e) {
MAA_URL = new URI("https://maa.attestation.service").toURL();
} catch (URISyntaxException | MalformedURLException e) {
throw new RuntimeException(e);
}
}
Expand Down
Loading