Founding sign-in: lower the kanidm credential floor to any — passwords commit, passkeys offered not required (ADR 0170) #485
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.
Dependencies
No dependencies set.
Reference
Matou/idss#485
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?
Why now
Ben ruled 2026-08-12: founding must not require a passkey. Real founders on Linux
laptops can lack any platform authenticator (the DDR 0163 ceremony window has no
synced passkey store), dead-ending S12. But kanidm 1.10's default account
policy on
idm_all_personssetscredential-type-minimum = mfa, so today a barepassword refuses to commit (
can_commit:false, MfaRequired) — proven twice:docs/spike-findings/smoke-idp-178.md:78anddocs/spike-findings/mail-apppw-320.md:127.This also contradicts the member signup contract ("passkey recommended, never
required" —
internal/member/signup.gostory 7), whose password fallback the IdPcurrently refuses.
The ruling is the middle path, not dropping passkeys: lower the policy floor
to
anyso kanidm's own reset page offers both a password and a passkey;passkeys stay offered and recommended everywhere, never required. ADR 0046's
token/reset machinery is untouched — only the credential class the ceremony must
produce widens.
Stories
1. Mint ADR 0170 (text below)
docs/adr/0170-credential-floor-is-any-passkeys-offered-not-required.md.origin/mainat commit time; renumber iftaken (the 0145 collision lesson).
STATUS.mdin the same commit (CLAUDE.md rule).2. Policy push lands in both gateway renders
as the
kanidm-brand-pushoneshot ininternal/clan/vmguest.go/frontdoor.go):kanidm group account-policy credential-type-minimum idm_all_persons anyidm_admin(the mail-apppw-320 lab used recovered
idm_adminfor exactly this op), notdomain
admin(that identity is for domain ops only; kanidm masksunauthorized as "Item not found" —
vmguest.go:432comment).vmguest_test.go,frontdoor_test.go) assertthe policy line, mirroring how the brand-push lines are asserted; the oneshot
fails loud (non-zero) if the CLI call fails, consistent with brand-push.
3.
AwaitPasskeygeneralises toAwaitCredentialinternal/founding/handoff.go+internal/fleetwire/enrolment.go: the S12advance gate becomes "any committed credential", i.e. passkey or password.
passkeys-attribute read(
internal/kanidm/kanidm.go:283HasPasskey) OR a committed primarycredential via
GET /v1/person/<id>/_credential/_status. Note: that endpointanswered
{"creds":[]}on 1.10 for passkeys; a password primary credentialmay well appear there — but this is unverified live. Implement the OR so
the passkey path cannot regress either way.
token expiry; never fabricate advance (ADR 0100 — the e2e sink still times
out to the token-expired sentinel).
data-status="passkey-enrolled"→"credential-enrolled"consistently acrossapp/src/components/founding/FoundingHandOff.vue,app/tests/e2e/fixtures/foundingPrefix.ts, and the wireframe frame (story 4).enrolment_test.go).4. S12 copy + wireframe stay in contract
FoundingHandOff.vuecopy: "A sign-in window opened — create your passkeythere" → neutral sign-in wording, passkey-first, e.g. "A sign-in window
opened — create your sign-in there: a passkey if your device supports one, or
a password."
docs/ux/wireframes/p1-founding/p1-s12-hand-off.htmlupdated in the samecommit (the wireframe is the UI contract).
5. Member password fallback is real now
signup.gostory 7 already offers the fallback. With thepolicy floor at
any, a member following the branded reset link can commit alone password. Add/extend a test asserting the contract still records
PasskeyOffered=true, PasskeyRequired=false, and note in the ADR that theIdP and the contract now agree.
6. e2e stays green
app/tests/e2e/fixtures/ceremony.ts) remains theprimary founding spec — do not remove the virtual-authenticator machinery
(Nextcloud OIDC spec reuses it, page-scoped).
data-statusassertion per story 3.gating for this ticket.
Live-proof gate (drive residue — stays open until proven)
Final acceptance is the next founding drive: complete the ceremony with a
password only and watch
AwaitCredentialadvance S12. If_credential/_statusstill answers empty on kanidmd 1.10.3 for a committedpassword, the wait will time out visibly (correct DDR 0138 behaviour) — file
a follow-up with the drive log rather than working around it. Eyeball the
screenshots (drive-15 FALSE-green lesson).
Out of scope
brandkit/idp_override.goCSS.criterion).
data-statusrename.Proposed ADR 0170 text
References
wait + re-mint), DDR 0163 (CA-pinned ceremony window), ADR 0100 (never
fabricate), ADR 0122 (wireframe = contract).
docs/spike-findings/smoke-idp-178.md,docs/spike-findings/mail-apppw-320.md.Customising.
close-report for #485 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
{token:...}; real kanidm answers[CUSessionToken, CUStatus]as an array, and even fixed the commit is MFA-policy-refused — by-hand temp_password 400s live (invite-member leg) #662{token:...}; real kanidm answers[CUSessionToken, CUStatus]as an array, and even fixed the commit is MFA-policy-refused — by-hand temp_password 400s live (invite-member leg) #662