edgelesssys / edgelessrt

Edgeless RT is an SDK and a runtime for Intel SGX. It combines top-notch Go support with simplicity, robustness and a small TCB. Developing confidential microservices has never been easier! C++17 and Rust (experimental) are also supported.
https://edgeless.systems
MIT License
134 stars 20 forks source link

How to add custom enclave entry function? #157

Open anthony-zhan opened 1 year ago

anthony-zhan commented 1 year ago

Could help to provide examples for adding custom enclave entry function?

ertdeventry must not be used in production, as the README said, and ertmeshentry seems to introduce some extra packages related with marble.

I saw test case customentry and tried to create a custom enclave entry function based on it, but got error when using add_enclave_library in CMake.

Will you take a look at it, when you have time? Thanks in advance.

thomasten commented 1 year ago

Hi, I just updated the helloworld sample to show how this works with recent versions of Edgeless RT. (When this sample was created, it worked exactly like custom_host, just without building the host. We forgot updating it to the new approach.)

anthony-zhan commented 1 year ago

Hi @thomasten, Thanks for updating helloworld sample. It helps a lot!