members: a member has no email-shaped identity — Grist refuses the per-person grant and Listmonk refuses the operator pre-provision (run 12 red at redeploy-services, #1547) #1580
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.
Reference
Matou/idss#1580
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?
What happened
Run 12 of the #1547 roles proof (
20260918T135205Z, commita3977df1) went red atredeploy-services, 29 of 30 legs green:Both reds have one cause: a member has no email address anywhere in IDSS, and two services key a person by email.
Evidence, read from the kept box
170.64.164.213(read-only)Grist (data-collections). The per-person org grant ruled on #1575 is refused for every member. Control-plane journal:
Grist's access API only accepts an email-shaped key. The product sends the bare kanidm username. The founding operator only works because Grist claims
GRIST_DEFAULT_EMAIL=operatorat first boot, which skips that validation. Org access on the box listsoperator(owners) and the health fixture only.Listmonk (newsletters).
provisionOperatorposts{username, type, user_role_id, password_login}with noemailand noname. Listmonk'suserstable on the box holds onlyidss-adminandidss-api, so the pre-provision failed. The refusal reason was not captured:ReconcileRole's error is never logged. Listmonk 6.1.0 validatesemailandnameon create-user.Not yet seen, same cause. Listmonk's OIDC sign-in matches and auto-creates accounts by the
emailclaim.internal/kanidmnever setsmailon a person, so kanidm sends no email claim. A member's first sign-in to newsletters is likely to fail too. The door legs have never run, so this is unproven.The decision
What email-shaped identity does a member wear in a service that keys people by email?
The #1535 ruling says
X-Idss-Identityis the kanidm username, and the glossary says identity lives in the IdP, not the mailbox. Neither answers this.Option 1 (recommended): the member's fixed address,
<folded member slug>@<apex>The glossary already defines this under Mailbox: a member's fixed address, never reissued to another person. Use it as the email-shaped identity whether or not the Mailbox has been claimed.
mailat create, and backfill existing persons. The OIDCemailclaim then carries it, so Listmonk matches its pre-provisioned account.X-Idss-Email) besideX-Idss-Identity.X-Idss-Identitystays the kanidm username, so the #1535 ruling is untouched.X-Idss-Emailas its forward-auth header.GRIST_DEFAULT_EMAIL, the row-level rule, the health keys and the per-person grant all use the address.provisionOperatorsends the address asemailand the display name asname.whakatohea-demohas any.Option 2: ask for a real email when a member is added
This is a new required field in add-member and invite, and a change to the members flow and wireframes (
needs-design). It ties a member's identity to an outside mailbox, which the glossary avoids. It is the larger change and blocks #1547 longer.Not viable: grant at first sign-in instead
Grist creates a first-sign-in account keyed by the bare username, and its API still refuses to grant to that key.
Also owed, whichever option is ruled
newslettersvccaptures Listmonk's refusal body and logs the reconcile error, asf541461cdid for Grist (GOTCHAS #245).GOTCHAS.mdentry: services that key people by email, and what they do with a bare username.Acceptance
proof-memberandproof-operatorread as applied on data-collections and newsletters afterredeploy-services.usersholdsproof-operatorat Super Admin.Listmonk refusal reason now confirmed. Replaying the product's own refused create request on the kept droplet
170.64.164.213returns400 {"message":"Invalid fields: email"}, and theuserstable still holds 2 rows. The ticket body said the reason was not captured; it now is.334f220clands the ruling-independent half:newslettersvccarries Listmonk's refusal body in its error and logs it, and GOTCHAS #246 records the hazard. ThefakeListmonkdouble still accepts an email-less create; whoever lands the ruling tightens it first so the pre-provision test goes red for the right reason.The drive's reporter reached the same diagnosis independently in #1581 (closed as a duplicate of this). Its evidence table is worth reading alongside:
surveyscleared at the redeploy,data-collectionswas already owed fromadd-memberonward, andnewslettersonly arrives with the redeploy so its reconcile had never run before.RULED by Ben, 2026-09-18: option 2. A member carries a REAL email address, asked for when the member is added. The synthesised fixed-address identity (option 1) is not taken.
This session is building it. The add-member form gains a required field, so the members flow and wireframe change in the same work and the frames go to Ben to read. Open sub-questions (the founding operator's email, members who already exist without one, the self-signup form) get a recommendation each once the surfaces are mapped.
Landed in
30faf8df— ADR 0251. Built as ruled (option 2).mail, written in the person create.ErrNoEmailOnRecord. Both doubles now refuse what the real services refused.X-Idss-Identitystays the username. The gate answersX-Idss-Emailfor data-collections and the route hands it to Grist as the identity; no email on record is a worded refusal.Go suite, the full control-panel suite (1688 tests) and a real
caddy validateof the new route line pass. Unproven live until #1547 run 13 — in particular whether the control plane's kanidm account may writemailin a create, and whether Listmonk's OIDC sign-in finds the pre-provisioned account by the email claim.Follow-ups: #1583 (self-signup asks the email), #1584 (record or correct an email on member detail; needs design).
Reported to Ben with the change: a by-hand person with no email can no longer be added, and two members cannot share one inbox. Making the address optional is the small repair if he wants it.
ben@matou,nzpassed validation and was seeded as the admin's email #1703