own-VPS control-plane probe (Adapter.UnitActive) checks host keys against ~/.ssh/known_hosts, not the app-scoped own-VPS file — false MITM refusal on droplet IP reuse #458
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.
Blocks
Reference
Matou/idss#458
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
Journey leg
control-planewent red:founding: gateway deploy: founding: probe ourcloud-control-plane.service on the gateway: clan: probe ourcloud-control-plane.service on gateway over ssh: exit status 255: ... WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED ... Offending ED25519 key in /home/dev/.ssh/known_hosts:95 ... Host key verification failed.Run:
test-results/drive-droplet/20260812T003918Z(rehearsal drive, red legsupply/control-plane, sig404124947736).Evidence
logs/droplet-journal.txt:900-904, ed25519 fingerprintSHA256:1TjAh9pZ9jisl7y04IbvZeeGNNa5DS91k1TVjevnGyU.state/own-vps/known_hostsalready holds exactly that fingerprint (confirmed viassh-keygen -lf), andlogs/founding-state.log:178,183,188shows pairing (gateway paired and approved as node node-req-0001) and gateway-deploy start succeeding after the reboot that rotated the key.internal/clan/adapter.go:119-151Adapter.UnitActive, builds its ssh argv independently: No-o UserKnownHostsFile=...— it falls back to the ambient~/.ssh/known_hostson the box running the drive. The error'sOffending ED25519 key in /home/dev/.ssh/known_hosts:95is a stale entry from an earlier droplet that previously held IP170.64.151.241(DigitalOcean IP reuse across rehearsal runs).StrictHostKeyChecking=accept-newonly auto-trusts a host with no existing entry — a changed key on an already-known host is a hard refusal, which is exactly what fired.internal/founding/deploy.go:332-334wraps this intofounding: probe %s on the gateway.internal/fleetwire/fleetwire.go:73-102(RemoteTarget/sshOpts) passes-o UserKnownHostsFile=<scoped path>, fed fromownVPSKnownHostsPath()inapp/helper/cmd/helper/wiring_prod.go:105-107(ADR 0152), and reused atwiring_prod.go:300,360,402.UnitActivenever goes throughfleetwire.Target— it's a second, independent ssh-argv builder that drifted from the first.Suspected layer
internal/clan(Adapter.UnitActive's ad hoc ssh invocation), wired fromapp/helper/cmd/helper/wiring_prod.go(newClanAdapter).What plugging it needs
Adaptera known-hosts-file option (mirroring the existingWithSSHIdentityFileinadapter.go:74-90) and haveUnitActiveappend-o UserKnownHostsFile=<path>when set.newClanAdaptercall site with the sameownVPSKnownHostsPath()already used forfleetwire.RemoteTarget— but this needs a scoping decision:newClanAdapteralso backs the standalone real-fleet-hardware face (wiring_prod.go:64-68says its own SSH trust is unrelated to the own-VPS one), so the new option should NOT be applied there. Consider instead routingUnitActivethrough the samefleetwire.Target/RemoteTargetabstraction the connect/pairing path already uses, so there's one source of truth for ssh options instead of two argv builders that can drift again.UnitActiveisn't behind theCLIseam (rawexec.CommandContext), so no existing test can catch this —internal/clan/adapter_test.gohas noUnitActivecoverage. Whatever lands needs either a small command-runner seam or an integration-level assertion that the known_hosts flag is actually in the argv.Related in-code refs:
#437(own-VPS forward-loopback deploy target),#443(truthful not-active vs transport-error split) — both cited inUnitActive's doc comment atadapter.go:110-118.Not self-fixed: this signature already had one self-fix land on this leg and still recurred, and the correct fix requires a scope judgment across
newClanAdapter's two callers (own-VPS vs standalone fleet-hardware) rather than a mechanical constant/selector change, with no targeted test to verify it here.drive
20260812T003918Zred atsupply:journey leg "control-plane" went red: founding: gateway deploy: founding: probe ourcloud-control-plane.service on the gateway: clan: probe ourcloud-control-plane.service on gateway over ssh: exit stat @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the EDN key sent by the remote host is SHAN:NTjAhNpZNjislNyNIbvZeeGNNaNDSNkNTVjevnGyU. Please contact your system administrator. Add correct host key in /home/dev/.ssh/known_hosts to get rid of this message. Offending EDN key in /home/dev/.ssh/known_hosts:N remove with: ssh-keygen -f '/home/dev/.ssh/known_hosts' -R 'N.N.N.N' Host key for N.N.N.N has changed and you have requested strict checking. Host key verification failed.evidence:
test-results/…/20260812T003918Z/on matou-workstation (legs.json, droplet-journal.txt, trace)swarm-claim host=matou-dev-server-01 run=4852
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #458 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope