Skip to content
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

Register the enclave only once #2610

Merged

Conversation

silva-fj
Copy link
Contributor

@silva-fj silva-fj commented Mar 22, 2024

Here is the logic:

primary_enclave_identifier_for_shard returns None if there is no worker registered for the shard.

In the case it's Some, it means there is a primary worker registered for the shard, we are a non-primary worker if it is first run so we need to request provisioning. Then in any case we register worker.

In case it's None, it means there is no primary worker registered for the shard, then we are the primary worker

@silva-fj silva-fj requested review from kziemianek, Kailai-Wang and a team March 22, 2024 17:15
Copy link

linear bot commented Mar 22, 2024

tee-worker/service/src/main_impl.rs Outdated Show resolved Hide resolved
tee-worker/service/src/main_impl.rs Outdated Show resolved Hide resolved
@silva-fj silva-fj enabled auto-merge (squash) April 8, 2024 08:43
@silva-fj silva-fj disabled auto-merge April 8, 2024 08:44
@silva-fj silva-fj enabled auto-merge (squash) April 8, 2024 15:25
@silva-fj silva-fj merged commit 677cb0b into dev Apr 8, 2024
25 of 26 checks passed
@silva-fj silva-fj deleted the p-630-only-register-enclave-once-for-non-primary-workers branch April 8, 2024 16:05
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.

None yet

4 participants