From 1a86bdf61274b7fd2f29e5efe601ce9f7005bbae Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Sun, 20 Sep 2026 00:03:27 -0700 Subject: [PATCH] docs(guest-agent): correct the report_data length in RawQuoteArgs --- dstack/guest-agent/rpc/proto/agent_rpc.proto | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dstack/guest-agent/rpc/proto/agent_rpc.proto b/dstack/guest-agent/rpc/proto/agent_rpc.proto index 6f0a44c95..cea5c4294 100644 --- a/dstack/guest-agent/rpc/proto/agent_rpc.proto +++ b/dstack/guest-agent/rpc/proto/agent_rpc.proto @@ -204,7 +204,8 @@ message TdxQuoteArgs { // - `keccak256` // - `keccak384` // - `keccak512` - // - `raw`: Passes the report_data directly to the driver without any processing + // - `raw`: Passes the report_data directly to the driver without any + // processing, so it must be exactly 64 bytes string hash_algorithm = 2; // Custom prefix to prepend to report data before hashing. @@ -214,7 +215,8 @@ message TdxQuoteArgs { // The request to get a raw TDX quote message RawQuoteArgs { - // 64 bytes of report data + // Report data, at most 64 bytes. `GetQuote` and `Attest` zero-pad shorter + // input; `Tappd.RawQuote` requires exactly 64 bytes. bytes report_data = 1; // Between v0.5.11 and 0.6.0, `Attest` briefly took its own `AttestArgs`