Understanding the secret_provision_start_server API #1294
-
Are measurements from the SGX quotes verified before the secret is sent with the However, I see in the source code that you are supposed to check against "expected values." If that is true, how would you even check against expected values? Doesn't this defeat the point of the security policy? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Additionally, the docs for the
Does this mean you can use the default logic of RA-TLS or provide your own logic? Is there a way to use the default logic and then your logic to, for example, verify the identity of the enclave with |
Beta Was this translation helpful? Give feedback.
-
Oh I get it now. If you pass
|
Beta Was this translation helpful? Give feedback.
-
One important thing to note here: gramine/CI-Examples/ra-tls-secret-prov/secret_prov/server.c Lines 36 to 50 in af7caa9 Ideally, you would replace the above dummy snippet with your own code that will check MRENCLAVE and other measurements against whatever you have as a policy and "golden" values. |
Beta Was this translation helpful? Give feedback.
Oh I get it now. If you pass
NULL
, the required MRENCLAVE is taken from an environment variable, as I found out from the logs: