mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 15:13:56 +02:00
feat(tdx): add nix build for TDX google VMs
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
8270c389e4
commit
dc1e756ec6
11 changed files with 638 additions and 16 deletions
26
README.md
26
README.md
|
@ -1,13 +1,5 @@
|
|||
# teepot
|
||||
|
||||
Key Value store in a TEE with Remote Attestation for Authentication
|
||||
|
||||
## Introduction
|
||||
|
||||
This project is a key-value store that runs in a Trusted Execution Environment (TEE) and uses Remote Attestation for
|
||||
Authentication.
|
||||
The key-value store is implemented using Hashicorp Vault running in an Intel SGX enclave via the Gramine runtime.
|
||||
|
||||
## Parts of this project
|
||||
|
||||
- `teepot`: The main rust crate that abstracts TEEs and key-value stores.
|
||||
|
@ -22,6 +14,18 @@ The key-value store is implemented using Hashicorp Vault running in an Intel SGX
|
|||
- `verify-attestation`: A client utility that verifies the attestation of an enclave.
|
||||
- `tee-key-preexec`: A pre-exec utility that generates a p256 secret key and passes it as an environment variable to the
|
||||
enclave along with the attestation quote containing the hash of the public key.
|
||||
- `tdx_google`: A base VM running on Google Cloud TDX. It receives a container URL via the instance metadata,
|
||||
measures the sha384 of the URL to RTMR3 and launches the container.
|
||||
- `tdx-extend`: A utility to extend an RTMR register with a hash value.
|
||||
- `rtmr-calc`: A utility to calculate RTMR1 and RTMR2 from a GPT disk, the linux kernel, the linux initrd
|
||||
and a UKI (unified kernel image).
|
||||
- `sha384-extend`: A utility to calculate RTMR registers after extending them with a digest.
|
||||
|
||||
## Vault
|
||||
|
||||
Part of this project is a key-value store that runs in a Trusted Execution Environment (TEE) and uses Remote Attestation
|
||||
for Authentication. The key-value store is implemented using Hashicorp Vault running in an Intel SGX enclave via the
|
||||
Gramine runtime.
|
||||
|
||||
## Development
|
||||
|
||||
|
@ -96,3 +100,9 @@ Attributes:
|
|||
isv_svn: 0
|
||||
debug_enclave: False
|
||||
```
|
||||
|
||||
### TDX VM testing
|
||||
|
||||
```shell
|
||||
nixos-rebuild -L --flake .#tdxtest build-vm && ./result/bin/run-tdxtest-vm
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue