Skip to content

Releases

Go SDK v0.6.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 10:15
53ee9ab

Go module

Module: github.com/Dstack-TEE/dstack/sdk/go
Version: v0.6.1

go get github.com/Dstack-TEE/dstack/sdk/go@v0.6.1

Docs: https://pkg.go.dev/github.com/Dstack-TEE/dstack/sdk/go@v0.6.1

Go SDK v0.6.1

Choose a tag to compare

@Leechael Leechael released this 24 Nov 12:10
53ee9ab

Go module

Module: github.com/Dstack-TEE/dstack/sdk/go/ratls
Version: v0.6.1

go get github.com/Dstack-TEE/dstack/sdk/go/ratls@v0.6.1

Docs: https://pkg.go.dev/github.com/Dstack-TEE/dstack/sdk/go/ratls@v0.6.1

Go SDK v0.6.1

Choose a tag to compare

@Leechael Leechael released this 24 Nov 12:10
53ee9ab

Go module

Module: github.com/Dstack-TEE/dstack/sdk/go/dstack
Version: v0.6.1

go get github.com/Dstack-TEE/dstack/sdk/go/dstack@v0.6.1

Docs: https://pkg.go.dev/github.com/Dstack-TEE/dstack/sdk/go/dstack@v0.6.1

dstack v0.6.6

Choose a tag to compare

