rented gateway VMMode configure never bakes the guest-trust key into authorized_keys — deploy-stage control-plane probe gets Permission denied #709
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
Matou/idss#709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Failure
Rented-gateway deploy fails at the control-plane probe stage with
Permission denied (publickey,keyboard-interactive), not the#707host-key MITM this looks like at a glance (drive20260823T160641Z, sig4c82deb1e678— shared with#700/#704/#707only because the signature hashes the generic outer headline, not the real cause).Evidence:
logs/founding-state.log→standup.deploy.failure.tail:This happened on the brand-new post-#707 image
idss-gateway-d62a7252e610(built 16:06:03Z, 38s before this drive started — confirmed viadoctl compute snapshot list), so the host-key fix is working; this is a second, previously-masked defect now reachable because drives get further than before.Root cause
internal/founding/rentedpath.go:313passesAuthorizedKeys: appendGuestTrust(facts.RootAuthorizedKeys, guestTrust)into the VMModeclan.Enrollcall, with an inline comment (andinternal/founding/orchestrator.go:90-98) explicitly stating the guest-trust key gets taught to the box "via the VMMode update's AuthorizedKeys... that happens at configure."That promise is broken:
internal/clan/enrollment.go:344-358(configure()) only bakess.AuthorizedKeysinto rendered node config whens.Install == FullInstall(line 346). For VMMode the value rides the durable snapshot (enrollment.go:138) but is never rendered anywhere. The only other place authorized_keys gets written for a VM-mode gateway isinternal/clan/vmguest.go'srenderGatewayGuest/renderVMGuestBaseline— neither declaresauthorizedKeys.keys. The sole imperative mechanism,idss-enroll-trust.service(nix/guest/configuration.nix:70-88), is gated onConditionPathExists = "/sys/firmware/qemu_fw_cfg/by_name/opt/idss/authorized_key/raw"— a QEMU fw_cfg device that exists only for the locally-managed VM demo path (internal/founding/privatepath.go), never a real DigitalOcean droplet.Meanwhile
app/helper/cmd/helper/wiring_prod.go:382wires founding'sclanface (internal/founding/orchestrator.go'so.clan) withWithSSHIdentityFile(<guestTrustDir>/id_ed25519)— the guest-trust private key.internal/founding/deploy.go:1137(probeControlPlaneActive) callso.clan.UnitActive, which (internal/clan/adapter.go:168-215) SSHes in with exactly that identity (-i a.sshIdentityFile, adapter.go:191-193). Since the guest-trust public half was never landed in/root/.ssh/authorized_keyson the rented droplet, this probe is rejected.Every earlier enrollment stage instead used the rent-operator key (
rentedpath.go:309, resolved viaenrollment.go:1180'sidentity()→s.Identity), which DOES sit inauthorized_keys(DO's cloud-initssh_keysinjection at provision) — which is why connect/enroll-activate/pairing all succeeded (the overwritten host came back a clan member,the device is a clan memberin the event log) and only the LATER deploy-stage probe, which uses the adapter's separately-wired identity, failed.Suspected layer
internal/clan(enrollment configure + VM-mode gateway nix rendering) — a design gap between whatinternal/founding/rentedpath.goassumes configure does and what it actually does forInstall == VMMode.What plugging it needs
A design decision on HOW to land the guest-trust key for a real (non-fw_cfg) VM-mode gateway — e.g. extend
renderGatewayGuest(vmguest.go) to declareusers.users.root.openssh.authorizedKeys.keysfor the Gateway case, or extendenrollment.go:configure()to bakes.AuthorizedKeyswhenevers.Gateway != nilregardless of Install mode — while avoiding the#693-style double-declare trap already documented invmguest.go:117-128(a public VMMode gateway shares nix option paths between the VM baseline and front-door.nix). Needs a realnix evalof the composed config plus a live droplet round-trip to verify the probe actually authenticates afterward (the droplet from this drive is already reaped — not verifiable from this checkout). A Go contract test on the rendered config (mirroringgateway_image_hostkey_test.go's pattern) should guard it.drive
20260823T160641Zred atactivation:the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this server was rented fresh for the community, so nothing of yours was overwritten.]evidence:
test-results/…/20260823T160641Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)swarm-claim host=matou-dev-server-01 run=9326
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #709 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope