Skip to content

restore: carry a VNC password into the relaunch; drop the one-implementation Actions interfaces - #38

Merged
CMGS merged 2 commits into
masterfrom
fix/restore-vnc-password-and-actions-cut
Sep 2, 2026
Merged

restore: carry a VNC password into the relaunch; drop the one-implementation Actions interfaces#38
CMGS merged 2 commits into
masterfrom
fix/restore-vnc-password-and-actions-cut

Conversation

@CMGS

@CMGS CMGS commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Two commits.

  1. cmd/vm and cmd/image each declared an Actions interface with a single Handler behind it and a compile-time assertion to match (audit cut CM-A1); Command takes the Handler.
  2. After fix: keep the VNC display across a running-origin restore; refuse the CNI case up front #37 a running VM whose display is password-gated could only be restored by stopping it first, because the password is never persisted. vm restore now takes --vnc-password like start does and hands it to the relaunch; a password-gated display without the flag is still refused before any disk is touched. docs/snapshots.md states the rule and the one remaining window: VMs launched by an older cocoon-macos with a passworded non-CNI display are not recognised as password-gated until their next stop or start.

Gates: make lint 0 issues both GOOS, make fmt-check, asl ./... both GOOS, go test -race ./...; the Linux-gated lifecycle tests (including the refusal test) run on the Linux host: PASS.

CMGS added 2 commits September 2, 2026 23:32
cmd/vm and cmd/image each declared an Actions interface with a single
Handler behind it and a compile-time assertion to match; Command takes
the Handler.
A running VM whose display is password-gated could only be restored by
stopping it first, since the password is never persisted. restore now
takes --vnc-password like start does and hands it to the relaunch; a
password-gated display without the flag is still refused before any
disk is touched. docs/snapshots.md states the rule and the window for
VMs launched before the password-set bit existed.
@CMGS
CMGS merged commit 74cbb73 into master Sep 2, 2026
3 checks passed
@CMGS
CMGS deleted the fix/restore-vnc-password-and-actions-cut branch September 2, 2026 16:43
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