Skip to content

Commit 978d762

Browse files
Merge branch 'next' into feature/services-domains-migration
2 parents 7c4ddf3 + 1e0a657 commit 978d762

File tree

5 files changed

+44
-68
lines changed

5 files changed

+44
-68
lines changed

.drone.yml

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -154,23 +154,18 @@ steps:
154154
- graphnode
155155

156156
- name: sms
157-
image: iexechub/iexec-sms:7.1.0
157+
image: iexechub/iexec-sms:8.7.0
158158
detach: true
159159
environment:
160-
TZ: Europe/Paris
160+
JAVA_TOOL_OPTIONS: '-Xmx256M'
161161
IEXEC_SMS_BLOCKCHAIN_NODE_ADDRESS: http://bellecour-fork:8545
162162
IEXEC_HUB_ADDRESS: '0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f'
163-
IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE: docker.io/iexechub/tee-worker-pre-compute:7.1.0-sconify-5.3.15-debug
164-
IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT: 9f0f782d6edc611baa23ca0978f555ee58ea70e092640c961e75c25e9e4b0f22
165-
IEXEC_TEE_WORKER_PRE_COMPUTE_HEAP_SIZE_GB: 4
166-
IEXEC_TEE_WORKER_POST_COMPUTE_IMAGE: docker.io/iexechub/tee-worker-post-compute:7.1.1-sconify-5.3.15-debug
167-
IEXEC_TEE_WORKER_POST_COMPUTE_FINGERPRINT: face1376b97131e2dc75a556381d47a2e03bed9e1bc11e462471f99d1eefae50
168-
IEXEC_TEE_WORKER_POST_COMPUTE_HEAP_SIZE_GB: 4
169-
IEXEC_IGNORED_SGX_ADVISORIES: INTEL-SA-00161,INTEL-SA-00289,INTEL-SA-00334,INTEL-SA-00381,INTEL-SA-00389,INTEL-SA-00220,INTEL-SA-00270,INTEL-SA-00293,INTEL-SA-00320,INTEL-SA-00329,INTEL-SA-00477
170-
IEXEC_SCONE_TOLERATED_INSECURE_OPTIONS: debug-mode,hyperthreading,outdated-tcb
171-
IEXEC_SMS_DISPLAY_DEBUG_SESSION: 'true'
172-
IEXEC_SCONE_CAS_HOST: foo
173-
IEXEC_SMS_IMAGE_LAS_IMAGE: foo
163+
IEXEC_SMS_TEE_RUNTIME_FRAMEWORK: scone
164+
IEXEC_SMS_IMAGE_LAS_IMAGE: 'las-image'
165+
IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE: 'pre-compute-image'
166+
IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT: 'pre-compute-fingerprint'
167+
IEXEC_TEE_WORKER_POST_COMPUTE_IMAGE: 'post-compute-image'
168+
IEXEC_TEE_WORKER_POST_COMPUTE_FINGERPRINT: 'post-compute-fingerprint'
174169
expose:
175170
- 13300
176171
depends_on:
@@ -184,23 +179,18 @@ steps:
184179
- sms
185180

186181
- name: sms-gramine
187-
image: iexechub/iexec-sms:7.1.0
182+
image: iexechub/iexec-sms:8.7.0
188183
detach: true
189184
environment:
190-
TZ: Europe/Paris
185+
JAVA_TOOL_OPTIONS: '-Xmx256M'
191186
IEXEC_SMS_BLOCKCHAIN_NODE_ADDRESS: http://bellecour-fork:8545
192187
IEXEC_HUB_ADDRESS: '0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f'
193-
IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE: docker.io/iexechub/tee-worker-pre-compute:7.1.0-sconify-5.3.15-debug
194-
IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT: 9f0f782d6edc611baa23ca0978f555ee58ea70e092640c961e75c25e9e4b0f22
195-
IEXEC_TEE_WORKER_PRE_COMPUTE_HEAP_SIZE_GB: 4
196-
IEXEC_TEE_WORKER_POST_COMPUTE_IMAGE: docker.io/iexechub/tee-worker-post-compute:7.1.1-sconify-5.3.15-debug
197-
IEXEC_TEE_WORKER_POST_COMPUTE_FINGERPRINT: face1376b97131e2dc75a556381d47a2e03bed9e1bc11e462471f99d1eefae50
198-
IEXEC_TEE_WORKER_POST_COMPUTE_HEAP_SIZE_GB: 4
199-
IEXEC_IGNORED_SGX_ADVISORIES: INTEL-SA-00161,INTEL-SA-00289,INTEL-SA-00334,INTEL-SA-00381,INTEL-SA-00389,INTEL-SA-00220,INTEL-SA-00270,INTEL-SA-00293,INTEL-SA-00320,INTEL-SA-00329,INTEL-SA-00477
200-
IEXEC_SCONE_TOLERATED_INSECURE_OPTIONS: debug-mode,hyperthreading,outdated-tcb
201-
IEXEC_SMS_DISPLAY_DEBUG_SESSION: 'true'
202-
IEXEC_SCONE_CAS_HOST: foo
203-
IEXEC_SMS_IMAGE_LAS_IMAGE: foo
188+
IEXEC_SMS_TEE_RUNTIME_FRAMEWORK: scone
189+
IEXEC_SMS_IMAGE_LAS_IMAGE: 'las-image'
190+
IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE: 'pre-compute-image'
191+
IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT: 'pre-compute-fingerprint'
192+
IEXEC_TEE_WORKER_POST_COMPUTE_IMAGE: 'post-compute-image'
193+
IEXEC_TEE_WORKER_POST_COMPUTE_FINGERPRINT: 'post-compute-fingerprint'
204194
expose:
205195
- 13300
206196
depends_on:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
### Changed
88

