Skip to content

devvm v0.1.17

Choose a tag to compare

@github-actions github-actions released this 17 Oct 14:15
· 36 commits to master since this release

Hetzner provider backend

devvm create NAME --backend hetzner creates a cloud server the way create makes a smol VM, then runs setup on it (root adoption, prereqs, hook, repos, keys, hardening). delete destroys it and clears this host's state for it, including the pinned host key. start/stop map to power on/off; stop warns that a stopped server still bills.

  • Servers are discovered from the Hetzner API and have no config entry; the devvm=true label is the managed marker. Servers devvm did not make are listed as unmanaged: only status, start, stop (with a confirm), shell and exec work, and devvm never promotes one.
  • Config: a [providers.hetzner] table (location, image, ssh_key or ssh_key_file, ipv4); templates gain server_type, location, image, ipv4.
  • Token: devvm providers token hetzner [--clear] stores it per host (0600, under ~/.local/state/devvm/providers/); HCLOUD_TOKEN overrides. The forward daemon never reads it or calls the API.
  • status lists provider rows from a cache refreshed by one-shot status and __refresh, never by polling; --plain gains the hetzner backend and starting/stopping states.

Status truthfulness

Remote boxes report a real reachable/unreachable/? (ControlMaster check, then a 2s TCP connect; a timeout is ?), with the last contact shown in status -v and as a sixth --plain field. No polling: one-shot status, the hidden __refresh, and commands that just talked to a box refresh it.

Fixes

  • status --watch re-resolves a symlinked devvm.toml on a timer (macOS kqueue can drop a relink).
  • Root flags (--config-dir, --state-dir) before exec and keys add work.
  • ssh ControlPath length is checked up front instead of failing deep in a 90s wait.
  • setup prints a completion line; confirms without a terminal mention --yes.
  • macOS CI: three test races fixed.

Menu bar app: ? remote rows keep their tile with a distinct glyph; unlabelled Hetzner rows get no actions. Compiled only by CI; please check on a Mac.