Skip to content

fix(prelaunch): Phala Cloud script v0.0.16 + v0.0.17 passwd fallback - #113

Merged
Leechael merged 5 commits into
mainfrom
fix/phala-cloud-prelaunch-0.0.16
Aug 5, 2026
Merged

fix(prelaunch): Phala Cloud script v0.0.16 + v0.0.17 passwd fallback#113
Leechael merged 5 commits into
mainfrom
fix/phala-cloud-prelaunch-0.0.16

Conversation

@Leechael

@Leechael Leechael commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • v0.0.16: digest-pinned GHCR refs, set -e handling, safer SSH key env cleanup (prior commits on this branch)
  • v0.0.17: stop piping interactive passwd(1) on guests without chpasswd
    • empty root password: passwd -l root (same intent as discarded random password)
    • DSTACK_ROOT_PASSWORD: only passwd --stdin when supported; otherwise fail clearly
    • chpasswd path unchanged; random password gen uses head -c

Script must stay byte-identical to monorepo teehouse.services.pre_launch_scripts.CURRENT_PRE_LAUNCH_SCRIPT.

Version markers for traceback:

  • banner: Running Phala Cloud Pre-Launch Script v0.0.17
  • sha256: 93d29be852c0ccf92b275f824d71f1b589e906503c4d67332f36c633412fabe5

Test plan

  • sha256sum phala-cloud-prelaunch-script/prelaunch.sh matches monorepo current hash
  • Banner prints v0.0.17
  • Diff vs monorepo script is empty

Guests without chpasswd were falling back to passwd(1) via stdin. Many
passwd implementations read /dev/tty during boot and fail with
"password for root is unchanged", leaving an empty root password.

- empty root password without chpasswd: passwd -l root
- DSTACK_ROOT_PASSWORD without chpasswd: only passwd --stdin when
  supported; otherwise fail clearly
- chpasswd path unchanged; random password gen uses head -c

Must stay byte-identical to teehouse CURRENT_PRE_LAUNCH_SCRIPT
(sha256 93d29be852c0ccf92b275f824d71f1b589e906503c4d67332f36c633412fabe5).
@Leechael Leechael changed the title fix(prelaunch): bump Phala Cloud script to v0.0.16 fix(prelaunch): Phala Cloud script v0.0.16 + v0.0.17 passwd fallback Aug 5, 2026
@Leechael
Leechael merged commit 68269f8 into main Aug 5, 2026
6 checks passed
@Leechael
Leechael deleted the fix/phala-cloud-prelaunch-0.0.16 branch August 5, 2026 20:28
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