service-restrict: SERVICE ACCESS renders zero rows on a fresh community (empty matrix) #1229
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#1229
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?
Not the known frontier
This red is not the own-VPS carrier/pairing frontier.
pairis green ({"leg": "pair", "status": "green", "ms": 98}) andverdict.jsonrecords zero skips, solegs.jsoncarries no skip reasons at all — nothing in this drive's own records names this leg as out of scope:The first 30 legs — through
deploy-files,files-healthy,door,oidc-admin,credential-claim— are all green. This is a new, specific product defect.The failure
legs.json/journey.json(identicalfault):Critically, the leg went red, not skipped. Its precheck is
shippedOrLedger(dash, '[data-field="service-access"]', 'service-restrict')(app/tests/e2e/journey.idip.spec.ts:959), which returns a named-skip when the section is absent. It did not skip — so the SERVICE ACCESS section rendered, andCredentialsSurface.vue's guardv-if="!detail.builtIn && access"passed. TheGET .../accessread landed 200. The table rendered its<thead>; the<tbody>was empty.Root cause — the empty-matrix bootstrap gap
internal/controlapi/idip_service_access.go:113builds rows only from committed matrix policies, and says so:and
internal/member/matrixstore.go:40:CredentialsSurface.vue:221then keys each row off that list —v-for="row in access.rows"→:data-field="access-${row.service}". Empty policies ⇒ emptyrows⇒ noaccess-fileselement, ever.This is a chicken-and-egg deadlock. A service gets a row only after a policy is written; the only UI that writes a policy is the per-row
change-access-<svc>edit link inside that row. A service sitting in its default open-to-all state can therefore never be restricted through S7i — the exact act#1156exists to provide.Confirmed on the live box (134.199.168.27, still up)
ssh was accepted; read-only commands only. The box is healthy —
systemctl --failedis empty, andcontrol-plane(:8080),phpfpm-nextcloud,nginx(:8084),caddy(:80/:443),keria,idss-idpare all running. Not an infra red.The matrix document simply does not exist:
(
MatrixDocPath = "idss/access-matrix.json",internal/member/matrixstore.go:12.)And it was never written —
git -C /srv/idss/config log --all -- idss/access-matrix.jsonreturns nothing, while the service itself is deployed and live:0e91159 idss: attach files (Nextcloud) module on gateway.Not a naming mismatch
The harness asks for the right slug.
internal/nextcloud/nextcloud.go:60—const Service = "files", withcatalogue.go:298Slug: "files"and the adapter's own note that the service KEY isfiles, "never the dead 'nextcloud' service key". The row is absent because the matrix is empty, not because it is named differently.Why no test caught it
Both existing suites pre-populate the matrix, so neither exercises a fresh community:
dashboard/tests/unit/credentialsSurface.test.ts:536mounts with a populatedACCESS_MATRIXfake, then assertsaccess-filesexists.control-plane/cmd/smoke-stores/main.go:357seeds it directly:matrix.SetPolicy(member.ServicePolicy{Service: "files", OpenToAll: false, Komiti: []string{"kaitiaki"}}).Nothing seeds the matrix at founding — the only non-test
SetPolicycallers are the komiti control (internal/member/komiti.go, kanidm path, not run on the IDIP path) and the two IDIP access handlers, which are reachable only from a row that does not yet exist.Suspected layer
Product — control-plane view composition,
credentialAccessView. Secondarily a design/spec conflict: the function's "mirror KomitiDetail, policy-only rows" choice contradicts ADR 0222 edit 3 /#1156's S7i contract of one row per catalogue service with an honest front-door state. The harness's expectation matches the wireframe contract; the implementation does not.What plugging it needs
Compose the rows from the deployed catalogue left-joined onto the matrix policies, rather than iterating policies alone, in
credentialAccessView(internal/controlapi/idip_service_access.go:117):OpenToAll: true,FrontDoorLabel: "open to all members"— the honest default the comment already claims.The write path already anticipates this and needs no change —
restrictAdditive's own contract is "A currently-open (or absent) service starts from an empty set." Only the GET view is wrong.Add a regression test at the empty-matrix boundary (a
FakeAccessMatrixwith no policies must still yield afilesrow marked open-to-all), since that is precisely the case both current suites seed past.An alternative — seeding a default open-to-all matrix at founding — would also turn the leg green, but it writes redundant state for every catalogue service and leaves the view lying whenever a service is added after founding. The join is the narrower fix; either way this is a one-line-of-intent change a swarm agent can take without a human ruling.
drive
20260904T231211Zred atservice-restrict:the SERVICE ACCESS table must carry a files row (#1156) expect(locator).toBeVisible() failed Locator: locator('[data-field="access-files"]') Expected: visible Timeout: 30000ms Error: element(s) not foevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260904T231211Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=18050
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1229 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope