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

evaluate migration to fortanix #553

Open
brenzi opened this issue Dec 4, 2021 · 4 comments
Open

evaluate migration to fortanix #553

brenzi opened this issue Dec 4, 2021 · 4 comments
Assignees

Comments

@brenzi
Copy link
Collaborator

brenzi commented Dec 4, 2021

teaclave isn't maintained to the extent we'd like to see. We should look for alternatives and estimate migration efforts
Most promising alternative is fortanix, a pure-Rust SGX framework

https://edp.fortanix.com/

@brenzi
Copy link
Collaborator Author

brenzi commented Dec 4, 2021

CC @clangenb @haerdib @mullefel

@haerdib
Copy link
Contributor

haerdib commented Dec 6, 2021

I totally agree. Polkadex also moved to fortanix, and is absolutely excited about it.

I just peeked into the installation part, and I'd assume about 1 day of effort (for installation only, not changing code), including adapting the sgx-script, testing it and migration of all sgx-machines. On the assumption, that it works on Ubuntu 20.04 and 18.04.

Regarding the coding part.. Most files, as they use normal std::xx (with some exceptions (https://edp.fortanix.com/docs/concepts/rust-std/), won't need to be touched, that's good.
My concerns are the following:

  • Enclave tls websocket server
  • Enclave rest client
  • std::fs is not supported. So we'll need to change our enclave shard handling.
  • Cargo.toml adaption - how to allow import for std & sgx?
  • All mesalock libraries (env-logger, http, serde, mio, ...)

@murerfel
Copy link
Contributor

murerfel commented Dec 6, 2021

The websocket, REST and HTTP server are mesalock ports - so your number 1&2 are part of the last point. We'd have to find a solution, otherwise it won't fly.

@murerfel
Copy link
Contributor

There is an issue with certain c-native libraries in Fortanix. Through dependencies, we are currently relying on ring for cryptographic implementations. Unfortunately, ring is not supported yet by Fortnanix. See:

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

3 participants