intel / trusted-certificate-issuer

Trusted Certificate Service (TCS) is a K8s service to protect signing keys using Intel's SGX technology. K8s CSR and cert-manager CR APIs are both supported. TCS also contains integration samples for Istio service mesh and Key Management Reference Application (KMRA).
Apache License 2.0
29 stars 15 forks source link

Dockerfile: 2-step enclave signing #3

Closed avalluri closed 2 years ago

avalluri commented 2 years ago

Modified the Dockerfile to do 2-step signing. In the first step it generates the enclave signing material file, where this file is supposed to sign by the external signing tool (enclave-config/sign-enclave.sh). The resulted signed file is passed to sgx_sign to generate the final signed enclave.

The integration point for the external signing tools is the sign-enclave.sh script defined under enclave-config. One has to replace this with a suitable tool for signing while building the docker image.