You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: calculate SGX mr_enclave for notary server in gramine docker (#701)
* calculate SGX mr_enclave for notary server in gramine docker
* remove old tee github workflow
* attest build result for dev branch builds and releases
This package contains the **SGX-enabled version of the TLSNotary Notary Server**, built with **Gramine** to run securely on Intel SGX hardware. Follow the instructions below to install dependencies, verify the integrity of the enclave, and launch the server.
For more details, refer to the official **[Intel SGX Installation Guide](https://download.01.org/intel-sgx/latest/dcap-latest/linux/docs/Intel_SGX_SW_Installation_Guide_for_Linux.pdf).**
21
+
22
+
## Verify the Enclave Signature (`MR_ENCLAVE`, `MR_SIGNER`)
23
+
24
+
Before running the Notary Server, verify that the provided **enclave signature (`.sig`)** matches the expected **`MR_ENCLAVE` and `MR_SIGNER`** values.
25
+
26
+
Run the following command inside a **Gramine Docker container** to inspect the enclave's signature:
27
+
28
+
```sh
29
+
docker run --rm -v "$(pwd):/work" -w /work gramineproject/gramine:latest \
-`--volume=/var/run/aesmd/aesm.socket:/var/run/aesmd/aesm.socket` → Enables access to **Intel's AESM daemon** (required for remote attestation).
55
+
-`-p 7047:7047` → Exposes the notary server on port **7047**.
56
+
57
+
## Attestation & Verification
58
+
59
+
The Notary Server runs inside an **Intel SGX enclave**, which supports **remote attestation**. When connecting to it, clients should request an **SGX quote** to verify:
60
+
61
+
-**MR_ENCLAVE** (ensures the correct enclave binary is running).
62
+
-**MR_SIGNER** (ensures the enclave was signed by the expected key).
63
+
-**Quote Freshness** (prevents replay attacks).
64
+
65
+
To retrieve the SGX attestation quote, navigate to `<your notary server>:7047/info`:
0 commit comments