edgelesssys / edgelessdb

EdgelessDB is a MySQL-compatible database for confidential computing. It runs entirely inside a secure enclave and comes with advanced features for collaboration, recovery, and access control.
https://edgeless.systems/products/edgelessdb
GNU General Public License v2.0
170 stars 17 forks source link

print MRSIGNER & MRENCLAVE during build #110

Closed Laisky closed 2 years ago

Laisky commented 2 years ago

It might be convenient to print out MRSIGNER & MRENCLAVE at build time

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

thomasten commented 2 years ago

Thanks for the contribution. How do you invoke the Docker build to see this output?

Laisky commented 2 years ago

Thanks for the contribution. How do you invoke the Docker build to see this output?

I changed the Dockerfile a bit to docker build it manually, so I can specific my own private.pem and some attributes.

but I found there is no place to get MRENCLAVE so I added a line to output. You can turn off this PR if you don't think it's necessary.

thomasten commented 2 years ago

I think it's helpful. I just couldn't see the output. But I can see it if I add --progress=plain to the docker build command line.

By the way, in case you didn't know, you can specify your own private.pem as explained here https://github.com/edgelesssys/edgelessdb/blob/main/BUILD.md#build-the-docker-image