founding S2: the operator email accepts a COMMA — ben@matou,nz passed validation and was seeded as the admin's email #1703

Closed
opened 2026-09-21 20:10:56 +00:00 by ben · 3 comments
Owner

What

At Community info Ben typed ben@matou,nz (comma for dot). Continue was enabled, the draft carried it, and the deploy log reads admin: operator admin seeded from declarative config: ben@matou,nz. The manual testing guide §6.3 expects bad emails refused inline.

Why it matters

The operator's email is an identity fact: services match or mint accounts on it (Paperless email-match ADR 0255, Grist's install admin #1536, Listmonk), invitations and recovery mail go to it. A malformed one is silently wrong everywhere and there is no screen to correct it after founding.

Fix

  • Validate the operator email in the founding page AND in the helper/orchestrator (never trust the renderer): reject anything outside a conservative addr-spec — at minimum no comma/space, exactly one @, a dotted domain. Inline plain-language error, Continue disabled.
  • Same rule on the control panel's invite and member-email fields (one shared validator).
  • Check whether an operator can correct their email post-founding on each identity path; if not, say so in the ticket's close-report and file the gap.

Found on the hand re-founding of Whakatōhea Demo 2026-09-21 (rented + IDIP). Build: idss_0.1.0_amd64.deb sha256 ecff1f99…6e87febc, source 5b910ef3.

## What At Community info Ben typed `ben@matou,nz` (comma for dot). Continue was enabled, the draft carried it, and the deploy log reads `admin: operator admin seeded from declarative config: ben@matou,nz`. The manual testing guide §6.3 expects bad emails refused inline. ## Why it matters The operator's email is an identity fact: services match or mint accounts on it (Paperless email-match ADR 0255, Grist's install admin #1536, Listmonk), invitations and recovery mail go to it. A malformed one is silently wrong everywhere and there is no screen to correct it after founding. ## Fix - Validate the operator email in the founding page AND in the helper/orchestrator (never trust the renderer): reject anything outside a conservative addr-spec — at minimum no comma/space, exactly one `@`, a dotted domain. Inline plain-language error, Continue disabled. - Same rule on the control panel's invite and member-email fields (one shared validator). - Check whether an operator can correct their email post-founding on each identity path; if not, say so in the ticket's close-report and file the gap. Found on the hand re-founding of Whakatōhea Demo 2026-09-21 (rented + IDIP). Build: `idss_0.1.0_amd64.deb` sha256 `ecff1f99…6e87febc`, source `5b910ef3`.

swarm-claim host=matou-dev-server-01 run=29518
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=29518 (automated multi-host claim — lowest live claim id works this ticket)

Ruled by agent under ADR 0174 — veto anytime.

Decision: apply the shared inline email guard on the control panel's by-hand member-email field (this ticket's second bullet) as a malformed-shape-only check — it fires only on a non-empty, badly-shaped address (a comma for a dot). A missing or already-held address stays the seam's refusal, shown verbatim (#1580's "the screen validates nothing — the seam refuses" ruling, and its two tests, are preserved: empty → the seam's NO_EMAIL, duplicate → EMAIL_IN_USE).

Why it's a two-way door: revertible by a later commit (drop the computed + guard), and proven by tests. #1703 (newer, Ben's own founding-trial ticket) explicitly asks for the shared validator on these fields; this narrows only the "malformed" clause of #1580 to a client-side format check, leaving existence/duplicate authority with the seam exactly as #1580 requires — so the two rulings compose rather than conflict.

What proves it: dashboard/tests/unit/inviteScreen.test.ts — the new #1703 case (comma refused inline, Create disabled, nothing sent; fixing it lets the seam take it) alongside the unchanged #1580 cases (empty → seam NO_EMAIL; already-held → seam EMAIL_IN_USE), all green.

