Skip to content

attestation keys & xxd, somethings wrong.. #1397

Answered by dimakuv
nmwael asked this question in Q&A
Discussion options

You must be logged in to vote

@nmwael I'm assuming you're running this command inside Gramine.

This is unfortunately wrong, because the xxd command will run in its own Gramine enclave (I think echo is a built-in command in shell, so it won't run in its own Gramine enclave).

So basically you have the following:

  1. Gramine enclave 1 -- runs your sh (shell, which is probably Bash or Dash) program. It runs echo built-in command and then spawns a child enclave because xxd is a separate executable.
  2. Gramine enclave 2 -- runs xxd. Receives the key string from the parent enclave and stores this key under /dev/attestation/keys/mykey.

The problem here is that /dev/attestation/keys/ is not propagated from children to parent (only …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dimakuv
Comment options

Answer selected by nmwael
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants