founding self-hosted relay carrier (part 2): SSH remote-forward binding the box's enroll socket to the helper device server + app-side S9 pairing observation #594
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.
Dependencies
No dependencies set.
Reference
Matou/idss#594
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?
Split from #582 (per its own "What this ticket must build" section: build item 1 — the helper-side enrollwire device server — shipped in
f7ed1fe; build items 2 and 3 remain and are a genuinely separate, larger, live-verified slice). #582 also landed the two ruled design decisions: ADR 0181 (decision A — the relay IS the carrier for self-hosted founding enrolment; ADR 0152's own-VPS drive-out stands unamended) and decision B (installscript.goinstalls + starts only, no foregroundexec enroll).What #582 established (the carrier's helper end)
persistedEnrollnow satisfiesenroll.ControlPlane(addedPoll), andapp/helper/cmd/helper/enrolldevice.go(serveEnrollDevice/startEnrollRelayServer) mountsenrollwire.RegisterDeviceover the same in-helper ledger the founding orchestrator holds (newFoundingOrchestratorreturns the shared face — no #575 split-brain), served on a Unix socket gated byOURCLOUD_ENROLL_RELAY_SERVE_SOCKETand wired intohelper found./run/ourcloud/enroll-relay.sock) is #581, already shipped. So both socket ends exist; nothing yet binds them across the wire, and the app never observes the box's pairing.What this ticket must build (items 2 + 3 of #582)
BeginStandupbranch (internal/founding/manualpath.go) mints the code and rests at S7b — it does NOT drive out. Build the leg that reachesroot@<IP>over SSH and remote-forwards the box's/run/ourcloud/enroll-relay.sockonto the helper's enrollwire device server (setOURCLOUD_ENROLL_RELAY_SERVE_SOCKETand forward the box socket onto it). Reuse the fleetwire SSH machinery the own-VPS carrier already uses (fleetwire.NewOwnVPSCarrier,NewSSHForwarder).pair) asserts[data-status="spec-gate-pass"]app-side. Own-VPS drives+observes pairing in-process; self-hosted must observe the box's redeem/pair landing in the in-helper ledger (which the device server now writes to) and render S9. No such flow exists for self-hosted yet.Open design question this must first settle (why it is not a trivial build)
Self-hosted box SSH-address + credentials provenance. The self-hosted path is "a machine at your place" —
ConfirmSelfHosted(internal/founding/access.go) captures no IP, and the phase-3 drive only supplies the box IP viaOC_E2E_DROPLET_IP(an env the launch fixture forwards into the helper, likeOURCLOUD_E2E_OPEN_SINK). So the carrier can read the box address from a drive-only env knob to make the drive green without a UX change (product-flow provenance — where a real operator's box address/SSH trust comes from — is a later slice, honestly noted). Confirm that reading, or rule differently, before building. This is two-way-door-shaped (env-gated, revertible, provable by the drive) so it should be rulable under ADR 0174 by the agent that picks this up.Evidence + full trace: #582's thread; ADR 0181;
test-results/drive-selfhosted/.advances #523
Ruled by agent under ADR 0174 — veto anytime.
Decision (the open design question in the ticket): the self-hosted founding
relay carrier reads the box's SSH address from the drive-only env knob
OC_E2E_DROPLET_IP— the same env the phase-1 droplet journey already reads(
scripts/lib/rehearsal-droplet.shexports it;journey.selfhosted.spec.tsconsumes it).
ConfirmSelfHosted/AccessSelfHosted(internal/founding/access.go)captures no operator IP, so the carrier reads the box address from this knob to
make the self-hosted drive green without any UX change. The helper serves the
enrollwire device face on
OURCLOUD_ENROLL_RELAY_SERVE_SOCKET(#582, set by thedrive fixture); the carrier's
ssh -N -R <box-relay-socket>:<serve-socket>remote-forward binds the box's
/run/ourcloud/enroll-relay.sockonto it.Why it is a two-way door: env-gated (the whole reading is behind
OC_E2E_DROPLET_IP— unset on every non-drive path, so nothing widens for a realoperator), revertible by a later commit, and not on the ADR 0174 one-way-door list
(no personal credential, no security-posture widening, no member-facing trust
accept, no data destruction, no spend). It mirrors the exact provenance shape the
own-VPS carrier's
OURCLOUD_E2E_OPEN_SINKand the phase-1 droplet IP already use.What proves it: the
drive-selfhostedphase-3 rehearsal drive — legs 6(
consent: the box'sconnection request sentlands in the in-helper ledger overthe forwarded socket) and 7 (
pair: the app renders[data-status="spec-gate-pass"]).Honestly noted: where a real operator's box SSH address + host-key trust come
from (a UX capture on
AccessSelfHosted) is a later product-flow slice — thisruling does not build that, it only reads the drive knob so the transport + app-side
observation can be built and proven now.
swarm-claim host=matou-dev-server-01 run=7775
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #594 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope