feat: add dstack-ingress for direct TEE TLS#42
Merged
Conversation
…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.
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
dstack-ingresssidecar todocker-compose.dstack-postgres.yamlsotee.node.tinycloud.xyzgets its own Let's Encrypt TLS certificate, terminated inside the CVMdstack-ingressimage and pattern proven in OpenKey's production deploymentDetails
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 verifiableNew env vars required at deployment (encrypted via dstack KMS):
CLOUDFLARE_API_TOKEN— DNS edit permissions for tinycloud.xyz zoneCERTBOT_EMAIL— Let's Encrypt contact emailDSTACK_GATEWAY_DOMAIN— dstack gateway domainTest plan
dstack-ingressobtains a cert fortee.node.tinycloud.xyzhttps://tee.node.tinycloud.xyzserves valid TLS and proxies to tinycloud on port 8000node.tinycloud.xyzCloudflare-proxied path is unaffected