test: add local dstack e2e stack#75
Open
kvinwang wants to merge 1 commit into
Open
Conversation
6e903bf to
8716f9b
Compare
8716f9b to
a40073c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
e2e/run.shto launch a local full dstack stack: KMS, gateway, VMM, and configurable app CVMsmeasurement.jsonduring image build and include it in image digests/tarballsdstacksubmodule to feat: add TDX qemu-free verification mode dstack#742 for vm_config-selected TDX measurement verification without adding a new attestation wire variant--kms-no-qemuskip KMS image cache pre-population so the new verifier path cannot rely on a downloaded imagemeasurement.jsonhashes (tdx.h/snp.h, with oldos_image_hashfallback)Depends on: Dstack-TEE/dstack#742
Validation
bash -n mkimage.sh e2e/run.sh && shellcheck e2e/run.sh../build.sh guestbuild/images/dstack-0.6.0/measurement.jsonis compact schema v2: top-levelv/tdx/snp, subdocumentv/h/mhequalssha256(hex_decode(m))base_cmdline,kernel_sha384,rootfs_hash,kernel_cmdline_sha384,kernel_cmdline_sha256,initrd_size,measurement,os_image_hash, orversionE2E_APP_TIMEOUT=900 ./e2e/run.sh up --image dstack-0.6.0 --apps 1 --force --kms-image-verify --kms-no-qemuPATH=/usr/sbin:/usr/bin:/sbin:/binand nodstack-acpi-tablesin PATHtdx_attestation_variant = "measurement", embeddedtdx_measurementuses onlyv/h/m, and app memory is 2147483648 bytesGetAppKeysuccess--kms-no-qemudigest.txt, TDXh, SNPh)tdx_attestation_variant/tdx_measurementand keeps thedigest.txtos_image_hashpath