founding: enrolment SSH hygiene — wrong self-hosted identity key + dishonest cat '' error line #969
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#969
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?
Two smaller founding-enrolment hygiene items named while fixing #966 (ADR 0215).
Neither was the #788 red; both are real and worth closing.
1. The enrolment adapter's SSH identity is wrong on the self-hosted path
app/helper/cmd/helper/wiring_prod.gokeys the enrolment adapter onguestTrustDir()/id_ed25519=<state>/guest-trust/id_ed25519, which theself-hosted journey never mints — the #788 run's
state/carriesown-vps/holding
known_hosts/known_hosts.oldonly, and noguest-trust/directory atall. Every enrolment SSH on the self-hosted path therefore silently falls back
to the ambient agent key (this is literally how the kanidm read connected in
the #788 run before failing on the missing file). It worked by luck; it is not a
contract. The kanidm self-hosted path still SSHes for enrolment, so this remains
a live gap there even after #966 stops IDIP from SSHing at all.
2. The enrolment read's error line is dishonest about what failed
internal/fleetwire/enrolment.gorunscat "$(cat /etc/idss/kanidm-ca-path)"(
:120,:136), which swallows the innercat's exit and then runscat "",so the operator-facing fault carries a baffling
cat: '': No such file or directorybeside the real cause. A guard (p=$(cat …) || exit; cat "$p") wouldname the missing pointer once, cleanly.
Filed as follow-up from #966 per ADR 0174 rule 1.
Agent Brief
Category: bug
Summary: Two founding-enrolment SSH hygiene fixes — the self-hosted enrolment adapter is keyed on a guest-trust identity that path never mints (so it silently falls back to the ambient agent key), and the CA-path read emits a dishonest
cat ''error that masks the real cause.Current behavior:
Identityis set to the guest-trust ed25519 key (<state>/guest-trust/id_ed25519), but the self-hosted founding journey never mints that directory — the #788 run'sstate/carries onlyown-vps/(known_hosts), noguest-trust/. So every self-hosted enrolment SSH silently falls back to the ambient agent key. It works by luck, not by contract. Because the kanidm self-hosted path still SSHes for enrolment (even after #966 stops IDIP from SSHing at all), this is a live gap there.cat "$(cat /etc/idss/kanidm-ca-path)"(and the same shape for the idm-admin-path read). When the innercatfails, its exit is swallowed and the outer runscat "", so the operator-facing fault carries a bafflingcat: '': No such file or directorybeside the real cause.Desired behavior:
catso a missing/empty pointer is named once, cleanly (e.g.p=$(cat …) || exit; cat "$p") rather than degrading intocat ''.Key interfaces:
Identityfor the self-hosted / own-VPS path — key it on the identity that path mints, and fail honestly if the expected key is absent.Acceptance criteria:
cat: '': No such file or directory.Out of scope:
Both claims verified against the current tree: the adapter's
Identityis keyed onguestTrustDir()/id_ed25519, and the enrolment read uses the nestedcat "$(cat …)"shape for both the CA-path and idm-admin-path pointers. Fix (1) is a tightening (honest/correct key, not a widening of any auth requirement), fix (2) is cosmetic-plus-honest error text — both code-only, revertible, and provable by the self-hosted enrolment path on the next drive. No design contract is missing and there is no human residue, so this moves toready-for-agent(no ADR 0174 ruling required).swarm-claim host=elitebook-distributed-server-03 run=13455
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #969 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope