mithril-security / blindai

Confidential AI deployment with secure enclaves :lock:
https://www.mithrilsecurity.io/
Apache License 2.0
500 stars 35 forks source link

Connection Error: client.connect_server(..) - Hardware mode - CovidNet Example #59

Closed Alexis-CAPON closed 2 years ago

Alexis-CAPON commented 2 years ago

Hi, I encountered some problems while implementing your framework in hardware with the CovidNet example that you provide. Do you think of anything I forgot?

Description

I have an error that I cannot explain during the step of connecting the client to the server.

Blindai Versions

Additional Information

Screenshots:

image Capture d’écran du 2022-04-27 16-32-42

JoFrost commented 2 years ago

Hey there!

I see you are providing the device isgx to the docker run, and then sgx_provision. Do you have sgx_enclave inside your /dev/ folder? isgx is for the first version of sgx, unsupported by BlindAI.

Alexis-CAPON commented 2 years ago

Thank you for your reply. No I don't, that's why I used isgx

JoFrost commented 2 years ago

Got it. In that case, this is the reason you have this error. SGX1 (without Flexible Launch Control) does not implement security features we rely on, this is why we cannot support it. If you want to try on the hardware mode anyway, I would suggest to try on an Azure Confidential Computing VM. You can try for free and get started quickly. You can find here a tutorial on how to get started quickly: https://docs.mithrilsecurity.io/getting-started/cloud-deployment/azure-dcsv2

Alexis-CAPON commented 2 years ago

Alright, thank you very much!