Skip to content

fix(workers): install over ssh without desktop loopback - #208

Merged
nixuuu merged 1 commit into
devfrom
fix/ssh-worker-install
Nov 5, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/ssh-worker-install

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

Installing a worker over SSH from the desktop app (local mode) failed, and the dialog layout broke.

Causes

  • Download URL: the remote installer was given the desktop's loopback web origin (127.0.0.1:<port>) to download the worker binary, which the SSH target cannot reach.
  • GitHub fallback: the fallback's release metadata came from the same loopback origin, so it ended with "No GitHub release available for the gateway channel", even though v0.2.0-nightly.74 exists with its Linux x64 binary, manifest and checksums. This was checked read-only.
  • Dialog layout: dialog content had no horizontal containment, so long output lines and fingerprints widened the dialog and added a horizontal scrollbar.

Fix

  • Release lookup: the gateway resolves the exact release for its version first, then the newest compatible release on its channel. The output says which one it picked.
  • Download: SSH install sends public GitHub HTTPS asset URLs and the manifest SHA-256 over encrypted stdin, and the target verifies the checksum.
  • Enrollment: keeps a reachable gateway URL and its TLS pin. A missing or loopback address for a remote target is refused before anything runs, with one action: turn on network access or set a gateway address for workers.
  • Dialogs: long content wraps. The installation output and the fingerprint can be copied, and the output sits behind "Show details". Rename, Revoke and Archive dialogs were checked with long names too.
  • Errors: name the step that failed and what to do. The speculative "systemd user session or macOS GUI login" hint now appears only for real service-install failures.

Tests

  • The installer and URL builder never send loopback addresses to a remote target.
  • A missing reachable address is refused.
  • Release selection for nightly, beta and stable, and the fallback, use fixtures.
  • ShellCheck passes on the installer.
  • check:tmp: 1372 passed, 0 failed.

No real host was contacted.

Copy audit (§8): cause plus action instead of a guess, shorter install buttons, details collapsed. Checked in light and dark, at desktop and phone width.

To retry: turn on Network access or set a reachable "Gateway address for workers", then install again. An existing worker.json is kept; a previously saved wrong gateway address needs correcting or a fresh enrollment.

Related: #5

Resolve exact releases on the gateway and fall back to compatible channel
releases. Send public HTTPS asset URLs and manifest hashes through trusted
SSH stdin, preserving the enrollment gateway address and TLS pin. Refuse
remote enrollment through a local address before executing the installer.

Contain long dialog content, wrap and copy installation output and SSH
fingerprints, and report download failures without unrelated service hints.

Related: #5
@nixuuu
nixuuu merged commit 1219778 into dev Nov 5, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/ssh-worker-install branch November 5, 2026 19:18
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