99
- migrated SMS default URL (<https://sms.iex.ec>)
10+
- migrated from SMS deprecated apps secrets endpoint
1011

1112
## [8.13.0] 2025-01-21
1213

src/common/sms/check.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import Debug from 'debug';
22
import { httpRequest } from '../utils/api-utils.js';
3-
import {
4-
addressSchema,
5-
throwIfMissing,
6-
positiveIntSchema,
7-
} from '../utils/validator.js';
3+
import { addressSchema, throwIfMissing } from '../utils/validator.js';
84
import { SmsCallError } from '../utils/errors.js';
95

106
const debug = Debug('iexec:sms:check');
@@ -147,22 +143,20 @@ export const checkAppSecretExists = async (
147143
contracts = throwIfMissing(),
148144
smsURL = throwIfMissing(),
149145
appAddress = throwIfMissing(),
150-
secretIndex = 1,
151146
) => {
152147
try {
153148
const vAppAddress = await addressSchema({
154149
ethProvider: contracts.provider,
155150
}).validate(appAddress);
156-
const vSecretIndex = await positiveIntSchema().validate(secretIndex);
157151
const kindOfSecret = 'app';
158-
const secretId = `${vAppAddress}|${vSecretIndex}`;
152+
const secretId = vAppAddress;
159153
const cached = checkCache({ smsURL, kindOfSecret, secretId });
160154
if (cached !== undefined) {
161155
return cached;
162156
}
163157
const res = await httpRequest('HEAD')({
164158
api: smsURL,
165-
endpoint: `/apps/${vAppAddress}/secrets/${vSecretIndex}`,
159+
endpoint: `/apps/${vAppAddress}/secrets`,
166160
ApiCallErrorClass: SmsCallError,
167161
});
168162
if (res.ok) {

src/common/sms/push.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
addressSchema,
88
stringSchema,
99
throwIfMissing,
10-
positiveIntSchema,
1110
} from '../utils/validator.js';
1211
import { wrapPersonalSign } from '../utils/errorWrappers.js';
1312
import { checkSigner } from '../utils/utils.js';
@@ -225,19 +224,17 @@ export const pushAppSecret = async (
225224
smsURL = throwIfMissing(),
226225
appAddress = throwIfMissing(),
227226
secretValue = throwIfMissing(),
228-
secretIndex = 1,
229227
) => {
230228
try {
231229
checkSigner(contracts);
232230
const vSignerAddress = await getAddress(contracts);
233231
const vAppAddress = await addressSchema({
234232
ethProvider: contracts.provider,
235233
}).validate(appAddress);
236-
const vSecretIndex = await positiveIntSchema().validate(secretIndex);
237234
await stringSchema().validate(secretValue, { strict: true });
238235
const challenge = getChallengeForSetWeb2Secret(
239236
vAppAddress,
240-
vSecretIndex.toString(),
237+
'1', // used to be secret index (hardcoded to "1")
241238
secretValue,
242239
);
243240
const binaryChallenge = getBytes(challenge);
@@ -246,7 +243,7 @@ export const pushAppSecret = async (
246243
);
247244
const res = await httpRequest('POST')({
248245
api: smsURL,
249-
endpoint: `/apps/${vAppAddress}/secrets/${vSecretIndex}`,
246+
endpoint: `/apps/${vAppAddress}/secrets`,
250247
body: secretValue,
251248
headers: {
252249
Authorization: auth,

test/docker-compose.yml

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -115,49 +115,43 @@ services:
115115
- 5500:80
116116

117117
sms:
118-
image: iexechub/iexec-sms:7.1.0
118+
image: iexechub/iexec-sms:8.7.0
119119
restart: unless-stopped
120120
environment:
121-
TZ: Europe/Paris
121+
JAVA_TOOL_OPTIONS: '-Xmx256M'
122122
IEXEC_SMS_BLOCKCHAIN_NODE_ADDRESS: http://bellecour-fork:8545
123123
IEXEC_HUB_ADDRESS: '0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f'
124-
IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE: docker.io/iexechub/tee-worker-pre-compute:7.1.0-sconify-5.3.15-debug
125-
IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT: 9f0f782d6edc611baa23ca0978f555ee58ea70e092640c961e75c25e9e4b0f22
126-
IEXEC_TEE_WORKER_PRE_COMPUTE_HEAP_SIZE_GB: 4
127-
IEXEC_TEE_WORKER_POST_COMPUTE_IMAGE: docker.io/iexechub/tee-worker-post-compute:7.1.1-sconify-5.3.15-debug
128-
IEXEC_TEE_WORKER_POST_COMPUTE_FINGERPRINT: face1376b97131e2dc75a556381d47a2e03bed9e1bc11e462471f99d1eefae50
129-
IEXEC_TEE_WORKER_POST_COMPUTE_HEAP_SIZE_GB: 4
130-
IEXEC_IGNORED_SGX_ADVISORIES: INTEL-SA-00161,INTEL-SA-00289,INTEL-SA-00334,INTEL-SA-00381,INTEL-SA-00389,INTEL-SA-00220,INTEL-SA-00270,INTEL-SA-00293,INTEL-SA-00320,INTEL-SA-00329,INTEL-SA-00477
131-
IEXEC_SCONE_TOLERATED_INSECURE_OPTIONS: debug-mode,hyperthreading,outdated-tcb
132-
IEXEC_SMS_DISPLAY_DEBUG_SESSION: 'true'
133-
IEXEC_SCONE_CAS_HOST: foo
134-
IEXEC_SMS_IMAGE_LAS_IMAGE: foo
124+
IEXEC_SMS_TEE_RUNTIME_FRAMEWORK: scone
125+
IEXEC_SMS_IMAGE_LAS_IMAGE: 'las-image'
126+
IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE: 'pre-compute-image'
127+
IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT: 'pre-compute-fingerprint'
128+
IEXEC_TEE_WORKER_POST_COMPUTE_IMAGE: 'post-compute-image'
129+
IEXEC_TEE_WORKER_POST_COMPUTE_FINGERPRINT: 'post-compute-fingerprint'
135130
ports:
136131
- 13300:13300
132+
healthcheck:
133+
test: curl -f localhost:13300/actuator/health || exit 1
137134
depends_on:
138135
bellecour-fork:
139136
condition: service_healthy
140137

141138
sms-gramine:
142-
image: iexechub/iexec-sms:7.1.0
139+
image: iexechub/iexec-sms:8.7.0
143140
restart: unless-stopped
144141
environment:
145-
TZ: Europe/Paris
142+
JAVA_TOOL_OPTIONS: '-Xmx256M'
146143
IEXEC_SMS_BLOCKCHAIN_NODE_ADDRESS: http://bellecour-fork:8545
147144
IEXEC_HUB_ADDRESS: '0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f'
148-
IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE: docker.io/iexechub/tee-worker-pre-compute:7.1.0-sconify-5.3.15-debug
149-
IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT: 9f0f782d6edc611baa23ca0978f555ee58ea70e092640c961e75c25e9e4b0f22
150-
IEXEC_TEE_WORKER_PRE_COMPUTE_HEAP_SIZE_GB: 4
151-
IEXEC_TEE_WORKER_POST_COMPUTE_IMAGE: docker.io/iexechub/tee-worker-post-compute:7.1.1-sconify-5.3.15-debug
152-
IEXEC_TEE_WORKER_POST_COMPUTE_FINGERPRINT: face1376b97131e2dc75a556381d47a2e03bed9e1bc11e462471f99d1eefae50
153-
IEXEC_TEE_WORKER_POST_COMPUTE_HEAP_SIZE_GB: 4
154-
IEXEC_IGNORED_SGX_ADVISORIES: INTEL-SA-00161,INTEL-SA-00289,INTEL-SA-00334,INTEL-SA-00381,INTEL-SA-00389,INTEL-SA-00220,INTEL-SA-00270,INTEL-SA-00293,INTEL-SA-00320,INTEL-SA-00329,INTEL-SA-00477
155-
IEXEC_SCONE_TOLERATED_INSECURE_OPTIONS: debug-mode,hyperthreading,outdated-tcb
156-
IEXEC_SMS_DISPLAY_DEBUG_SESSION: 'true'
157-
IEXEC_SCONE_CAS_HOST: foo
158-
IEXEC_SMS_IMAGE_LAS_IMAGE: foo
145+
IEXEC_SMS_TEE_RUNTIME_FRAMEWORK: scone
146+
IEXEC_SMS_IMAGE_LAS_IMAGE: 'las-image'
147+
IEXEC_TEE_WORKER_PRE_COMPUTE_IMAGE: 'pre-compute-image'
148+
IEXEC_TEE_WORKER_PRE_COMPUTE_FINGERPRINT: 'pre-compute-fingerprint'
149+
IEXEC_TEE_WORKER_POST_COMPUTE_IMAGE: 'post-compute-image'
150+
IEXEC_TEE_WORKER_POST_COMPUTE_FINGERPRINT: 'post-compute-fingerprint'
159151
ports:
160152
- 13309:13300
153+
healthcheck:
154+
test: curl -f localhost:13300/actuator/health || exit 1
161155
depends_on:
162156
bellecour-fork:
163157
condition: service_healthy
@@ -287,9 +281,9 @@ services:
287281
graphnode:
288282
condition: service_healthy
289283
sms:
290-
condition: service_started
284+
condition: service_healthy
291285
sms-gramine:
292-
condition: service_started
286+
condition: service_healthy
293287
market-watcher:
294288
condition: service_started
295289
market-api:

0 commit comments

Comments
 (0)