Skip to content

Commit 0341938

Browse files
authored
Merge pull request #283 from iExecBlockchainComputing/release/8.7.0
Release/8.7.0
2 parents 2b599bd + 9cbfaae commit 0341938

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1138
-714
lines changed

CHANGELOG.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [[8.7.0]](https://github.com/iExecBlockchainComputing/iexec-sms/releases/tag/v8.7.0) 2024-12-23
6+
7+
### New Features
8+
9+
- Accept scheduler default result-proxy as a web2 secret to fallback on it when no proxy
10+
is specified in deal parameters. (#273)
11+
- Configure the SMS at startup to generate Scone sessions in Hardware or MAA mode. (#275)
12+
- Add configurable cron job to delete expired tasks TEE challenges and Ethereum credentials. (#278)
13+
- Use new `FileHashUtils` API. (#280)
14+
- When undefined, set final deadline after `retention-duration` for up to `batch-size` TEE challenges during cleanup. (#281)
15+
16+
### Quality
17+
18+
- Use `WorkerpoolAuthorization#getHash` instead of `AuthorizationService#getChallengeForWorker`. (#272)
19+
- Reorder static and final keywords. (#274)
20+
- Update methods visibility and remove redundant checks in `SecretSessionBaseService`. (#276)
21+
- Refactor `SecretSessionBaseService` to use `dealParams` instead of deprecated `TaskDescription` fields. (#277)
22+
- Fix code quality issues in several test classes. (#279)
23+
24+
### Dependency Upgrades
25+
26+
- Upgrade to `eclipse-temurin:11.0.24_8-jre-focal`. (#270)
27+
- Upgrade to Gradle 8.10.2. (#271)
28+
- Upgrade to H2 database 2.2.224. (#281)
29+
- Upgrade to `iexec-commons-poco` 4.2.0. (#282)
30+
- Upgrade to `iexec-common` 8.6.0. (#282)
31+
532
## [[8.6.0]](https://github.com/iExecBlockchainComputing/iexec-sms/releases/tag/v8.6.0) 2024-06-18
633

734
### New Features
@@ -22,7 +49,7 @@ All notable changes to this project will be documented in this file.
2249
- Upgrade to Spring Boot 2.7.18. (#262)
2350
- Upgrade to sconify tools and Scone runtime 5.8.8 for SGX enclaves. (#263)
2451
- Upgrade to `iexec-commons-poco` 4.1.0. (#266)
25-
- Upgrade to `iexce-common` 8.5.0. (#266)
52+
- Upgrade to `iexec-common` 8.5.0. (#266)
2653

2754
## [[8.5.1]](https://github.com/iExecBlockchainComputing/iexec-sms/releases/tag/v8.5.1) 2024-04-02
2855

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11.0.22_7-jre-focal
1+
FROM eclipse-temurin:11.0.24_8-jre-focal
22

33
ARG jar
44

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ To support:
6565
| `IEXEC_SECRET_PROVISIONER_WEB_PORT` | Secret provisioner server port for session management. | Positive integer | `8081` | `8080` |
6666
| `IEXEC_SECRET_PROVISIONER_ENCLAVE_HOSTNAME` | Secret provisioner server host for retrieving secrets from attested enclaves. Typically used by workers to execute TEE tasks. | Positive integer | `localhost` | `localhost` |
6767
| `IEXEC_SECRET_PROVISIONER_ENCLAVE_PORT`| Secret provisioner server port for retrieving secrets from attested enclaves. | Positive integer | `18765` | `4433` |
68+
| `IEXEC_TEE_CHALLENGE_CLEANUP_CRON` | Cron expression to configure TEE challenges cleanup policy. | String | `@hourly` | `@hourly` |
69+
| `IEXEC_TEE_CHALLENGE_CLEANUP_MAX_BATCH_SIZE` | Max number of TEE challenges whose missing deadline could be set at a given time. | Integer | `500` | `500` |
70+
| `IEXEC_TEE_CHALLENGE_CLEANUP_RETENTION_DURATION` | Retention duration when setting missing final deadline. | Duration | `P5D` | `P5D` |
6871
| `IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE` | TEE enabled OCI image name for worker pre-compute stage of TEE tasks. | String | | |
6972
| `IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT` | Fingerprint (aka mrenclave) of the TEE enabled worker pre-compute image. | String | | |
7073
| `IEXEC_TEE_WORKER_PRE_COMPUTE_HEAP_SIZE_GB` | Required heap size for a worker pre-compute enclave (in Giga Bytes). | Positive integer | `3` | `3` |
@@ -84,6 +87,8 @@ To support:
8487
| `IEXEC_SMS_SSL_KEYSTORE_ALIAS` | Alias that identifies the key in the key store. | String | `iexec-core` |
8588
| `IEXEC_SCONE_TOLERATED_INSECURE_OPTIONS` | List of hardware or software Scone vulnerabilities to ignore. | String | |
8689
| `IEXEC_IGNORED_SGX_ADVISORIES` | List of hardware or software Intel vulnerabilities to ignore. | String | |
90+
| `TEE_SCONE_ATTESTATION_MODE` | Attestation mode used for TEE tasks Scone session generation. | String | `maa` |
91+
| `TEE_SCONE_ATTESTATION_URL` | URL of the Microsoft Azure Attestation service used for TEE tasks Scone session generation. | URL | `https://sharedweu.weu.attest.azure.net` |
8792
| `IEXEC_SMS_IMAGE_LAS_IMAGE` | Scontain LAS OCI image to be used by workers to execute TEE tasks. LAS performs local attestation which creates a quote that CAS can verify. | String | |
8893

8994
## Health checks

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
22
id 'java'
3-
id 'io.freefair.lombok' version '8.6'
3+
id 'io.freefair.lombok' version '8.10.2'
44
id 'org.springframework.boot' version '2.7.18'
5-
id 'io.spring.dependency-management' version '1.1.4'
5+
id 'io.spring.dependency-management' version '1.1.6'
66
id 'jacoco'
7-
id 'org.sonarqube' version '5.0.0.4638'
7+
id 'org.sonarqube' version '5.1.0.4882'
88
id 'maven-publish'
99
}
1010

@@ -57,7 +57,7 @@ dependencies {
5757
implementation 'org.springframework.retry:spring-retry'
5858
// H2
5959
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
60-
implementation 'com.h2database:h2:2.2.222'
60+
implementation 'com.h2database:h2:2.2.224'
6161

6262
// Spring Doc
6363
implementation 'org.springdoc:springdoc-openapi-ui:1.7.0'

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
version=8.6.0
2-
iexecCommonVersion=8.5.0
3-
iexecCommonsPocoVersion=4.1.0
1+
version=8.7.0
2+
iexecCommonVersion=8.6.0
3+
iexecCommonsPocoVersion=4.2.0
44

55
nexusUser
66
nexusPassword

gradle/wrapper/gradle-wrapper.jar

130 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -55,7 +57,7 @@
5557
# Darwin, MinGW, and NonStop.
5658
#
5759
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5961
# within the Gradle project.
6062
#
6163
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum

gradlew.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################

iexec-sms-library/src/main/java/com/iexec/sms/secret/ReservedSecretKeyName.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 IEXEC BLOCKCHAIN TECH
2+
* Copyright 2022-2024 IEXEC BLOCKCHAIN TECH
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,14 +16,15 @@
1616

1717
package com.iexec.sms.secret;
1818

19-
public class ReservedSecretKeyName {
19+
import lombok.AccessLevel;
20+
import lombok.NoArgsConstructor;
2021

21-
//result encryption
22+
@NoArgsConstructor(access = AccessLevel.PRIVATE)
23+
public class ReservedSecretKeyName {
24+
// result encryption
2225
public static final String IEXEC_RESULT_ENCRYPTION_PUBLIC_KEY = "iexec-result-encryption-public-key";
23-
//result storage
26+
// result storage
2427
public static final String IEXEC_RESULT_DROPBOX_TOKEN = "iexec-result-dropbox-token";
2528
public static final String IEXEC_RESULT_IEXEC_IPFS_TOKEN = "iexec-result-iexec-ipfs-token";
26-
27-
private ReservedSecretKeyName() {}
28-
29+
public static final String IEXEC_RESULT_IEXEC_RESULT_PROXY_URL = "iexec-result-iexec-result-proxy-url";
2930
}

0 commit comments

Comments
 (0)