control plane: the P11 Network read (GET /api/v1/network) is never composed — WithNetwork exists but main() never calls it, so the Services front-door card and Network surface read "no such endpoint" on every live gateway #1343
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#1343
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?
Seen: manual trial 2026-09-08 (Whakatohea, rented, build db1d1b23 and again on today's second founding): the admin dashboard's Services front-door card / Network surface shows no such endpoint.
Verified against the live box (
https://whakatohea.idss.nz/api/v1/…, compositionwhole): probing every static GET the dashboard's generated client issues —Cause: #815 landed
controlapi.WithNetwork(svc NetworkService)+registerNetwork(internal/controlapi/network.go:280–291) and #816–#818 landed the dashboard side, but no production caller composes it —grep -rn 'WithNetwork(' control-plane internalfinds only the definition. The#1331class ("dead code main() never wired"): the route exists in source at db1d1b23 and on main, and 404s on the box.Also in the probe, decide separately:
/updates/rollout404s even thoughwhole_composition.go:556chains.WithRollout(...)— check its registration guard (updates.go:136if !ok) against a resting release source (the box logs release source resting: no IDSS_RELEASE_FEED_URL). If the Updates surface reads rollout on mount, it wears the same "no such endpoint" on every gateway without a feed./idip/*404s are the kanidm path — the dashboard's Members IDIP panels should not issue them off-IDIP (or should render the honest "not on this path" state, not a 404 problem).Fix: compose
WithNetworkinwhole_composition.goover the three owners the read fans out to (deployment / front door / mesh — see network.go's NetworkService), with the e2e pin: a served gateway answersGET /api/v1/network200 behind the gate. Add the route to whatever seam asserts the dashboard's mount-time reads all resolve (the probe above is a 5-line shell loop — worth a harness leg: every static GET in generated.ts answers non-404 on a founded gateway).Ruled by agent under ADR 0174 — veto anytime.
Ruling:
bug+ready-for-agent.Why this is a two-way door: the classification is a label change (revertible by a later edit), and the fix is provable by an existing seam contract —
internal/controlapi/network_integration_test.goalready exercisesWithNetwork(svc)throughNewHandler, and the report states the e2e pin (a founded gateway answersGET /api/v1/network200 behind the gate). None of the one-way-door residue applies (no personal credentials, no security-posture widening — the route rides the existing front-door auth gate unchanged — no member-facing trust accept, no data destruction, no non-routine spend).What proves it: I confirmed the claim against the tree —
grep -rn 'WithNetwork(' internal control-planefinds the definition (internal/controlapi/network.go,WithNetwork(svc NetworkService)) and four test call-sites only; the production option list assembled incontrol-plane/cmd/control-plane/main.go(theoptsslice passed tocontrolapi.NewHandler) never appends it. Confirmed#1331-class dead code: the route exists in source and 404s on the box.Agent Brief
Category: bug
Summary: The P11 Network read (
GET /api/v1/network) is defined but never composed into the production control-plane handler, so the Services front-door card and Network surface read "no such endpoint" on every live gateway.Current behavior:
controlapi.WithNetwork(svc NetworkService)and itsregisterNetworkroute (from #815) exist in thecontrolapipackage and are covered by an integration test, but no production caller composes the option. The control-plane's handler option list (theoptsslice handed tocontrolapi.NewHandler) omits it, soGET /api/v1/network404s on a served gateway. The dashboard side (#816–#818) issues the read and renders "no such endpoint".Desired behavior:
A founded/served gateway answers
GET /api/v1/networkwith 200 behind the front-door auth gate, returning the aggregated P11 answer. An unauthenticated caller is still refused at the gate with no network fact disclosed (unchanged posture — the route rides the existing/api/v1admin surface).Key interfaces:
controlapi.NetworkService— the four-method read face (Deployment(),FrontDoor(),Address(),Lease()). A production adapter must implement it, bound to the composition's already-live sources: the deployment/zones shape, monitoring's front-door observation (monitor.FrontDoorObservation), the heartbeat's standingStatus(), and the portmap lease reading. Where a shape robs a section of meaning, the adapter carries the stated-limit content per the interface docs (own-domain / private-path).controlapi.WithNetwork(svc)— append this option to the production handler option list alongside the otherWith…options, wiring the adapter above.Acceptance criteria:
GET /api/v1/networkreturns 200 (not 404) on a founded gateway, behind the front-door gate; an unauthenticated caller is still refused with no network fact disclosed.NetworkServiceadapter is composed viaWithNetworkin the control-plane handler assembly;grep -rn 'WithNetwork(' control-planefinds a non-test caller.network_integration_test.goseam still passes, and a composition-level assertion covers that the whole handler answers/api/v1/networknon-404 (extend the mount-time reads seam if one exists).Out of scope (file separately — do NOT fold in):
/updates/rollout404 —WithRolloutis chained, but its registration guard (updates.go, theif !okpath) appears to skip mounting when the release source is resting (noIDSS_RELEASE_FEED_URL). This is a distinct route-guard bug and should be its own ticket./idip/*404s — the kanidm/off-IDIP path. Whether the dashboard's Members IDIP panels should suppress those reads or render an honest "not on this path" state is a dashboard/design question (likelyneeds-design), not this composition fix.swarm-claim host=matou-dev-server-01 run=20420
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1343 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
35d9f7e0dfis not reachable from origin/main (not landed)envelope
close-report for #1343 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope