Repository navigation
fix(deploy): publish an Android-resolvable CNAME for tee.node.tinycloud.xyz (TC-513) - #241
Merged
Merged
Conversation
…ud.xyz (TC-513)
The dstack-ingress sidecar CNAMEs DOMAIN to GATEWAY_DOMAIN on every fresh
container start. It was _.${DSTACK_GATEWAY_DOMAIN}; Android's resolver
(bionic res_hnok) rejects a CNAME target whose first label is '_', so
tee.node.tinycloud.xyz does not resolve on Android (WebView and native).
Use gateway.${DSTACK_GATEWAY_DOMAIN}: the CNAME target Phala Cloud
advertises for this CVM (gateway.cname) and upstream dstack-ingress
documents since Dstack-TEE/dstack-examples#123. It resolves to the same
gateway IP; the gateway still routes by SNI + the _dstack-app-address TXT
record, so TLS remains terminated inside the CVM.
Contributor
Author
|
Status update (TC-605):
|
samgbafa
marked this pull request as ready for review
October 4, 2026 00:26
This was referenced Oct 4, 2026
Merged
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
Linear: TC-513
tee.node.tinycloud.xyzis a CNAME to_.dstack-pha-prod5.phala.network. Android's resolver (bionicres_hnok) rejects a CNAME target whose first label is_, so on Android the name doesn't resolve:ERR_NAME_NOT_RESOLVEDin WebView and in native code. Exo on Android can't reach the TinyCloud node.The prod
dstack-ingresssidecar (docker-compose.dstack-postgres.yaml) is the component that writes this CNAME. Indstacktee/dstack-ingress:20250924the bootstrap runsdnsman.py set_alias --content "$GATEWAY_DOMAIN"every time a container is created fresh, because/.bootstrappedlives in the container layer. That call deletes and recreates any CNAME whose content differs. A hand edit would therefore be undone by the next release deploy, and the compose has to change too.This PR sets
GATEWAY_DOMAIN=gateway.${DSTACK_GATEWAY_DOMAIN}. That is the target the Phala Cloud API advertises for this CVM:phala cvms get tinycloud-nodegivesgateway.cname = gateway.dstack-pha-prod5.phala.network. Upstream dstack-ingress has documented the same form since Dstack-TEE/dstack-examples#123. The name resolves to the same gateway IP, and the gateway still routes on SNI plus_dstack-app-addresswith TLS passthrough. TLS and the cert stay inside the CVM.Evidence, without any DNS change:
curl -sv https://tee.node.tinycloud.xyz/info --connect-to tee.node.tinycloud.xyz:443:gateway.dstack-pha-prod5.phala.network:443returned 200 (version 1.17.2,inTEE: true), certCN=tee.node.tinycloud.xyz(LE YE2, valid to 2026-12-24), verify ok.Release line
Production runs 1.17.2 from
Codex/roman/rollback-meeting-node-20260915.mainis 1.16.x. Merging to main by itself doesn't deploy, and a deploy from main would roll production back. Cherry-pick this commit onto the 1.17.x line, i.e. the 1.17.3 release in #239 (skgbafa/tc-529-node-1.17.3). The compose file is identical there, so the pick applies cleanly.Rollout (needs Sam's go-ahead)
tinycloud.xyzzone, edit the existingtee.node.tinycloud.xyzCNAME in place: contentgateway.dstack-pha-prod5.phala.network, DNS only. Editing in place means no NXDOMAIN gap.dig +short CNAME tee.node.tinycloud.xyz @1.1.1.1andcurl -sf https://tee.node.tinycloud.xyz/info._.…, which breaks Android again but doesn't cause an outage.Rollback: set the CNAME back to
_.dstack-pha-prod5.phala.networkand revert. Both names point at the same gateway.