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

Allow enclave updates on productive systems #1108

Open
clangenb opened this issue Nov 25, 2022 · 1 comment
Open

Allow enclave updates on productive systems #1108

clangenb opened this issue Nov 25, 2022 · 1 comment

Comments

@clangenb
Copy link
Contributor

clangenb commented Nov 25, 2022

This is not handled yet, and updated enclave binary will currently result in a new sidechain.

On-chain enclave registry

When we register an enclave it is always shard == mrenclave, this means if you update an enclave, it will also change the shard, and you lose track of the enclaves on chain if they update. So we might want to introduce some logic on the parentchain, which enforces a certain mrenclave after a certain block or something.

Encrypted file I/O

This is actually not that big of a problem, SGX seal data does use by default the MRSIGNER parameter, which means that different enclaves signed by the same software vendor can all read sealed data: https://github.com/apache/incubator-teaclave-sgx-sdk/blob/c3d82372dff81e5bafb07f71bc8ad532d06b504e/sgx_tseal/src/seal.rs#L183. Hence, and updated enclave should be able to read data sealed by an old enclave.

Some more info about mrsigner and sealing:

caveat: MRSIGNER isn't the policy we want to follow, because it gives power to leak data to the enclave signer. See #88

How to do an upgrade on a running system?

WIP: https://integritee.atlassian.net/wiki/spaces/INTEGRITEE/pages/544866336/teerex+V2

@clangenb clangenb changed the title Allow enclave updates Allow enclave updates on a productive systems Nov 25, 2022
@clangenb clangenb changed the title Allow enclave updates on a productive systems Allow enclave updates on productive systems Nov 25, 2022
@brenzi
Copy link
Collaborator

brenzi commented Jul 5, 2023

this actually duplicates #85

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

No branches or pull requests

2 participants