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
{{ message }}
Repository navigation
Commit 994c959
Browse filesBrowse the repository at this point in the historyBrowse files
GetQuote is TDX-only: it fails on other platforms, and on GCP it leaves
out the vTPM quote that GCP's verification also binds. dstack 0.6 serves
Attest under /v1, whose attestation carries the quote and event log on
every platform and verifies with dstack-verifier.
Evidence is published as attestation.json and the DNS webhook carries
the Attest response when the agent offers /v1; an older agent answers
404 and gets GetQuote as before (quote.json). USE_GET_QUOTE=true keeps
GetQuote for verifiers that need it. When evidence is republished, the
file of the other kind is removed, so readers take quote.json and fall
back to attestation.json.
The webhook also stops forwarding an agent error body as the quote, and
pads report_data to the 64 bytes Tappd.RawQuote requires.
Signed-off-by: Kevin Wang <wy721@qq.com>
| `EVIDENCE_SERVER` | `true` | Serve evidence files at `/evidences/` on the TLS port |
198
198
| `EVIDENCE_PORT` | `80` | Internal port for evidence HTTP server |
199
+
| `USE_GET_QUOTE` | `false` | Attest evidence and webhook requests with a `GetQuote` TDX quote even when the dstack agent offers `/v1/Attest` |
199
200
| `ALPN` | | TLS ALPN protocols (e.g. `h2,http/1.1`). Only set if backends support h2c |
200
201
| `ACCEPT_PROXY_PROTOCOL` | `false` | Read the client's address from a PROXY protocol header (v1 or v2) on every connection to `PORT`, as the dstack gateway sends when the app's `port_policy` sets `pp` for it. A connection without one is refused. See [Client address](#client-address-proxy-protocol) |
201
202
| `SEND_PROXY_PROTOCOL` | `false` | Pass the client's address to the backends (`TARGET_ENDPOINT`, `ROUTING_MAP`) with PROXY protocol v2. Only for backends that read it |
@@ -312,11 +313,14 @@ To disable the built-in evidence endpoint and serve evidence files only through
312
313
| `acme-account.json` | ACME account used to request certificates |
313
314
| `cert-{domain}.pem` | Let's Encrypt certificate for each domain |
314
315
| `sha256sum.txt` | SHA-256 checksums of all evidence files |
315
-
| `quote.json` | TDX quote with `sha256sum.txt` digest in report_data |
316
+
| `attestation.json` | dstack attestation (`/v1/Attest`, dstack 0.6+) with `sha256sum.txt` digest in report_data |
317
+
| `quote.json` | TDX quote with the same report_data, instead of `attestation.json` on older dstack or with `USE_GET_QUOTE=true` |
318
+
319
+
Exactly one of `quote.json` and `attestation.json` is published: read `quote.json`, and fall back to `attestation.json` if it is absent.
316
320
317
321
### Verification Chain
318
322
319
-
1. Verify the TDX quote in `quote.json`
323
+
1. Verify the TDX quote in `quote.json`, or `attestation.json` by POSTing it to [dstack-verifier](https://github.com/Dstack-TEE/dstack/tree/master/dstack/verifier)'s `/verify`
320
324
2. Extract `report_data` — it contains the SHA-256 of `sha256sum.txt`
321
325
3. Verify checksums in `sha256sum.txt` against `acme-account.json` and `cert-*.pem`
322
326
4. This proves the certificates were obtained within the TEE
@@ -496,14 +500,18 @@ Encrypt dropping expiry mail, and the container passes it for you.
0 commit comments