own-VPS full-install audit: sweep the whole VM-vs-full-install divergence class ahead of the drive (GOTCHAS #12) — stop paying one ~1h red per port #450

Closed
opened 2026-08-11 22:26:30 +00:00 by ben · 1 comment
Owner

Why

Six ports of the same defect class were discovered serially, each costing a full drive+fix cycle (~50–70 min): #399 (hostPlatform), #410 (SSH identity), #432 (guest trust), #436 (loopback target), #442 (ledger dir), #443 (the control-plane unit itself). Every one is an instance of GOTCHAS #12: something declared on the VM/local-guest path that the own-VPS full-install path never bakes.

The closure-autopsy technique already proved it can find these without a droplet: on 2026-08-10 one read of the built toplevel from the captured flake surfaced THREE defects at once (#414: route shadowing + no sshd + no root key). That technique lives only in session memory — this ticket applies it systematically, ahead of the frontier.

Work

  1. Enumerate the divergence surface. For every render/module the VM path composes (renderGatewayGuest / gateway-guest.nix / vmguest baselines in internal/clan/vmguest.go) and every fleetwire/enrolment/supply/deploy/pairing code path that assumes a local guest (LoopbackTarget, guest-trust paths, 127.0.0.1 addresses, hostfwd ports, app-tied lifecycles), record its disposition on the own-VPS full-install path: present / ported (by which issue) / N-A (why).
  2. Autopsy the current own-VPS toplevel (seed + eval from the captured flake, or build via the #401 eval smoke — no droplet needed): assert every unit/generator/path the remaining journey legs (supply → deploy → pairing → finish) will touch actually exists in the full-install closure.
  3. File one issue per confirmed divergence (with a rehearsal-sig where derivable so the reporter appends instead of duplicating), or fix trivially small ones directly in this ticket's branch. Extend TestOwnVPSGateway_EvalSmoke / the #401 seam tests to pin each closed gap.
  4. Commit the audit table to docs/ (and note it on GOTCHAS #12) so the next VM-side addition is checked against the full-install path at review time instead of by a paid red.

Acceptance

  • The audit table exists in the repo and covers every VM-path render/assumption named above.
  • Every 'present'-but-missing finding is either fixed here (small) or filed as its own sig'd ticket.
  • Seam/eval-smoke coverage pins each fixed gap.
  • Ruling context: requested by Ben 2026-08-11 after the loop review (each pre-filed defect saves a ~1h drive cycle).
## Why Six ports of the same defect class were discovered **serially**, each costing a full drive+fix cycle (~50–70 min): #399 (hostPlatform), #410 (SSH identity), #432 (guest trust), #436 (loopback target), #442 (ledger dir), #443 (the control-plane unit itself). Every one is an instance of GOTCHAS #12: something declared on the VM/local-guest path that the own-VPS **full-install** path never bakes. The closure-autopsy technique already proved it can find these without a droplet: on 2026-08-10 one read of the built toplevel from the captured flake surfaced THREE defects at once (#414: route shadowing + no sshd + no root key). That technique lives only in session memory — this ticket applies it systematically, ahead of the frontier. ## Work 1. **Enumerate the divergence surface.** For every render/module the VM path composes (`renderGatewayGuest` / `gateway-guest.nix` / vmguest baselines in `internal/clan/vmguest.go`) and every fleetwire/enrolment/supply/deploy/pairing code path that assumes a local guest (LoopbackTarget, `guest-trust` paths, `127.0.0.1` addresses, hostfwd ports, app-tied lifecycles), record its disposition on the own-VPS full-install path: **present / ported (by which issue) / N-A (why)**. 2. **Autopsy the current own-VPS toplevel** (seed + eval from the captured flake, or build via the #401 eval smoke — no droplet needed): assert every unit/generator/path the remaining journey legs (supply → deploy → pairing → finish) will touch actually exists in the full-install closure. 3. **File one issue per confirmed divergence** (with a `rehearsal-sig` where derivable so the reporter appends instead of duplicating), or fix trivially small ones directly in this ticket's branch. Extend `TestOwnVPSGateway_EvalSmoke` / the #401 seam tests to pin each closed gap. 4. **Commit the audit table** to `docs/` (and note it on GOTCHAS #12) so the next VM-side addition is checked against the full-install path at review time instead of by a paid red. ## Acceptance - The audit table exists in the repo and covers every VM-path render/assumption named above. - Every 'present'-but-missing finding is either fixed here (small) or filed as its own sig'd ticket. - Seam/eval-smoke coverage pins each fixed gap. - Ruling context: requested by Ben 2026-08-11 after the loop review (each pre-filed defect saves a ~1h drive cycle).
Author
Owner

Done. Swept the whole VM-vs-full-install divergence class (GOTCHAS #12) ahead of the frontier — commit 852d2c8 on origin/main.

Audit table — docs/vm-full-install-divergence.md (placed at docs/ root, not docs/architecture/ which is the mermaid-diagram gallery per CLAUDE.md). Three tables cover every VM-path render/assumption named in the ticket:

  • Table A — every renderGatewayGuest block, disposition on the full-install path (present / ported by which issue / N-A why).
  • Table B — every fleetwire/enrolment/supply/deploy/pairing local-guest assumption (LoopbackTarget, guest-trust identity, enroll-trust, hostfwd, app-tied lifecycle, …).
  • Table C — every server-side unit/path the journey legs (supply → deploy → pairing → finish) touch, and who declares it in the full-install closure.

Autopsy result: the ported/N-A rows all verified against code (#410/#414/#432/#436/#437/#442/#443). Deploy+finish hard-deps (ourcloud-control-plane.service, /var/lib/ourcloud) are present via control-plane.nix (#443) and ledger.nix (#442).

Four confirmed OPEN divergences pre-filed (each needs its own design slice, so filed not fixed — none is trivially small):

  • #452 (HIGH, priority, rehearsal-183) — the public own-VPS gateway's kanidm declares no provision block: no operator person, no operators/members/kaitiaki groups, no admin/idm_admin password. So the passkey ceremony's MintResetToken(operator) (and every kanidm-authenticated leg) 404/401s — the 7th port, and the next frontier fault now that finish went green. Carries rehearsal-sig: 8d0cd71d20a2 (the finish leg) so the reporter appends rather than duplicates.
  • #453 — the kanidm-brand-push (community display name + logo) never reaches the public IdP.
  • #454 — no build-time assertions on the full-install gateway (the eval guard that would have caught #452).
  • #455 — ChallengeSource still assumes a local guest (the one un-ported guest-facing seam; latent, not exercised on own-VPS today).

Seam coverage: TestOwnVPSGateway_FullInstallClosureAudit (gateway_attach_test.go) drives the real configure stage and pins Table C against the composed full-install assembly — the one assertion that would have caught all six ports at review time, and guards the presentModules silent-drop failure mode. docs/GOTCHAS.md #12 gains the same-commit rule pointing at the checklist. Full go-ci suite green on push.

Done. Swept the whole VM-vs-full-install divergence class (GOTCHAS #12) ahead of the frontier — commit 852d2c8 on origin/main. **Audit table** — `docs/vm-full-install-divergence.md` (placed at docs/ root, not docs/architecture/ which is the mermaid-diagram gallery per CLAUDE.md). Three tables cover every VM-path render/assumption named in the ticket: - **Table A** — every `renderGatewayGuest` block, disposition on the full-install path (present / ported by which issue / N-A why). - **Table B** — every fleetwire/enrolment/supply/deploy/pairing local-guest assumption (LoopbackTarget, guest-trust identity, enroll-trust, hostfwd, app-tied lifecycle, …). - **Table C** — every server-side unit/path the journey legs (supply → deploy → pairing → finish) touch, and who declares it in the full-install closure. **Autopsy result:** the ported/N-A rows all verified against code (#410/#414/#432/#436/#437/#442/#443). Deploy+finish hard-deps (`ourcloud-control-plane.service`, `/var/lib/ourcloud`) are present via control-plane.nix (#443) and ledger.nix (#442). **Four confirmed OPEN divergences pre-filed** (each needs its own design slice, so filed not fixed — none is trivially small): - **#452 (HIGH, priority, rehearsal-183)** — the public own-VPS gateway's kanidm declares **no `provision`** block: no operator person, no operators/members/kaitiaki groups, no admin/idm_admin password. So the passkey ceremony's `MintResetToken(operator)` (and every kanidm-authenticated leg) 404/401s — the **7th port**, and the next frontier fault now that finish went green. Carries `rehearsal-sig: 8d0cd71d20a2` (the finish leg) so the reporter appends rather than duplicates. - **#453** — the `kanidm-brand-push` (community display name + logo) never reaches the public IdP. - **#454** — no build-time `assertions` on the full-install gateway (the eval guard that would have caught #452). - **#455** — `ChallengeSource` still assumes a local guest (the one un-ported guest-facing seam; latent, not exercised on own-VPS today). **Seam coverage:** `TestOwnVPSGateway_FullInstallClosureAudit` (`gateway_attach_test.go`) drives the real configure stage and pins Table C against the composed full-install assembly — the one assertion that would have caught all six ports at review time, and guards the `presentModules` silent-drop failure mode. `docs/GOTCHAS.md` #12 gains the same-commit rule pointing at the checklist. Full go-ci suite green on push.
ben closed this issue 2026-08-11 22:56:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#450
No description provided.