Skip to content

Add host-side compose TDX E2E suite#761

Draft
kvinwang wants to merge 1 commit into
masterfrom
e2e-host-kms-gateway-compose
Draft

Add host-side compose TDX E2E suite#761
kvinwang wants to merge 1 commit into
masterfrom
e2e-host-kms-gateway-compose

Conversation

@kvinwang

@kvinwang kvinwang commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a Docker Compose full-stack E2E suite under test-suites/full-stack-compose
  • run KMS and Gateway as host-side services, matching the tdxlab/dstack-k8s compose deployment model
  • launch only the real app CVM through VMM/QEMU, with kms_enabled=true and gateway_enabled=true
  • include mock Cloudflare DNS API + Pebble ACME for Gateway wildcard certificate issuance
  • make Gateway bootstrap script configurable for local ACME/Cloudflare mock endpoints
  • avoid gramine-sgx-gen-private-key in the local key provider build by generating the Gramine signing key with OpenSSL

Validation

Ran the real TDX E2E suite successfully:

Gateway wildcard certificate is active
app: status=running progress=done
Gateway -> app HTTP check passed
E2E success

Command used:

sudo su kvin -c "cd /home/kvin/src/meta-dstack/dstack/test-suites/full-stack-compose && DOCKER_BUILDKIT=0 docker compose --env-file .env -f compose.yml up --build --abort-on-container-exit runner"


def dns_loop() -> None:
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(("0.0.0.0", 53))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants