members: public-signup-live — the invite link resolves to a real signup #209

Closed
opened 2026-07-30 23:20:27 +00:00 by ben · 1 comment
Owner

Parent

Members spec #19 (P6-S2→S3→S5, DDR 0073 — the gated door). Gap audit 2026-07-30 (post #191–#195 sweep of the composition roots and both app shells). Filed per the #191–#195 precedent: a close-out blocker of #183 found while preparing the run, confirmed by Ben.

What's true today

  • The operator side is fully real: minting an invite returns a live token, link and QR over HTTP. The member side is absent at five independent layers: the join surface is unmounted, the composition has no slot for it, the only join client is a fake, the spec has zero public endpoints (every members route is operator-authenticated), and there is no URL for the link to target.
  • An emailed invite therefore resolves to nothing. By-hand credentials are the only working path — exactly the flow the invite journey was designed to replace. This is the one audit gap a member hits rather than an operator.

What to build

The public, invite-token-authenticated join path end to end: spec endpoints for the join face's three verbs (open the invite, submit the signup, poll the gate's state), a live client, the composition slot, and the join surface mounted at the real URL the minted link targets. Members are IdP-only — never mesh peers (the standing access ruling; ADR 0038 kanidm stands).

Acceptance criteria

  • Given a minted invite link opened on a phone off-LAN, When the member signs up, Then they land at waiting-approval honestly, and on the operator's approval a kanidm account exists and the branded portal greets them
  • Given a dead or already-used invite, When the link opens, Then the dead-invite screen — never a silent success
  • Given a control-plane restart between invite and accept, Then the invite persists (family-2's proof holds through this surface)

Task manifest

task: members:public-signup-live
implements_seam: "the member join face (spec #19, DDR 0073) public over HTTP; members IdP-only (ADR 0038/0105)"
interface: "the invite link a member opens on their own device"
seam: "an integration test over the real ledger + IdP fake boundary, and a live-HTTP vitest mounting the join surface"
acceptance:
  - given: a real invite link; when: a member signs up from an off-LAN browser; then: gated honestly, then a kanidm account and the branded portal
depends_on: [dashboard:build-and-serve]
out_of_scope: [operator-side invite/approve surfaces (already real), member offboarding (its own ticket)]
needs_human_decision: []

Blocked by

Blocks

#183 — leg B·5 (cellular join via public entry).

## Parent Members spec #19 (P6-S2→S3→S5, DDR 0073 — the gated door). Gap audit 2026-07-30 (post #191–#195 sweep of the composition roots and both app shells). Filed per the #191–#195 precedent: a close-out blocker of #183 found while preparing the run, confirmed by Ben. ## What's true today - The operator side is fully real: minting an invite returns a live token, link and QR over HTTP. The member side is absent at **five independent layers**: the join surface is unmounted, the composition has no slot for it, the only join client is a fake, the spec has zero public endpoints (every members route is operator-authenticated), and there is no URL for the link to target. - An emailed invite therefore resolves to nothing. By-hand credentials are the only working path — exactly the flow the invite journey was designed to replace. This is the one audit gap a **member** hits rather than an operator. ## What to build The public, invite-token-authenticated join path end to end: spec endpoints for the join face's three verbs (open the invite, submit the signup, poll the gate's state), a live client, the composition slot, and the join surface mounted at the real URL the minted link targets. Members are IdP-only — never mesh peers (the standing access ruling; ADR 0038 kanidm stands). ## Acceptance criteria - [ ] Given a minted invite link opened on a phone off-LAN, When the member signs up, Then they land at waiting-approval honestly, and on the operator's approval a kanidm account exists and the branded portal greets them - [ ] Given a dead or already-used invite, When the link opens, Then the dead-invite screen — never a silent success - [ ] Given a control-plane restart between invite and accept, Then the invite persists (family-2's proof holds through this surface) ## Task manifest ```yaml task: members:public-signup-live implements_seam: "the member join face (spec #19, DDR 0073) public over HTTP; members IdP-only (ADR 0038/0105)" interface: "the invite link a member opens on their own device" seam: "an integration test over the real ledger + IdP fake boundary, and a live-HTTP vitest mounting the join surface" acceptance: - given: a real invite link; when: a member signs up from an off-LAN browser; then: gated honestly, then a kanidm account and the branded portal depends_on: [dashboard:build-and-serve] out_of_scope: [operator-side invite/approve surfaces (already real), member offboarding (its own ticket)] needs_human_decision: [] ``` ## Blocked by - #199 ## Blocks #183 — leg B·5 (cellular join via public entry).
Author
Owner

Done — the public, invite-token-authenticated join path is real end to end (commit f658585 on main).

Five layers closed:

  1. Spec — the first public members endpoints: GET /api/v1/join/{token} (open), POST /api/v1/join/{token} (submit), GET /api/v1/join/state/{person_id} (poll). Authenticated on the invite token in the path alone (no operator attribution — enroll's public-face discipline; members IdP-only, ADR 0038). A dead/unknown invite is a verdict-tagged 200 carrying the seam's own branded DeadInviteScreen — never a Problem, never a reason (DDR 0073).
  2. Backend — internal/controlapi/member_join.go (WithMemberJoin over the real *member.Orchestrator).
  3. Composition slot — controlapi.WithMemberJoin(c.mem) in the control-plane composition root.
  4. Live client — HttpMemberJoinClient (dashboard/src/lib/api/joinClient.ts) folds the verdict body into the discriminated results JoinSurface already switches on; the last fake in a composition path retired.
  5. Surface at the real URL — a minted link points at haere-mai/<token> (the seam's InviteJoinPath); main.ts reads the token (src/lib/joinRouting.ts) and boots bootJoinSurface (src/entry/join.ts) over the control plane's existing SPA-fallback.

Acceptance:

  • Invite opened → sign up → waiting-approval honestly (account created disabled), and on the operator's approval idp.CanSignIn is true and the poll reads approved. ✓
  • Dead/used-up invite → the branded dead-invite screen, no reason. ✓
  • Invite persists across a control-plane restart (a fresh orchestrator over the same durable ledgers still admits). ✓

Seams (test-first): internal/controlapi/member_join_integration_test.go (real ledger + IdP-fake boundary over HTTP) and dashboard/tests/unit/joinEntry.test.ts (live-HTTP vitest booting the join surface, S3 → S5 → approved with no fake, dead → S3x).

Verified: dashboard vitest 704 pass (incl. the new seam), vue-tsc, eslint, OpenAPI check:client in sync. Go build/vet/test not run — no Go toolchain in the sandbox (#198); the Go slice is review-verified and gofmt-aligned by hand.

Unblocks #183 leg B·5 (cellular join via the public entry).

Done — the public, invite-token-authenticated join path is real end to end (commit `f658585` on main). **Five layers closed:** 1. **Spec** — the first public members endpoints: `GET /api/v1/join/{token}` (open), `POST /api/v1/join/{token}` (submit), `GET /api/v1/join/state/{person_id}` (poll). Authenticated on the invite token in the path alone (no operator attribution — enroll's public-face discipline; members IdP-only, ADR 0038). A dead/unknown invite is a verdict-tagged 200 carrying the seam's own branded `DeadInviteScreen` — never a Problem, never a reason (DDR 0073). 2. **Backend** — `internal/controlapi/member_join.go` (`WithMemberJoin` over the real `*member.Orchestrator`). 3. **Composition slot** — `controlapi.WithMemberJoin(c.mem)` in the control-plane composition root. 4. **Live client** — `HttpMemberJoinClient` (`dashboard/src/lib/api/joinClient.ts`) folds the verdict body into the discriminated results `JoinSurface` already switches on; the last fake in a composition path retired. 5. **Surface at the real URL** — a minted link points at `haere-mai/<token>` (the seam's `InviteJoinPath`); `main.ts` reads the token (`src/lib/joinRouting.ts`) and boots `bootJoinSurface` (`src/entry/join.ts`) over the control plane's existing SPA-fallback. **Acceptance:** - Invite opened → sign up → waiting-approval honestly (account created *disabled*), and on the operator's approval `idp.CanSignIn` is true and the poll reads approved. ✓ - Dead/used-up invite → the branded dead-invite screen, no reason. ✓ - Invite persists across a control-plane restart (a fresh orchestrator over the same durable ledgers still admits). ✓ **Seams (test-first):** `internal/controlapi/member_join_integration_test.go` (real ledger + IdP-fake boundary over HTTP) and `dashboard/tests/unit/joinEntry.test.ts` (live-HTTP vitest booting the join surface, S3 → S5 → approved with no fake, dead → S3x). **Verified:** dashboard vitest 704 pass (incl. the new seam), vue-tsc, eslint, OpenAPI `check:client` in sync. Go build/vet/test not run — no Go toolchain in the sandbox (#198); the Go slice is review-verified and gofmt-aligned by hand. Unblocks #183 leg B·5 (cellular join via the public entry).
ben closed this issue 2026-07-31 08:13:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#209
No description provided.