-
Hi All, I have a question regarding provisioning/generating a secret key (a string) inside the enclave and later using it. I am writing a simple Javascript function called function receiveFromOutside(param) {
const key = // access some key placed inside the enclave
AES.decrypt(param, key)
...
} My questions are:
So as mentioned in the article, I think I can just read the environment variable Currently, my application is run exactly as described in this Gramine nodejs example. Let me know if I understand something wrongly here. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Please take a look at https://github.com/gramineproject/gramine/tree/master/CI-Examples/ra-tls-secret-prov, these examples in our repository are doing exactly this ;) |
Beta Was this translation helpful? Give feedback.
-
Yep, as @mkow mentioned, please take a look at the example. In particular, take a look at the I also really like the Edgeless Marblerun solution, and I recommend to read about it and experiment with it (it integrates with Gramine): https://www.edgeless.systems/products/marblerun/. Marblerun also serves the purpose of attestation and secret provisioning. |
Beta Was this translation helpful? Give feedback.
Yep, as @mkow mentioned, please take a look at the example. In particular, take a look at the
secret_prov_minimal
example, this should be most useful for your Javascript workload.I also really like the Edgeless Marblerun solution, and I recommend to read about it and experiment with it (it integrates with Gramine): https://www.edgeless.systems/products/marblerun/. Marblerun also serves the purpose of attestation and secret provisioning.