activation: confirm whether the rented box reboots during enroll-activate (host-key change) and fix disko drift or add a host-key re-learn (#700 infra split) #701
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.
Dependencies
No dependencies set.
Reference
Matou/idss#701
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?
What this splits off from #700
#700 fixed the classification bug (a deploy-stage control-plane probe transport error now surfaces as
deploy-failedwith per-mode recovery + a downloadable log, not a pre-deployjourney-faulttheactivationleg waited out) and the harness (theactivationleg locator now also watchesjourney-fault). It deliberately left the infra root cause open, because it needs a live box and a security-posture decision that is a one-way door.The underlying infra fact
On drive
20260823T092947Zthe rented control-plane probe met an SSH host key that differed from the oneconnectpinned intostate/own-vps/known_hosts(REMOTE HOST IDENTIFICATION HAS CHANGED), right afterenroll-activatelogged "the overwritten host came back a clan member" — wording that implies the box went away and came back.internal/founding/rentedpath.go:34,265assert "no reboot — the box keeps the host key connect learned", i.e.RotateHostKeyis deliberately skipped for the rented path (unlike own-VPS after a takeover). That invariant was violated in this run.docs/GOTCHAS.md#47 documents the hazard class: the gateway imagedisko.nixdrifting frominternal/clan/nodeconfig.go'sDiskoLayout, so a VMModeclan updatedisturbs the already-installed disk on activation — worst case the box never returns; the milder case is a reboot that regenerates/etc/sshhost keys. Note theimage-bootleg's disko label check passed, so if #47 is the cause it is a subtler layout drift than bare label presence catches.What this needs
enroll-activate(contradictingrentedpath.go's no-reboot assumption) — needs a live rented droplet to reproduce (#700's droplet 170.64.134.129 is now unreachable).nix/gateway-image/disko.nixagainstDiskoLayoutper GOTCHAS #47 so VMMode activation never disturbs the disk / triggers a reboot), orRotateHostKey. This is a one-way-door security-posture decision (auto-accepting a changed host key on a public internet droplet), so it isready-for-human, not agent-rulable under ADR 0174.Why human
The host-key-accept option is a security-posture widening (accepting a changed key = accepting a possible MITM), and confirming the reboot needs a live lab droplet — outside a sandbox agent's reach.
Filed while working #700 (deploy-stage host-key mismatch classification).
Closing — both questions this ticket asked were answered and resolved by #707 (commit
d62a7252, closed 2026-08-23 15:55Z), superseding the need for a separate live reproduction here.Did the box reboot? No.
rentedpath.go's no-reboot contract held. The host key "changed" because the gateway image shipped with a shared, snapshot-baked/etc/ssh/ssh_host_*that cloud-init (ssh_deletekeys: truedefault) rewrote one second after sshd had already started — so sshd served an orphaned key until its first restart, which isenroll-activate'sswitch-to-configuration switch. Measured live on two rented droplets. Not disko drift (GOTCHAS #47 is not the cause); GOTCHAS #62 has the mechanism.Fix cause vs. add a host-key re-learn? Cause fixed, re-learn deliberately NOT added (no security-posture widening — it tightens, from one shared identity to one unique key per box):
nix/gateway-image/configuration.nixpinsssh_deletekeys = false,scripts/gateway-image/build.shscrubs host keys before snapshotting, guarded byinternal/clan/gateway_image_hostkey_test.go.The one-way-door decision this ticket was parked on (auto-accepting a changed key) is therefore moot. Closed by Ben.