Repository navigation
dstack v0.6.6
dstack 0.6.6 lets apps reach keys from before a KMS key rotation through the v0 guest API, judges SEV-SNP TCBs against AMD's per-CPU minimums, and ships the 0.6.0 SDKs for Rust, Python, JavaScript and Go. Read the upgrade notes before upgrading the KMS: its state moves to /var/lib/kms, and an SEV-SNP KMS needs a published TCB list first.
Components
| Component | Release | Image |
|---|---|---|
| Guest OS | mkosi-os-v0.6.6 | os_image_hash: 5aa762ee7cddc62174c13e1081d56f7ab2a9aebc513973a1d63b3775fda250ec |
| KMS | kms-v0.6.6 | ghcr.io/dstack-tee/dstack-kms:0.6.6@sha256:fcd5ab703c16adf6f41e7c849a5bd23080375ec7f283cfec7fc9985875909749 |
| KMS auth-eth | kms-auth-eth-v0.6.6 |
ghcr.io/dstack-tee/dstack-kms-auth-eth:0.6.6@sha256:d061ee0342991d3bc451f54a46fc44dd9bcde1ed6f45ca0a8263df503f7cc758 |
| Gateway | gateway-v0.6.6 | ghcr.io/dstack-tee/dstack-gateway:0.6.6@sha256:ae65972feff1b9707d5350ca4abeb58e05439f388f6d9fe0071d097c182c0117 |
| Verifier | verifier-v0.6.6 | ghcr.io/dstack-tee/dstack-verifier:0.6.6@sha256:ad0c3a2e26a966b42889cc52d74b1e8d391640b5910b2e12ee4af3ef7fc3e8e6 |
| Rust SDK | dstack-sdk-v0.6.0 | crates.io dstack-sdk / dstack-sdk-types 0.6.0 |
| Python SDK | python-sdk-v0.6.0 | PyPI dstack-sdk 0.6.0 |
| JS SDK | js-sdk-v0.6.0 | npm @phala/dstack-sdk 0.6.0 |
| Go SDK | sdk/go/v0.6.0, sdk/go/ratls/v0.6.0 |
github.com/Dstack-TEE/dstack/sdk/go v0.6.0 |
The 0.5 guest line gets the same GetKey key epochs in v0.5.16.
Highlights
- Keys from before a KMS key rotation. A rotation changes every key the v0
GetKeyderives, and v1 derives different keys altogether, so a v0 app had no way back to its old key. v0GetKeynow takes optionalroot_epochandapp_epochand reports the epochs it used; unset means the current ones, as before.dstack-key-recoverycovers guests too old to select an epoch (#1630, #1632). - SEV-SNP TCB policy. The KMS and the verifier judge an SEV-SNP TCB against the per-CPU minimums from the AMD security bulletins, published through the auth API (
setSevSnpTcbRequirements) or loaded from a JSON file. Supplied VCEKs are bound to the report's chip and TCB, and ASKs revoked by AMD's CRL are rejected (#1620-#1622, #1627, #1628). - SDKs 0.6.0. The first 0.6 release of every SDK: v0 and v1 clients for the two guest API surfaces, key epoch selection that refuses an agent which ignored it, SealedEnv helpers that take both epochs, compose hashes that agree across languages, and a Go
ratlsthat verifies current certificates. Several APIs are breaking; see the changelog (#1508, #1629). - Gateway WireGuard key proofs. A CVM proves it holds the WireGuard key it registers, off until an operator requires it (#1615).
- VMM and gateway robustness. VM starts, stops and reloads no longer race each other, VM state is written atomically, and gateway leases, IP allocation and replication are tightened, several found by the new Lean models in
formal/(#1597-#1617).
Upgrade notes
- KMS state moves to
/var/lib/kms. Root keys move fromcert_dirintocore.keyring_dir(default/var/lib/kms/keyring), andcert_dirand the default listener TLS paths move to/var/lib/kms/certs. Persist/var/lib/kms, or set both paths. Upgrade by onboarding a new KMS (#1595). - SEV-SNP: publish the TCB list before upgrading the KMS. An SEV-SNP KMS refuses SNP requests, its own self-authorization included, while it has no minimum for the CPU. Upgrade
DstackKmsand the auth API, publish the list, then upgrade the KMS. Every SNP verification also needs AMD KDS, or your mirror, to serve the CRL. See AMD SEV-SNP. DstackKmsdeploys apps throughappImplementation. After upgradingDstackKms, pointsetAppImplementationat a currentDstackApp(#1623).- Gateway key proofs are opt-in. Watch the logs for CVMs that send no proof, then require proofs with
SetWgKeyProofConfigonce every gateway node and CVM is upgraded. - The guest agent logs each API request to the serial console, without arguments (#1626).
- New guest image. Register the 0.6.6
os_image_hashon chain before deploying it.
Full list of changes: CHANGELOG.md.