Jump to content

MindAttic.Authentication/RELEASE

From MindAttic Docs

MindAttic.Authentication — Release charter

The one finish line this repo is working toward. Every open ticket in this repo sits under one of the epics below, and every epic is part of the milestone. Work that does not fit is out of scope until this milestone is reached (owner, 2026-11-27, MAT-T319).

1. What this is

A Razor Class Library that gives MindAttic's ASP.NET Core apps (Gadfly, IdeaCms, IdiotProof, Prose, ThinkTank, Tutor) one hardened sign-in: Argon2id passwords, TOTP MFA, reset, invitations, organizations and audit logging.

2. The milestone: MindAttic.Authentication proven and stable

  • Milestone: MS-28, "Authentication proven and stable"
  • Published means: the MindAttic.Authentication package in C:\LocalNuGet (9.x, or the next whole-number major if the accept gate changes the public surface).
  • The natural stopping point: the features are already built (9.0.0: MFA, reset, organizations, invitations). What is missing is proof: BIBLE §6 lists MFA enrollment, password change, bootstrap seeding, cookie and Blazor revalidation, the /_ma-auth endpoints, the middleware and the dev bypass as "built but not unit-tested". Covering those, adding the one host hook a consumer (Gadfly) needs, and bringing the README up to date makes a security library that is finished and can be trusted.

3. Done when (acceptance checks)

  1. build: MindAttic.Authentication.slnx builds clean on main.
  2. harness: the suite covers every service and web component listed as partial in BIBLE §6.
  3. exists: the MindAttic.Authentication package for the released version in C:\LocalNuGet.
  4. signoff: the owner reads the README and BIBLE §6 and finds no "partial" row left.

4. Epics, in priority order

Priority Epic (ticket) What it delivers Features
900 M.AUTH-T51 Security invariants under test Every security-critical path has failure-case tests M.AUTH-T53 Account service tests (990), M.AUTH-T54 Session revocation tests (980), M.AUTH-T55 HTTP surface tests (970)
800 M.AUTH-T52 Host integration and docs Hosts can refuse an invitation accept; the MFA page works in every host; docs match the code; the proven release ships M.AUTH-T56 Invitation accept gate (890), M.AUTH-T57 Current documentation (880), M.AUTH-T66 MFA setup works in every host (870), M.AUTH-T67 Polish and release 9.x (860)

The complete product, built and unbuilt, is in SPEC.md. After this milestone come MS-134 (Authentication 10: fail-closed wiring and provisioning, epic M.AUTH-T107 at 700) and MS-135 (Authentication 11: passkeys, epic M.AUTH-T117 at 600), the finished product.

5. Out of scope (not before this milestone)

  • The provisioning CLI, middleware-order filter and signed pack wait for MS-134; WebAuthn / passkeys wait for MS-135. Both milestones are approved and queued after this one.
  • Permanent exclusions (cross-app SSO, moving the crypto into MindAttic.Cryptography, upgrading consumers from this repo, open-ended sweeps) are on SPEC §2.2 "Never in the product".

6. Current verified state

  • 9.0.0: email invitations (bd39fe2, M.AUTH-T35); organizations and memberships 8.0.0 (d352e6e, M.AUTH-T34).
  • Hardening landed 2026-11: MFA IP throttle (029aebf), TOTP replay race (6c65463), lockout counters kept through MFA (b540f45), options floor validation (99b81e9), case-insensitive recovery codes (56e0bcd).
  • Tests exist for the hasher, PHC, secrets, lockout, audit, login and ConfirmMfa, invitations, organizations, password policy and reset, alerts, SMTP, TOTP and user admin (tests/MindAttic.Authentication.Tests).

7. Decision record

  • 2026-11-27: charter drafted from the README, BIBLE, SECURITY_SPEC and the open tickets. Legion vote: Approve, 9 of 9 (plurality quorum, 1.0). No dissent.
  • Triage: 13 open: done 0, duplicate 0, wont-do 3 (sweeps), kept 10, 0 new tasks.
  • 2026-11-30 — MAT-T360 consolidation: 19 open → done 1 (M.AUTH-T58, f86c0f3), superseded 0, wont-do 0, kept 18; spec: built 31, active 14 tasks, next milestones 9 stories (MS-134, MS-135).
From MindAttic.Authentication/docs/RELEASE.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.