clan's second sops upload drops the SSH identity — control-plane row dies with Permission denied against a healthy guest #558
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#558
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?
Symptom
Fresh tier-1 drives fail the control-plane deploy row with
while the guest's door is demonstrably fine (the guest-trust key was Accepted 10+ times in the same boot, and manual ssh with that key succeeds before and after).
Evidence — the process capture (2026-08-15 drive, live ps capture of clan's ssh spawns)
The pinned clan CLI runs the sops secrets upload twice. The first invocation carries the identity; the second does not:
Every other spawn in the flow (fleetwire seeding, nix copy master +
nix-daemon --stdio, resolver warmup, remote build, bothsystemd-runswitch invocations) carried the identity correctly.Cause (hypothesis to verify at the pinned rev)
ADR 0126's research verdict:
machines updatehas no--identity-file, so the identity rides the--target-hostURI'sIdentityFilequery parameter. The capture shows a later phase constructing its ssh from a DIFFERENT target-host resolution that lacks the query — most plausibly the machine's inventory/varstargetHost(seeded by the helper as a baressh://root@127.0.0.1:PORT) taking over from the CLI-passed target after the switch. Verify against clan-core revd098fa2ewhich upload path builds the second call.Rule / fix directions
Whichever resolution wins, it must carry the same identity. Helper-side (in our control): seed the gateway machine's
targetHostWITH theIdentityFilequery parameter (and considerIdentitiesOnly=yes— the phase-2 call also inherits whatever the operator's agent offers first). Alternatively pin the identity via a scoped ssh config for the deploy invocation. The misleading part to also fix: the operator sees "Permission denied" against their own VM with zero hint that a second, identity-less upload phase exists.Proof
A fresh tier-1 drive's control-plane row completes: BOTH sops uploads authenticate (process capture shows the identity on each), and the drive proceeds to dashboard/brand/admin.
Chain context: this is the real cause behind the 2026-08-14/15 Permission-denied failures previously half-attributed to the post-activation door (#550 covers the genuine post-activation retry wall; #549 fixed the masked-exit false positive; #553 the earlyoom kill).
swarm-claim host=elitebook-distributed-server-03 run=6565
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #558 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
deploy.targetHost#1497