members: member-detail-reset — member detail screen + single-use reset link #71
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
Depends on
Reference
Matou/idss#71
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?
Parent
Feature spec: #19 (members).
What to build
Drilling into a member from the list (P6-S1 → S4) opens the one screen that answers "what can this person touch?" Member detail shows their role, komiti chips with an add affordance, the per-service access derived from the service × komiti matrix, their kaitiaki designation state, and the lifecycle actions. This slice builds that detail surface reading over the
memberorchestrator (ADR 0077); the actions it exposes — suspend, remove, komiti/matrix edits, kaitiaki and operator-role changes — are wired in their own later slices.The reset link lands here (S4 → S1). When an active member has lost their credential ("I got a new phone"), the operator mints a reset link — kanidm's native reset token, branded — that is single-use, short-expiry, revocable, and audit-logged, and reuses the branded credential screen on the member's own device, fixed across a table with no email machinery. Minting is blocked while the member is suspended: un-suspend first, so suspension can never be quietly bypassed.
Acceptance criteria
Blocked by
Task manifest
Done in commit
63edc21(branchsandcastle/worker/20260725-082119-bbea88), ininternal/member/.Detail read (story 16) —
detail.go:MemberDetail(personID)renders the P6-S4 drill-in — role, komiti chips with the+ addaffordance, per-service access derived (never stored) from the config repo's service × komiti matrix joined with the member's live komiti (a new read-onlyAccessMatrixport +FakeAccessMatrix, ADR 0078 — the matrix's CRUD stays komiti-matrix-roles' slice), the kaitiaki designation state with its grants-no-access note, and the lifecycle actions (reset/suspend/remove) under theALL IDENTITY ACTIONS AUDIT-LOGGEDbanner. Reset is disabled on the detail while suspended (mirrors the mint rule); an unknown id isErrNoSuchMember.Reset link (story 17) —
reset.go:MintReset(actor, personID)mints kanidm's native reset token through theidpport's newMintResetTokenverb, branded, wrapped in a single-use, short-expiry (ResetTTL=1h), revocable, audit-logged link + QR recorded in a new control-plane runtimeResetLedger(ADR 0078 move 3 — deliberately not the config-repo replica).OpenReset(token)returns the branded credential screen the signup face reuses (brand + passkey-recommended-never-required + password fallback) on the member's device;RedeemResetconsumes it single-use;RevokeResetis the idempotent operator revoke; status derives live (open → used | expired | revoked). Minting is blocked while suspended (ErrMemberSuspended, un-suspend first), refused for non-active members and unattributed callers; mint + revoke audit-logged (ActionReset).Evidence: 15 new seam tests (
detail_test.go,reset_test.go) over a fakeidp/brand/matrix+ in-memory reset & member ledgers + audit sink — each acceptance clause covered.go build/go vet/gofmt/golangci-lintclean; fullgo test ./...green.Out of scope (later slices): the suspend switch, removal fates, komiti/matrix/role CRUD, kaitiaki toggle, self-service reset.