mail: verify the ADR 0116 app-password capability against the pinned kanidm (#229 split) #320
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#320
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
Split from #229 (Ben's 2026-08-06 scope ruling).
What to build
ADR 0116 rests on kanidm minting per-app passwords for mail clients (IMAP/SMTP auth without the primary credential). That capability has never been exercised against the pinned kanidm build. Run it live in the lab: mint an app password via kanidm self-service (MAIL-M4's external door), authenticate a mail client through Stalwart's LDAP directory path, and post the evidence. If the pinned kanidm cannot do it, that is an ADR 0116 amendment — surface it, don't work around it.
Acceptance
ADR 0116 app-password capability: CONFIRMED against the pinned kanidm. No amendment needed.
Exercised live end to end against the pinned build (kanidm 1.10.3
kanidmWithSecretProvisioning_1_10, nixpkgs173d0ad7) with a real Stalwart 0.15.5 front, all from the pinned store on one host (a single-binary capability question — no clan-lab droplet required).Acceptance met, literally. A member minted an app password via kanidm self-service (SCIM
POST /scim/v1/Person/<id>/Application/_create_password) and it authenticated IMAP LOGIN + SMTP AUTH — both succeed through Stalwart's kanidm LDAP directory:The credential is scoped — it fails as a plain (non-
app=) bind and on a wrong secret (LDAP 49).Findings the mail backend (#229 / #318) must honour (full report:
docs/spike-findings/mail-apppw-320.md):kanidmCLI has noapplicationverb in 1.10.3. Founding must create themailapplication over the adapter's REST path (POST /scim/v1/Application), not the provision CLI. The member-facing door stays kanidm's own self-service web UI (ADR 0116's "no custom OurCloud screen").directory.<id>.bind.auth.search = false. An app-password bind yields an anonymous-level session that can't read the user's ownmail/memberof; this was the exact difference between535 invalidand success.idm_mail_serversgroup (idm_acp_mail_serversgrants read ofname/spn/mail/memberof) — bound viadn=tokenit otherwise sees only itself.internal/clan/mail.go, which setsbind.dn/bind.secretbut not the app-context template or base-dn):base-dn=dc=<domain>,bind.dn="dn=token"+bind.secret=<mail-app api-token>,bind.auth.method="template",bind.auth.template="name=?,app=mail",bind.auth.search=false._create_passworduntilreauth); an admin cannot mint on the member's behalf (idm_acp_self_write, target=self), matching ADR 0116's self-service ruling.Landed on
origin/mainasebb9bc4; STATUS.md lead + header updated.