@kvinwang kvinwang released this 20 Nov 17:07
c873038

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 GetKey derives, and v1 derives different keys altogether, so a v0 app had no way back to its old key. v0 GetKey now takes optional root_epoch and app_epoch and reports the epochs it used; unset means the current ones, as before. dstack-key-recovery covers 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 ratls that 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 from cert_dir into core.keyring_dir (default /var/lib/kms/keyring), and cert_dir and 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 DstackKms and 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.
  • DstackKms deploys apps through appImplementation. After upgrading DstackKms, point setAppImplementation at a current DstackApp (#1623).
  • Gateway key proofs are opt-in. Watch the logs for CVMs that send no proof, then require proofs with SetWgKeyProofConfig once 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_hash on chain before deploying it.

Full list of changes: CHANGELOG.md.

dstack OS v0.5.16

Choose a tag to compare

@kvinwang kvinwang released this 20 Nov 16:23
c0ce51d

Maintenance release for the 0.5 line. A KMS key rotation changes every key GetKey derives, and the 0.5 guest agent had no way to reach the key from before it. This release adds key epoch selection to GetKey, the guest side of #1630 in dstack 0.6.6, so an app can still derive its old key and migrate off it. It ships in the meta-dstack v0.5.16 guest OS image. There are no new 0.5 component releases.

We recommend upgrading to dstack 0.6.6. The 0.5 line receives fixes only.

Guest changes

  • GetKey key epochs: GetKeyArgs takes optional root_epoch and app_epoch, and GetKeyResponse reports the epochs the key was derived from. Unset means the current epochs, as before. An older epoch's app root key is fetched from the KMS once and kept in memory. Tappd.DeriveK256Key shares GetKeyArgs and honours the selectors too (#1631).

Requirements

  • Selecting an older epoch needs a KMS that serves it: dstack-kms 0.6.5 or later whose root keys were rotated, with an auth backend whose policy for that epoch still allows the instance. Asking for an epoch newer than the current one fails.
  • Without the selectors nothing changes. A 0.5.16 guest derives exactly the keys 0.5.15 did.
  • Check the epochs in the response. A 0.5.15 or older guest ignores the selectors and returns the current key. The v0 clients of the 0.6.0 SDKs send the selectors and refuse a response that does not report the requested epochs.

Verifier Release v0.6.6

Choose a tag to compare

@github-actions github-actions released this 20 Nov 16:29
c873038

Docker Image Information

Image: ghcr.io/dstack-tee/dstack-verifier:0.6.6

Digest (SHA256): sha256:ad0c3a2e26a966b42889cc52d74b1e8d391640b5910b2e12ee4af3ef7fc3e8e6

Verification: Verify on Sigstore

Python SDK v0.6.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 15:57
c873038

PyPI Package

Package: dstack-sdk 0.6.0

Install: pip install dstack-sdk==0.6.0

Registry: https://pypi.org/project/dstack-sdk/0.6.0/

dstack OS v0.6.6

Choose a tag to compare

@github-actions github-actions released this 20 Nov 17:03
c873038

Guest OS image 0.6.6, built by the Debian/mkosi backend.

Register os_image_hash on chain to authorize this image; see
docs/onchain-governance.md.

Field Value
os_image_hash 5aa762ee7cddc62174c13e1081d56f7ab2a9aebc513973a1d63b3775fda250ec
Git revision c87303818753e7abb3233bd1f5a4b611cb981154
TDX MRTD 83baf004a06c83f6371d4d9e19c8bb1ead734ba7696e56d6b52271011394a6f24efecc27af3b5c1da41594dbfa706e97
GCP uki_auth 19eaec308cc5eef2f5837c9c57f6d50fe919e6ac49881f00d58ff6ea6450f5f3
AWS boot_pcr_digest b1fcc6b9fab71a9bda190bf2726a30613180b4d5ece90e819878535bdcea8ef2
dstack-0.6.6.tar.gz a207a45da1729b5b03c4257857c187d62b31ee599329f345403adb3f9dd7caff
dstack-0.6.6-uki.tar.gz cd54e641a2dda2cda6063e947c89ce9f7e9ef3bdc23fdd669624e71f197451d1
dstack-0.6.6-kernel-devel.tar.gz af56e42cdfa5caa77bd04b4cf0262d276e63aae73b71a0c5481d859d2f9514cc

To build out-of-tree kernel modules, use
ghcr.io/dstack-tee/dstack-kernel-builder:0.6.6; see
docs/building-guest-os.md.

KMS Release v0.6.6

Choose a tag to compare

@github-actions github-actions released this 20 Nov 16:28
c873038

Upgrade notes — read before upgrading

  • State moves to /var/lib/kms. Root keys move from cert_dir into core.keyring_dir (default /var/lib/kms/keyring), and cert_dir and the default listener TLS paths move to /var/lib/kms/certs. Persist /var/lib/kms, or set both paths. The old layout is not read, so upgrade by onboarding a new KMS.
  • SEV-SNP: publish the TCB list first. The KMS refuses SNP requests, its own self-authorization included, while it has no minimum TCB for the CPU. Upgrade DstackKms and the auth API, publish the list with setSevSnpTcbRequirements (or sevSnpTcbRequirements for dstack-auth), then upgrade the KMS. core.attestation.sev_snp_tcb_requirements_file covers CPUs governance has not listed. AMD KDS, or your mirror, must also serve the CRL.
  • DstackKms deploys apps through appImplementation. After upgrading DstackKms, point setAppImplementation at a current DstackApp.

See the dstack v0.6.6 release notes.

Docker Image Information

Image: ghcr.io/dstack-tee/dstack-kms:0.6.6

Digest (SHA256): sha256:fcd5ab703c16adf6f41e7c849a5bd23080375ec7f283cfec7fc9985875909749

Verification: Verify on Sigstore

Contract ABIs

This release includes the compiled contract ABIs:

  • DstackKms.json - Main KMS contract ABI
  • DstackApp.json - Application contract ABI

Key Recovery v0.6.5

Choose a tag to compare

@github-actions github-actions released this 20 Nov 12:59
4995378

Docker Image

Image: ghcr.io/dstack-tee/dstack-key-recovery:0.6.5

Digest (SHA256): sha256:26803eb7eb34f69f367d7ebc0b4abc31f35caad5e58213de77a91dddcd2d0b6b

Verification: Verify on Sigstore

Build from source:

docker build -f tools/key-recovery/Dockerfile -t dstack-key-recovery dstack