**Ruled by agent under ADR 0174 — veto anytime.** **Decision:** apply the shared inline email guard on the control panel's by-hand member-email field (this ticket's second bullet) as a **malformed-shape-only** check — it fires only on a non-empty, badly-shaped address (a comma for a dot). A **missing** or **already-held** address stays the seam's refusal, shown verbatim (#1580's "the screen validates nothing — the seam refuses" ruling, and its two tests, are preserved: empty → the seam's `NO_EMAIL`, duplicate → `EMAIL_IN_USE`). **Why it's a two-way door:** revertible by a later commit (drop the computed + guard), and proven by tests. #1703 (newer, Ben's own founding-trial ticket) explicitly asks for the shared validator on these fields; this narrows only the "malformed" clause of #1580 to a client-side format check, leaving existence/duplicate authority with the seam exactly as #1580 requires — so the two rulings compose rather than conflict. **What proves it:** `dashboard/tests/unit/inviteScreen.test.ts` — the new #1703 case (comma refused inline, Create disabled, nothing sent; fixing it lets the seam take it) alongside the unchanged #1580 cases (empty → seam `NO_EMAIL`; already-held → seam `EMAIL_IN_USE`), all green.

close-report for #1703 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1703,
  "status": "success",
  "commits": [
    "cef28743ad6a90a20d34835a59bd959559df6ad9"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingCommunityDetails.vue",
    "app/src/i18n/en.ts",
    "app/src/i18n/es.ts",
    "app/src/i18n/fr.ts",
    "app/src/i18n/nl.ts",
    "app/tests/unit/foundingCommunityDetailsEmail.test.ts",
    "dashboard/src/components/members/InviteScreen.vue",
    "dashboard/tests/unit/inviteScreen.test.ts",
    "internal/founding/email.go",
    "internal/founding/email_test.go",
    "internal/founding/orchestrator.go",
    "packages/ui-kit/src/emailAddr.ts",
    "packages/ui-kit/src/index.ts",
    "packages/ui-kit/tests/unit/emailAddr.test.ts"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    },
    {
      "command": "packages/ui-kit: vitest run",
      "exit_code": 0
    },
    {
      "command": "dashboard: vitest run",
      "exit_code": 0
    },
    {
      "command": "app: vitest run --exclude rendererBuild (boot.test.ts + updatesFeed.test.ts fail only for lack of `go` on the app subprocess PATH — pre-existing, identical on a clean tree, unrelated to this change)",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json (app, dashboard, ui-kit)",
      "exit_code": 0
    },
    {
      "command": "eslint (all changed files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Validate the operator email in the founding page AND in the helper/orchestrator (never trust the renderer); conservative addr-spec (no comma/space, one @, dotted domain); inline plain-language error, Continue disabled": "One shared validator isValidEmailAddr (packages/ui-kit/src/emailAddr.ts) + Go twin founding.ValidEmail (internal/founding/email.go): reject rather than bless (no whitespace/comma, exactly one @, non-empty local, dotted domain with a >=2-letter letters-only TLD). FoundingCommunityDetails.vue shows inline data-status=operator-email-error (i18n operatorEmailError x4) and disables Continue for a non-empty malformed email; Orchestrator.SaveDetails refuses a non-empty malformed Operator.Email with ErrIncompleteDraft so a mangled address never reaches deploy seeding. Proven: emailAddr.test.ts, email_test.go, TestSaveDetails_RefusesMalformedOperatorEmail, foundingCommunityDetailsEmail.test.ts.",
    "Same rule on the control panel's invite and member-email fields (one shared validator)": "InviteScreen.vue by-hand member-email field uses the same isValidEmailAddr guard: a malformed shape shows inline data-field=email-format-error and disables Create; MISSING / already-HELD stay the seam's verbatim refusal (#1580 preserved). Reconciliation of #1703 vs #1580 ruled on the ticket under ADR 0174. Proven: the new #1703 case in dashboard/tests/unit/inviteScreen.test.ts (all 19 green, incl. the unchanged #1580 cases).",
    "Check whether an operator can correct their email post-founding on each identity path; if not, say so and file the gap": "Checked: no control-panel screen corrects the operator's identity/admin email on either identity path (kanidm or IDIP) — AlertContactCard edits only the community-level Notifier alert contact, not the admin account's identity email services key on. Gap filed as #1714 (bug, needs-design)."
  },
  "summary": "The operator email is validated as an identity fact by one shared conservative addr-spec on the founding page, in the orchestrator (never trusting the renderer), and on the control panel's by-hand member-email field, so a comma-for-dot can no longer be seeded as the admin's email.",
  "reason": "",
  "blockers": []
}
**close-report** for #1703 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1703, "status": "success", "commits": [ "cef28743ad6a90a20d34835a59bd959559df6ad9" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingCommunityDetails.vue", "app/src/i18n/en.ts", "app/src/i18n/es.ts", "app/src/i18n/fr.ts", "app/src/i18n/nl.ts", "app/tests/unit/foundingCommunityDetailsEmail.test.ts", "dashboard/src/components/members/InviteScreen.vue", "dashboard/tests/unit/inviteScreen.test.ts", "internal/founding/email.go", "internal/founding/email_test.go", "internal/founding/orchestrator.go", "packages/ui-kit/src/emailAddr.ts", "packages/ui-kit/src/index.ts", "packages/ui-kit/tests/unit/emailAddr.test.ts" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/founding/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./internal/founding/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 }, { "command": "packages/ui-kit: vitest run", "exit_code": 0 }, { "command": "dashboard: vitest run", "exit_code": 0 }, { "command": "app: vitest run --exclude rendererBuild (boot.test.ts + updatesFeed.test.ts fail only for lack of `go` on the app subprocess PATH — pre-existing, identical on a clean tree, unrelated to this change)", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json (app, dashboard, ui-kit)", "exit_code": 0 }, { "command": "eslint (all changed files)", "exit_code": 0 } ], "criteria": { "Validate the operator email in the founding page AND in the helper/orchestrator (never trust the renderer); conservative addr-spec (no comma/space, one @, dotted domain); inline plain-language error, Continue disabled": "One shared validator isValidEmailAddr (packages/ui-kit/src/emailAddr.ts) + Go twin founding.ValidEmail (internal/founding/email.go): reject rather than bless (no whitespace/comma, exactly one @, non-empty local, dotted domain with a >=2-letter letters-only TLD). FoundingCommunityDetails.vue shows inline data-status=operator-email-error (i18n operatorEmailError x4) and disables Continue for a non-empty malformed email; Orchestrator.SaveDetails refuses a non-empty malformed Operator.Email with ErrIncompleteDraft so a mangled address never reaches deploy seeding. Proven: emailAddr.test.ts, email_test.go, TestSaveDetails_RefusesMalformedOperatorEmail, foundingCommunityDetailsEmail.test.ts.", "Same rule on the control panel's invite and member-email fields (one shared validator)": "InviteScreen.vue by-hand member-email field uses the same isValidEmailAddr guard: a malformed shape shows inline data-field=email-format-error and disables Create; MISSING / already-HELD stay the seam's verbatim refusal (#1580 preserved). Reconciliation of #1703 vs #1580 ruled on the ticket under ADR 0174. Proven: the new #1703 case in dashboard/tests/unit/inviteScreen.test.ts (all 19 green, incl. the unchanged #1580 cases).", "Check whether an operator can correct their email post-founding on each identity path; if not, say so and file the gap": "Checked: no control-panel screen corrects the operator's identity/admin email on either identity path (kanidm or IDIP) — AlertContactCard edits only the community-level Notifier alert contact, not the admin account's identity email services key on. Gap filed as #1714 (bug, needs-design)." }, "summary": "The operator email is validated as an identity fact by one shared conservative addr-spec on the founding page, in the orchestrator (never trusting the renderer), and on the control panel's by-hand member-email field, so a comma-for-dot can no longer be seeded as the admin's email.", "reason": "", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1703
No description provided.