Replies: 4 comments 6 replies
-
Can you share how you are specifying wrapped key in your manifest? Are you using |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply. I am declaring the wrapped key in the fs.mounts in the manifest file: The I looked into the pytorch tutorial that you mentioned. However, I am not able to set up remote attestation on my machine. Is remote attestation required to use the encrypted feature in Gramine? Would it be possible to hard-code the encryption keys only for developmental purposes? |
Beta Was this translation helpful? Give feedback.
-
If you want this to be a real setup, then you need to provision the key to the enclave from a trusted server, after a successful attestation of the enclave. Otherwise you'll just ship the decryption key together with the encrypted data, which makes the encryption useless.
See https://gramine.readthedocs.io/en/stable/attestation.html. |
Beta Was this translation helpful? Give feedback.
-
Ah, I see! In my setup then, encryption of the backend datasets without using the attestation service would not be useful. Thanks for the clarification. On another note, I am still not able to use
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I am attempting to perform a set intersection in Gramine (on Intel SGX) between a receiver query file and multiple sender database files. Both the receiver query file and the sender datasets consist of plain-text (.txt) files containing 32-bit integers. Following the recommended approach, I generated a wrapped key via
gramine-sgx-pf-crypt gen-key
and used that same key to encrypt both the query file and the backend dataset files.However, when I run the application, Gramine appears unable to load the wrapped key from my manifest configuration. As a result, the program fails to open the encrypted receiver file. Below is the relevant debug output and error:
(libos_fs_encrypted.c:206:encrypted_file_internal_open) [P1:T1:ReceiverSender] warning: key 'wrap_key' is not set Error opening receiver file: /enc_receiver_query/receiver_set.txt
Any guidance on resolving this key recognition issue would be greatly appreciated. Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions