Skip to content

fix(deploy): ship the Android-resolvable tee.node CNAME in 1.17.3 (TC-605, cherry-pick #241) - #242

Merged
samgbafa merged 1 commit into
Codex/roman/rollback-meeting-node-20260915from
skgbafa/tc-605-node-1.17.3-ingress-cname
Oct 4, 2026
Merged

samgbafa merged 1 commit into
Codex/roman/rollback-meeting-node-20260915from
skgbafa/tc-605-node-1.17.3-ingress-cname

Conversation

@samgbafa

@samgbafa samgbafa commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Linear: TC-605 (follow-up to TC-513)

Cherry-picks #241 (091688b) onto the production line so it ships in 1.17.3. The only change is the dstack-ingress CNAME target in docker-compose.dstack-postgres.yaml: GATEWAY_DOMAIN=_.${DSTACK_GATEWAY_DOMAIN} becomes gateway.${DSTACK_GATEWAY_DOMAIN}, plus a comment explaining why. No Rust, version or workflow changes.

On 2026-10-03 production DNS for tee.node.tinycloud.xyz was edited in place to CNAME gateway.dstack-pha-prod5.phala.network, because Android's resolver rejects the _. target (TC-513). The ingress sidecar re-runs dnsman.py set_alias --content "$GATEWAY_DOMAIN" whenever its container is created fresh. Deploying with the current compose would write _. back and break Android again. That isn't an outage, since both names reach the same gateway.

Why this branch

Release note: rebuild, don't promote the existing 1.17.3 digest

After this merges, the release-branch HEAD moves past 05c6a93:

  • deploy-phala requires the image's org.opencontainers.image.revision to equal the checkout HEAD, so the digest from run 37094999547 can't be promoted from the new HEAD.
  • Promoting that digest from 05c6a93 would deploy the old compose, which still has _..

Dispatch docker.yml from Codex/roman/rollback-meeting-node-20260915 at the new HEAD with image_version=1.17.3 and deploy_phala=true. This rebuilds the image and moves the 1.17.3 / 1.17.3-dstack GHCR tags to the new digest. version-guard passes because Cargo.toml is unchanged.

The repo doesn't use changesets; CHANGELOG.md is written by hand in the release PR. I didn't edit it. If you want a line under [1.17.3]:

Publish tee.node.tinycloud.xyz as a CNAME to gateway.<dstack gateway> instead of _.<dstack gateway>, which Android's resolver rejects (TC-513).

Verification

  • git grep on the release branch: this compose line is the only place that writes a _. gateway target. No other compose file, script, workflow or doc sets GATEWAY_DOMAIN or publishes a _. target for this host.
  • I ran docker compose --env-file <placeholders, DSTACK_GATEWAY_DOMAIN=dstack-pha-prod5.phala.network> -f docker-compose.dstack-postgres.yaml config --quiet, the same check the deploy job runs before phala deploy. It passes and renders GATEWAY_DOMAIN: gateway.dstack-pha-prod5.phala.network.
  • The deploy job's image-pin step, which needs exactly one ghcr.io/tinycloudlabs/tinycloud-node:dstack in the compose, is unaffected.
  • CI (rust.yml, docker.yml) only runs on PRs to main, so nothing runs here automatically. The identical diff on fix(deploy): publish an Android-resolvable CNAME for tee.node.tinycloud.xyz (TC-513) #241 had a green Docker PR run (37092032681).

After deploy

curl -s https://tee.node.tinycloud.xyz/info            # 200, version 1.17.3
dig +short CNAME tee.node.tinycloud.xyz @1.1.1.1      # gateway.dstack-pha-prod5.phala.network.

The record is already gateway.…, so the ingress should find matching content and leave DNS alone.

Rollback: revert this commit. If needed, set the CNAME back to _.dstack-pha-prod5.phala.network (same gateway IP and routing).

…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.

(cherry picked from commit 091688b)
@samgbafa

samgbafa commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

Heads-up: the 1.17.3 deploy reverted the Android DNS fix, as this PR predicted.

  • 2026-10-04 05:21 UTC: Docker Container (workflow_dispatch) on Codex/roman/rollback-meeting-node-20260915 deployed 1.17.3 without this change. The recreated dstack-ingress set tee.node.tinycloud.xyz back to CNAME _.dstack-pha-prod5.phala.network at 05:23 (Cloudflare modified_on). The TinyCloud node was then unresolvable on Android ("Failed to fetch node info" in the Exo app); browsers and desktop were unaffected.
  • ~05:45 UTC: I re-applied the approved DNS edit (CNAME → gateway.dstack-pha-prod5.phala.network, DNS only). /info returns 200 (1.17.3), and Android resolves again.

Please merge this PR into the release branch before the next node deploy, and rebuild the image from the new head (an image built before this change still writes _.). Otherwise every redeploy breaks Android again until someone re-edits the record.

@samgbafa
samgbafa merged commit f365fa9 into Codex/roman/rollback-meeting-node-20260915 Oct 4, 2026
6 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