Skip to content

feat: add dstack-ingress for direct TEE TLS#42

Merged
skgbafa merged 1 commit into
mainfrom
feat/dual-subdomain-tls
Mar 20, 2026
Merged

feat: add dstack-ingress for direct TEE TLS#42
skgbafa merged 1 commit into
mainfrom
feat/dual-subdomain-tls

Conversation

@skgbafa
Copy link
Copy Markdown
Contributor

@skgbafa skgbafa commented Mar 20, 2026

Summary

  • Adds a dstack-ingress sidecar to docker-compose.dstack-postgres.yaml so tee.node.tinycloud.xyz gets its own Let's Encrypt TLS certificate, terminated inside the CVM
  • Enables end-to-end verifiable connections directly to the TEE without Cloudflare in the middle
  • Uses the same dstack-ingress image and pattern proven in OpenKey's production deployment

Details

Two endpoints, two trust models:

  • node.tinycloud.xyz — Cloudflare-proxied, DDoS protection, general use (unchanged)
  • tee.node.tinycloud.xyz — TLS terminates inside the TEE, no middleman, end-to-end verifiable

New env vars required at deployment (encrypted via dstack KMS):

  • CLOUDFLARE_API_TOKEN — DNS edit permissions for tinycloud.xyz zone
  • CERTBOT_EMAIL — Let's Encrypt contact email
  • DSTACK_GATEWAY_DOMAIN — dstack gateway domain

Test plan

  • Deploy to staging CVM and verify dstack-ingress obtains a cert for tee.node.tinycloud.xyz
  • Confirm https://tee.node.tinycloud.xyz serves valid TLS and proxies to tinycloud on port 8000
  • Verify existing node.tinycloud.xyz Cloudflare-proxied path is unaffected
  • Check attestation quote binds to the TLS cert served on the direct endpoint

…loud.xyz

Add a dstack-ingress service to the dstack-postgres compose file so that
tee.node.tinycloud.xyz gets its own Let's Encrypt TLS certificate,
terminated inside the CVM. This enables end-to-end verifiable connections
to the TEE without Cloudflare in the middle.
@skgbafa skgbafa merged commit 4162018 into main Mar 20, 2026
13 of 14 checks passed
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.

1 participant