The rehearsal harness's rented-gateway SSH dials carry no identity — #744's authorized_keys scrub took away the ambient trust they were silently riding #885
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#885
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
Drive
test-results/drive-device/20260827T033903Z(commitf979d57c) reds at legstanding, and again atimage-boot— the SAME error, becauserunRentedPrefixruns inside thestandingleg. One fault, recorded twice; there is no second defect here.The message blames the agent; the parenthetical is the real answer.
systemctlnever ran — SSH was refused.artifacts/legs.jsonshowswizard-rent/claim/createall green, so the box was genuinely rented and reachable; only authentication failed.Evidence
app/tests/e2e/fixtures/rentedPrefix.ts:363, afterwaitForSSHCommandatapp/tests/e2e/fixtures/rentedPrefix.ts:354spent its full 2-minute budget being refused (ms: 120373forimage-bootinartifacts/legs.json).app/tests/e2e/fixtures/droplet.ts:28-41builds the dial:StrictHostKeyChecking=accept-new,UserKnownHostsFile=<knownHostsFile()>,BatchMode=yes,root@${ip}— and no-i. With no identity named, ssh offers the executor's ambient~/.ssh/id_ed25519(swarm@elitebook-03 rehearsal executor).sshDropletInteractive(droplet.ts:120-140) has the same gap.broker/internal/broker/provider_do.go:144-155—Createregistersreq.SSHPubKeyand passes its single fingerprint as"ssh_keys": []string{fp}.app/helper/cmd/helper/wiring_prod.go:134-142(rentOperatorKeyDir), contract ininternal/founding/access.go:110-137(RentPubKey.IdentityFile). For this drive it isapp/test-results/standing-rented/state/rent-operator/id_ed25519, minted 03:40Z this run — verifiably NOT the ambient key.Why this drive and not the last one
d49ece2b— "session: #744 — the generic gateway image stops shipping the build box's authorized_keys" (2026-08-25 22:06Z) — scrubbed/root/.ssh/authorized_keysfrom the golden snapshot. Its own commit message: the build droplet is created with EVERY key on the DO account and nixos-anywhere copied that file into the installed system, so "every rented community gateway root-trusted Matou's entire account key set for the life of the machine". The executor's ambient key was in that set. The harness's identity-less dial had been passing on it.Last green
image-boot:test-results/drive-rented/20260825T011451Z/artifacts/legs.json, 11.7 s, at 2026-08-25 01:14Z — befored49ece2b. This drive is the first to rent from a post-#744 snapshot. #744 did exactly what it set out to do; it uncovered a latent bug in the harness rather than causing one.The shell half of the harness already knows the right identity and has for some time —
scripts/lib/rehearsal-droplet.sh:932-936, 958-960: "It prefers the app's rent-operator identity ... falling back to the ambient key". Only the TypeScript half was left on the fallback. (Note that helper reads$run_dir/state/rent-operator/id_ed25519, which is ALSO wrong for the device drive — its app state dir isstandingDir()/state, not$run_dir/state;state/in this run dir is empty. Worth fixing in the same pass.)Suspected layer
The drive harness only (
app/tests/e2e/). No product code is implicated: the app's own rented carrier connects over the correct explicit identity (internal/founding/rentedpath.go:299-309,Identity: o.rentPubKey.IdentityFile(), deliberately NOTAmbientSSH— #692).What plugging it needs
Which dials. Exactly five target the rented gateway and need the rent-operator identity:
app/tests/e2e/fixtures/rentedPrefix.ts:354(waitForSSHCommand, image-boot agent check)app/tests/e2e/fixtures/rentedPrefix.ts:368(no-install-log check)app/tests/e2e/fixtures/rentedPrefix.ts:379(disko labels)app/tests/e2e/fixtures/rentedPrefix.ts:448(deploy leg, no-takeover journal check)app/tests/e2e/journey.rented.spec.ts:314(heartbeat renew line)Every
sshDroplet/sshDropletInteractivecall injourney.device.spec.ts(:381, :409, :416, :438, :454, :461, :494, :577, :587, :636, :825) targetsdeviceIp()— the member droplet the bash carrier stands up with the account's own keys — andjourney.selfhosted.spec.ts/journey.droplet.spec.tsdial ambiently by design (ADR 0152/0154). Those must KEEP the ambient identity. A blanket env-wide-iwould break them; the identity has to be per-dial.Shape. Add an optional
identityFiletosshDroplet/waitForSSHCommand/sshDropletInteractiveinapp/tests/e2e/fixtures/droplet.ts, pushing-i <path>into the argv only when set — mirroring the existingknownHostsFile()seam atdroplet.ts:12-20. Passjoin(live.stateDir, 'rent-operator', 'id_ed25519')at the five sites above.live.stateDiris already onLaunchedApp(app/tests/e2e/fixtures/launch.ts:11), andrentedPrefix.tsalready reads from it (:240).The identity is valid for the post-deploy dials too.
internal/founding/rentedpath.go:309landsAuthorizedKeys: appendGuestTrust(facts.RootAuthorizedKeys, guestTrust)— the carrier scrapes the box's OWN/root/.ssh/authorized_keys(post-#744, exactly the rent-operator key cloud-init landed) and re-lands it declaratively, so the same-iworks before and after theclan update. Dials atrentedPrefix.ts:448andjourney.rented.spec.ts:314do not need a different key.Fail loud rather than fall back. If the rent-operator key is absent at a gateway dial, red with that reason. A silent fallback to the ambient key is what let this hide for two days and cost a paid drive.
Seam test.
app/tests/e2e/fixtures/droplet.test.tsalready asserts argv shape for the known-hosts thread (:50,:130); add the mirror cases —-ipresent with the given path, absent when unset — for all three dial functions.Also worth landing: a
docs/GOTCHAS.mdentry. The generalisable rule is that a harness dial with no explicit identity is riding trust nobody declared, and it goes green until the day someone correctly removes that trust — the same family as GOTCHAS #100 (a keypair's two halves are one artifact) and #707.Why this was not self-healed
Four files (
droplet.ts,droplet.test.ts,rentedPrefix.ts,journey.rented.spec.ts), and the only check runnable on this machine is the vitest argv seam — it proves-ireaches the command line, not that the box accepts the key. Real proof costs another droplet.drive
20260827T033903Zred atstanding:idss-agent is not active on the rented box: systemctl is-active reported "" (Warning: Permanently added '168.144.170.129' (ED25519) to the list of known hosts. root@168.144.170.129: Permission deniedevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260827T033903Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=matou-dev-server-01 run=12537
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #885 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope