I am quite new in using Intel SGX, I have a application which uses MySql Server. How can I integrate Intel SGX with Mysql server and how the architecture could be?
Asked
Active
Viewed 143 times
2 Answers
1
Is it limited to Intel SGX?
To integrate SGX with some libraries, some projects like Gramine and OpenEnclave would be good choices.
An example to run libsqlite.a
library in OpenEnclave:
sqlite and the used package tool apkman.

Dylan
- 79
- 7
-
Thanks so much for you answers, yes it is limited to Intel SGX and I have to integrate MYSQL Server with Intel SGX – sama Aug 08 '22 at 11:15
-
Do you have any recommendation for architecture? – sama Aug 08 '22 at 13:25
-
I mean which parts of MYSQL should be implemented in enclave and how? – sama Aug 11 '22 at 16:56
-
If you integrate Intel SGX with SQL, you have to implement a lot of functionalities that Intel SGX currently does not support. This SQL-SGX project, [EdgelessDB](https://github.com/edgelesssys/edgelessdb), could satisfy your requirements. EdgelessDB is an open-source MySQL-compatible database, runs entirely inside runtime-encrypted Intel SGX enclaves. @sama – Dylan Aug 11 '22 at 23:22
1
If your use case requires performance, I strongly advise you against trying to shove an entire SQL service into an enclave. Some projects like Gramine make that easy, but in many cases the cost makes it not worth it.

X99
- 905
- 10
- 24