Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/attestation-gcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ Verification runs in `Attestation::verify_with_time` and splits into TDX + TPM.
the UKI Authenticode hash inside that CBOR file with the GCP TPM PCR2 UKI
event.

### TDX boot-chain verification
Images built with `measurement.gcp.cbor` version 2 also record the RTMR1 and
RTMR2 values that GCE's TDVF produces when it boots the image. For these
images the verifier checks the TDX boot chain in addition to the TPM
(`dstack_mr::gcp::verify_gcp_tdx_boot`):
1. **MRTD** must be one of the GCE TDVF builds listed in `dstack-mr/src/gcp.rs`.
2. **RTMR0** is replayed from the attested event log, which keeps every RTMR0
event's digest. The TD HOB, configuration firmware volume and ACPI table
events must match values recomputed by the verifier from the machine shape
in the VM config (`cpu_count`, `memory_size`, `num_gpus`, `numa_nodes`), which
`dstack-cloud` fills in from the GCE machine type. `gcp-acpi` regenerates
the ACPI tables for that shape.
3. **RTMR1 and RTMR2** must equal the values in `measurement.gcp.cbor`.

### Optional RA TLS binding
If the verifier provides a RA TLS pubkey, it enforces:
`report_data == QuoteContentType::RaTlsCert.to_report_data(pubkey)`.
Expand Down
10 changes: 10 additions & 0 deletions dstack/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dstack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ members = [
"crates/build-info",
"crates/mock-attestation",
"crates/qemu-acpi",
"crates/gcp-acpi",
"crates/pki-fetch",
"crates/dstack-verifier-wasm",
"tools/key-recovery",
Expand All @@ -100,6 +101,7 @@ dstack-volume = { path = "crates/dstack-volume" }
dstack-api-auth = { path = "crates/api-auth" }
dstack-build-info = { path = "crates/build-info" }
qemu-acpi = { path = "crates/qemu-acpi" }
gcp-acpi = { path = "crates/gcp-acpi" }
pki-fetch = { path = "crates/pki-fetch" }
cc-eventlog = { path = "cc-eventlog" }
supervisor = { path = "supervisor" }
Expand Down
16 changes: 16 additions & 0 deletions dstack/crates/gcp-acpi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: © 2026 Phala Network <dstack@phala.network>
# SPDX-License-Identifier: Apache-2.0

[package]
name = "gcp-acpi"
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
description = "Pure Rust generator for the ACPI blobs Google Compute Engine measures into TDX RTMR0"

[dependencies]
thiserror.workspace = true

[dev-dependencies]
hex = { workspace = true, features = ["alloc"] }
sha2.workspace = true
Loading
Loading