-
Notifications
You must be signed in to change notification settings - Fork 10
fix: stop enforcing SCONE as unique TEE framework #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
abbesBenayache
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.