fix: stop enforcing SCONE as unique TEE framework#548
Merged
PierreJeanjacquot merged 3 commits intomainfrom Feb 5, 2026
Merged
fix: stop enforcing SCONE as unique TEE framework#548PierreJeanjacquot merged 3 commits intomainfrom
PierreJeanjacquot merged 3 commits intomainfrom
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request removes the enforcement of SCONE as the only supported TEE framework, making the SDK more flexible to support multiple TEE frameworks. The changes transition from a hardcoded SCONE-specific tag (['tee', 'scone']) to a generic TEE tag (['tee']), allowing the system to work with any TEE framework.
Changes:
- Replaced
SCONE_TAGconstant withTEE_TAGthroughout the codebase, changing from['tee', 'scone']to['tee'] - Removed TEE framework inference logic that parsed app MREnclave to determine if it's a SCONE app
- Updated
processProtectedDatato fetch app orders first and dynamically use the app's tag for workerpool order matching - Removed validation that rejected non-TEE apps, now only verifying that an app or whitelist contract is deployed
- Updated tests to reflect the new behavior and removed tests specific to non-TEE app rejection
- Updated
iexecdependency from^8.22.4to^8.22.5
Reviewed changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/sdk/src/config/config.ts | Changed SCONE_TAG to TEE_TAG, reducing tag specificity from ['tee', 'scone'] to ['tee'] |
| packages/sdk/src/lib/dataProtectorCore/grantAccess.ts | Removed inferTagFromAppMREnclave() function and framework validation, now using generic TEE_TAG for all apps |
| packages/sdk/src/lib/dataProtectorCore/protectData.ts | Removed teeFramework parameter from pushDatasetSecret() call and status updates |
| packages/sdk/src/lib/dataProtectorCore/processProtectedData.ts | Changed to fetch app order first to determine TEE framework dynamically, using app's tag for workerpool orders |
| packages/sdk/src/lib/dataProtectorCore/processBulkRequest.ts | Updated to use TEE_TAG instead of SCONE_TAG, removed maxTag parameter |
| packages/sdk/src/lib/dataProtectorCore/prepareBulkRequest.ts | Updated to use TEE_TAG instead of SCONE_TAG |
| packages/sdk/tests/unit/dataProtectorCore/protectData.test.ts | Removed teeFramework payload from test expectations for SMS push operations |
| packages/sdk/tests/unit/dataProtectorCore/processProtectedData/processProtectedData.test.ts | Updated to expect any(String) for minTag instead of hardcoded SCONE_TAG |
| packages/sdk/tests/e2e/dataProtectorCore/grantAccess.test.ts | Updated test descriptions and expectations, removed non-TEE app test, updated error messages and expected tag values |
| packages/sdk/tests/e2e/dataProtectorCore/getGrantedAccess.test.ts | Updated to use TEE_TAG instead of hardcoded SCONE tag value, reorganized imports |
| packages/sdk/package.json | Updated iexec dependency from ^8.22.4 to ^8.22.5 |
| packages/sdk/package-lock.json | Updated dependency tree for iexec and its transitive dependencies |
Files not reviewed (1)
- packages/sdk/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
10e2b46 to
cf8e9b4
Compare
cf8e9b4 to
1388a54
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.