Skip to content

fix: stop enforcing SCONE as unique TEE framework#548

Merged
PierreJeanjacquot merged 3 commits intomainfrom
fix/remove-scone-tag
Feb 5, 2026
Merged

fix: stop enforcing SCONE as unique TEE framework#548
PierreJeanjacquot merged 3 commits intomainfrom
fix/remove-scone-tag

Conversation

@PierreJeanjacquot
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a 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_TAG constant with TEE_TAG throughout 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 processProtectedData to 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 iexec dependency from ^8.22.4 to ^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.

@PierreJeanjacquot PierreJeanjacquot force-pushed the fix/remove-scone-tag branch 2 times, most recently from 10e2b46 to cf8e9b4 Compare February 4, 2026 16:06
Copy link
Contributor

@abbesBenayache abbesBenayache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PierreJeanjacquot PierreJeanjacquot merged commit 349d1bf into main Feb 5, 2026
10 checks passed
@PierreJeanjacquot PierreJeanjacquot deleted the fix/remove-scone-tag branch February 5, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants