Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Dstack-TEE/dstack-examples
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: add-dstack-host-ssh-compose-example
Choose a base ref
...
head repository: Dstack-TEE/dstack-examples
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 5 files changed
  • 3 contributors

Commits on Oct 29, 2026

  1. 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
    h4x3rotab authored Oct 29, 2026
    Configuration menu
    Copy the full SHA
    5a930ae View commit details
    Browse the repository at this point in the history
  2. 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>
    h4x3rotab and claude committed Oct 29, 2026
    Configuration menu
    Copy the full SHA
    aaddc91 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #170 from Dstack-TEE/dev-box/pin-image

    fix(dev-box): pin image by digest
    h4x3rotab authored Oct 29, 2026
    Configuration menu
    Copy the full SHA
    99432aa View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2026

  1. 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.
    Leechael committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    c9e34cc View commit details
    Browse the repository at this point in the history
  2. 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.
    Leechael committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    3811c90 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #171 from Dstack-TEE/fix/prelaunch-v0.0.22

    fix(prelaunch): v0.0.21 - writable DOCKER_CONFIG and busybox unzip
    Leechael authored Nov 10, 2026
    Configuration menu
    Copy the full SHA
    e199b30 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2026

  1. 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.
    Leechael committed Nov 13, 2026
    Configuration menu
    Copy the full SHA
    3a69124 View commit details
    Browse the repository at this point in the history
  2. 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.
    Leechael committed Nov 13, 2026
    Configuration menu
    Copy the full SHA
    3c0ddd0 View commit details
    Browse the repository at this point in the history
  3. 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.
    Leechael committed Nov 13, 2026
    Configuration menu
    Copy the full SHA
    3ed62fb View commit details
    Browse the repository at this point in the history
  4. Merge pull request #172 from Dstack-TEE/feat/user-config-keys

    feat(dev-box): merge user_config SSH keys, listen on port 22
    Leechael authored Nov 13, 2026
    Configuration menu
    Copy the full SHA
    7725235 View commit details
    Browse the repository at this point in the history
  5. 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.
    Leechael committed Nov 13, 2026
    Configuration menu
    Copy the full SHA
    ac18179 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #173 from Dstack-TEE/dev-box/bump-digest

    fix(dev-box): pin the image rebuilt from sha-7725235
    Leechael authored Nov 13, 2026
    Configuration menu
    Copy the full SHA
    9fc0b26 View commit details
    Browse the repository at this point in the history
Loading