deploy-services: the gateway's first dial of a VM guest is Supply.Seed's bare STRICT ssh-ng — no host key was ever learned, so the seed refuses (Host key verification failed) #1208
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
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1208
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?
Drive
20260903T235617Z(targetdevice, commite86e9f00) reached leg 28/28 and redded atdeploy-services— one leg further than #1206's re-drive predicted, and on the next wall of the same wire.The failure
artifacts/legs.json(leg 28) andartifacts/verdict.json(firstRedLeg: deploy-services):The gateway's own view,
logs/gateway-journal.txt:1994:Surfaced by the journey at
app/tests/e2e/journey.device.spec.tsviawaitForDeployActive(tests/e2e/.../error-context.md, line 321 of the helper) — the deploy's own fault frame, read honestly. The drive harness is not at fault; the check did its job.#1206's two wires held: the deploy target WAS captured (
root@100.70.254.61, sosupplyFace.targetno longer refuses) and the guest's deploy door WAS opened. The dial now gets as far as the SSH transport and dies one layer earlier thanpublickey— on host-key verification.The defect
Supply.Seedis the ONLY strict-posture SSH dial in the whole deploy chain, and on the VM-mode path it is the gateway's FIRST-EVER contact with the guest.internal/clan/supply.go:52-56— Seed'sInvocationcarriesTool,Dir,Argsand noEnv. NoNIX_SSHOPTS, so nix's ssh runs with ambient~/.ssh/known_hostsand default strict checking.internal/clan/enrollment.go:1312andinternal/clan/store_count.go:122both go throughsshNGStore(internal/clan/store_count.go:182-199), which setsStrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null— its own doc comment (store_count.go:167-170) gives the reason verbatim: "the guest was created by us moments ago and has no stable key an operator could have vetted." The apply stage likewise passes--host-key-check none(internal/clan/adapter.go:634; alsoenrollment.go:1402,enrollment.go:1773).internal/provision/takeover.go:117-129callsRotateHostKeyat the reboot boundary specifically so "Supply.Seed's bare strictssh-ngreconnect" matches. The comment names this exact hazard.internal/vm/manager.go:751-753:StrictHostKeyChecking=no,UserKnownHostsFile=/dev/null, host-side only.GuestMeshJoinandGuestAuthorizeDeployKeysboth ride that loopback (internal/vm/manager.go:809), never the mesh, so the gateway's known_hosts never learns100.70.254.61.internal/provision/deploy.go:459writes the target anddeploy.go:465calls Seed immediately — no host-key step between them. First contact is strict, and strict refuses an unknown host.internal/clan/hostca.go:11-38is the third face of this: the community SSH host-CA trust that would make this verify by construction is wired at the seam but explicitly NOT turned on in production (it waits on real OpenSSH host-certificate minting), and its own comment names "the AMBIENT trust Supply.Seed's strictssh-ngreconnect reads" as the thing still unserved.Suspected layer
Control plane —
internal/clan/supply.go/internal/provision/deploy.go, VM-mode branch. Not the harness, not fixtures.Why I refused (rule 3 — product-behaviour surface)
Every honest fix alters the SSH host-key trust posture of a real deploy against a real community box — that is what a deploy does, and it is a security decision, not a heal. There are three materially different answers and they are not interchangeable:
sshNGStore(target, a.sshIdentityFile)likeenrollment.go:1312andstore_count.go:122. Smallest and most consistent, but it drops host-key checking for EVERY seed, including full-install members where strictness currently holds andtakeover.go'sRotateHostKeyrotation exists precisely to satisfy it. That rotation would become dead weight.o.clan.RotateHostKey(ctx, d.MeshAddress)indeployServicesOnlybeside theSetDeployTargetcapture (deploy.go:453-462), mirroringtakeover.go:127. Scoped to VM mode and keeps Seed strict — but it is TOFU against a key nobody vouched for. NoteRotateHostKey's drop-then-relearn shape is required here, not a plain accept-new: VM-mode recovery isRecoverCleanRetry(deploy.go:392-397) — the VM is deleted and recreated, so a re-drive presents a NEW host key at a recyclednode-req-NNNNmesh address, which accept-new HARD-refuses as a MITM (the #1075 failure mode, one drive later).hostca.go+ a guest presenting a community-signed host cert. Strongest, and it is the design the tree already reaches for, buthostca.go:30-38marks it blocked on work outside this arc.ADR 0223 says nothing about host keys at all (grepped: no
host key/known_hosts/host certindocs/adr/0223-vm-guest-joins-the-mesh.md), so there is no standing ruling to follow. Picking among these — and whether the guest's key should be carried back through the join wire instead of trusted on first sight — is a trust-model call for a human. Henceconfident: false.Two notes for whoever takes this
Supply.Seedpasses no identity file either, and on the gatewaysshIdentityFileis unset (WithSSHIdentityFileis wired only byapp/helper/cmd/helper/wiring_prod.go:103), so the seed dials with the gateway root's ambient key. That key must be among theClanTrust.DeployAuthorizedKeys#1206 landed in the guest's/etc/ssh/authorized_keys.d/root. The evidence does not show this failing — the dial never got past the host key — so treat it as a thing to check, not a claim.logs/gateway-journal.txt:1995, nine seconds after the red: "provision: removed a device whose box could not be reached — the community-side offboard completed and the on-box teardown was skipped (#1114)". Consistent with the clean-retry teardown; recorded here so it is not mistaken for a second fault.Advances #1153.
drive
20260903T235617Zred atdeploy-services:deploy failed (clean-retry): provision: seed node-req-0003: clan: connectivity on node-req-0003: could not reach the node: Host key verification failed. error: failed to start SSH connection to '100.7evidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260903T235617Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRuled and already landed by session under ADR 0174 — the fix went to main as
1041a1d5minutes before this ticket was filed (the session watched the red live and took it directly).deployServicesOnlynow runsclan.RotateHostKey(d.MeshAddress)after the per-operation target capture and strictly beforeSupply.Seed: the #1075 drop-and-relearn one step early. On a never-pinned guest the drop is a no-op and the accept-new connect pins the fresh key; on a rebuilt member it rotates the changed one. This is first-contact learning over the CREDENTIALED mesh channel — the address is the wt0 Netbird admitted this exact peer at, captured fresh this operation (ADR 0039) — not blind TOFU. Gateway rows exempt; removal flows into the seed's best-effort handling (#1114). Hot-path order pin extended (rotate-hostkey → seed → deploy); ADR 0223's amendment gains the wire.Full suite green both tag sets. The re-drive's seed dials a pinned door — closing so drive 11 fires.