Repository navigation
Comparing changes
Open a pull request
base repository: Dstack-TEE/dstack-examples
base: add-dstack-host-ssh-compose-example
head repository: Dstack-TEE/dstack-examples
compare: main
- 12 commits
- 5 files changed
- 3 contributors
Commits on Oct 29, 2026
-
Merge pull request #169 from Dstack-TEE/add-dstack-host-ssh-compose-e…
…xample feat(dev-box): SSH dev box for dstack v0.6 CVMs
Configuration menu - View commit details
-
Copy full SHA for 5a930ae - Browse repository at this point
Copy the full SHA 5a930aeView commit details -
fix(dev-box): pin image by digest
Pin the first published build (sha-5a930ae, from the #169 merge) so the attested app-compose identifies the exact image instead of a moving :latest tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for aaddc91 - Browse repository at this point
Copy the full SHA aaddc91View commit details -
Merge pull request #170 from Dstack-TEE/dev-box/pin-image
fix(dev-box): pin image by digest
Configuration menu - View commit details
-
Copy full SHA for 99432aa - Browse repository at this point
Copy the full SHA 99432aaView commit details
Commits on Nov 10, 2026
-
fix(prelaunch): v0.0.22 - writable DOCKER_CONFIG and busybox unzip
dstack-0.6.1 Debian guests cannot mkdir /root/.docker (read-only rootfs). Point Docker at /tmp/.docker before login. Also extract awscliv2.zip with busybox unzip when unzip is not on PATH, which is the 0.6.1 guest case.
Configuration menu - View commit details
-
Copy full SHA for c9e34cc - Browse repository at this point
Copy the full SHA c9e34ccView commit details -
fix(prelaunch): v0.0.21 - writable DOCKER_CONFIG and busybox unzip
dstack-examples never published a v0.0.21. Public version after v0.0.20 is v0.0.21. Point Docker at /tmp/.docker before login, and extract awscliv2.zip with busybox unzip when unzip is not on PATH.
Configuration menu - View commit details
-
Copy full SHA for 3811c90 - Browse repository at this point
Copy the full SHA 3811c90View commit details -
Merge pull request #171 from Dstack-TEE/fix/prelaunch-v0.0.22
fix(prelaunch): v0.0.21 - writable DOCKER_CONFIG and busybox unzip
Configuration menu - View commit details
-
Copy full SHA for e199b30 - Browse repository at this point
Copy the full SHA e199b30View commit details
Commits on Nov 13, 2026
-
feat(dev-box): serve sshd on port 22
The box listened on 1022 while the dstack 0.5.x dev image used 22, so the connection recipe differed from the one users already have. Port 22 also matches what the gateway maps for `<app-id>-22.<gateway-domain>`, making gateway access the plain case again. Reflected in the README connect section; no other 1022 references were in this example.
Configuration menu - View commit details
-
Copy full SHA for 3a69124 - Browse repository at this point
Copy the full SHA 3a69124View commit details -
feat(dev-box): merge user_config SSH keys with the env keys
Phala Cloud pushes workspace SSH keys into the guest's user_config, but the box only read SSH_AUTHORIZED_KEYS, so those keys never worked and the platform channel was dead weight. The entrypoint now merges both channels and de-duplicates: the env key stays valid even after a workspace key update, and a key present in both is listed once. The user_config read goes through /host/dstack/user_config, already reachable via the `/:host:rslave` mount; dstack exposes it as a relative symlink into .host-shared, so it resolves inside /host. Tolerance is deliberate: a missing file, malformed JSON, a missing field, a null, a non-string, or an empty value all mean "this channel has no keys", because an unreadable platform file must not keep an operator out. The non-zero exit stays reserved for losing both channels. jq streams, so `{"ssh_authorized_keys":"k"} garbage` prints the key and then fails; clearing the whole assignment on failure discards that partial key instead of trusting a config we just rejected.Configuration menu - View commit details
-
Copy full SHA for 3c0ddd0 - Browse repository at this point
Copy the full SHA 3c0ddd0View commit details -
docs(dev-box): document both SSH key channels and their trust boundary
The README only described SSH_AUTHORIZED_KEYS, so a reader could not tell where workspace keys come from, that the two sources merge instead of override, or that a workspace key change only lands on the next VM start. Also states the consequence plainly: either channel is a path to CVM root, the box trusts every key the platform delivers, and there is no switch to ignore user_config today. Which roles may change those keys is platform policy, not something this example enforces.
Configuration menu - View commit details
-
Copy full SHA for 3ed62fb - Browse repository at this point
Copy the full SHA 3ed62fbView commit details -
Merge pull request #172 from Dstack-TEE/feat/user-config-keys
feat(dev-box): merge user_config SSH keys, listen on port 22
Configuration menu - View commit details
-
Copy full SHA for 7725235 - Browse repository at this point
Copy the full SHA 7725235View commit details -
fix(dev-box): pin the image rebuilt from sha-7725235
The previous pin, sha-5a930ae, predates the port 22 change and the user_config key merge, so the published example still shipped the old container. 7725235 is the merge commit whose main build produced sha-7725235 / latest on GHCR, with digest sha256:0dc661ea51fcbd70007d117b9e60883d9a96bac510a80683f5bdd6b7947b0291. Pinning the digest keeps the attested app-compose identifying one exact image while the tag keeps it readable.
Configuration menu - View commit details
-
Copy full SHA for ac18179 - Browse repository at this point
Copy the full SHA ac18179View commit details -
Merge pull request #173 from Dstack-TEE/dev-box/bump-digest
fix(dev-box): pin the image rebuilt from sha-7725235
Configuration menu - View commit details
-
Copy full SHA for 9fc0b26 - Browse repository at this point
Copy the full SHA 9fc0b26View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff add-dstack-host-ssh-compose-example...main