own-VPS fleet/enrolment: stand up SSH -L forwards to the box so the 127.0.0.1 gateway polls stay byte-identical (split from #436) #437
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#437
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 out of #436's hand-back (Ben's ruling, 2026-08-11 ~15:50Z) — the supply half landed as
8dabf03; this ticket is the remaining half, pre-filed instead of paying a drive to red on it (the fault shape is fully known from the worker's trace).The gap
FleetandEnrolmentpoll the gateway over the LOCAL-GUEST VM's loopback port-forwards, which do not exist on an own-VPS drive:Fleet.pollUntil→http://127.0.0.1:<APIPort>Enrolment.liveIDP→ kanidm client againsthttps://localhost:<KanidmPort>newGuestVM().SSHPort/APIPort/KanidmPort— the private VM's forward map.The gateway binds kanidm and the control plane loopback-only on the box (
publicKanidmLoopbackPort=8443,gateURL=127.0.0.1:8080), so the public IP is not a path either — by design (the front door is Caddy alone, ADR 0074).The shape (preserves ADR 0126's byte-identical-loopback posture)
Stand up SSH local forwards to the own-VPS box over the carrier's connection (guest-trust identity from #432, accept-new + pinned own-VPS known-hosts per ADR 0152 — the same posture
8dabf03gave supply):-L <localAPIPort>:127.0.0.1:8080and-L <localKanidmPort>:127.0.0.1:8443(ports per the gateway render), held open for the fleet/enrolment phase and torn down after. Fleet/Enrolment then keep their127.0.0.1:<port>contract BYTE-IDENTICAL — the own-VPS path swaps the thing behind the loopback (VM forward → ssh -L), never the callers. Port resolution needs an own-VPS-aware source in place ofnewGuestVM()'s map (the wiring layer knows which path founded; thread the forward ports the same waySeed(ctx, host, sshPort)threads the host).Seam tests in the #432/
8dabf03lineage: fakes record which forward map the pollers resolved against; an own-VPS founding that reaches fleet with the VM's map is a red.ChallengeSourceneeds nothing (own-VPS pointing writes A+wildcard alone, the heartbeat re-points the challenge — ADR 0136, per the #436 worker's trace).Blocks the standing drive issue #378 via native dependency — the next drive past supply reds exactly here without it. These legs have never run on a real droplet: expect the drive to find the NEXT tooth behind this one (pairing ceremony territory).
Landed as
ae7586eonmain.The remaining half of #436 is closed: the own-VPS fleet/enrolment legs now reach the operator's box through
ssh -Lforwards instead of the private path's VM loopback map.Shape (preserves ADR 0126's byte-identical-loopback posture):
fleetwire.GuestForwards— the one own-VPS-aware source theFleet+Enrolmentadapters share. The private path resolves the committed VM forward map through it byte-identically (loopback target, the VM's ports). An own-VPS journey callsUseOwnVPS(ip): SSH lands onroot@<ip>:22(RemoteTarget, accept-new + pinned own-VPS known-hosts, ADR 0152) and the control-plane/kanidm loopback ports (:8080/:8443, ADR 0074) become the local ends ofssh -Lforwards to the box — stood up lazily and held open (the enrolment ceremony spans separate stdio ops after the finish leg), torn down byClose.Fleet/Enrolmentkeep their127.0.0.1:<port>contract BYTE-IDENTICAL — the own-VPS path swaps the thing behind the loopback (VM forward → ssh -L), never the callers (optionalForwardsfield on their configs; nil keeps the pre-seam static fields).Seed(ctx, host, sshPort)threads the supply host: newfounding.GuestForwardsseam (WithGuestForwards), withensureGuestForwardscalled at every guest-facing entry (RunSeed,OpenEnrolment,AwaitEnrolment— resume-safe). Private path never switches.ChallengeSourceuntouched (ADR 0136).GuestForwards(realssh -N -Lforwarder) for fleet + enrolment + the founding seam; newguest-forwardsboot-seam port.Evidence: new fleetwire seam tests (private resolves the VM map; own-VPS stands up + reuses the forwards behind the loopback;
SeedLedger/Enrolmentreads land onroot@<box>:22, not127.0.0.1;forwardArgsposture) and founding tests (own-VPS switches to the box before fleet; private path never does) —internal/fleetwire/forwards_test.go,internal/founding/{ownvpspath,privatepath}_test.go. Fullgo test ./...+golangci-lintgreen.Not yet run on a real droplet — as the ticket anticipated, expect the next own-VPS drive past supply to red on the NEXT tooth (pairing-ceremony territory). This unblocks the standing drive #378.
ben referenced this issue2026-08-11 22:48:36 +00:00