document-archive: an operator granted before their first sign-in lands as a SECOND, member-role account — the pre-provisioned superuser has no email for allauth to match #1604
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#1604
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 16 of the #1547 roles proof (
20260918T200406Z, 40/45) —operator-document-archivered:Paperless' user table on the kept box:
Cause
documentarchivesvc.provisionOperatorcreates a username-only account on the reasoning that the auto-signup "links by the preferred_username claim". Paperless signs people in through django-allauth, which knows a returning person by their social account and, for a person who has none yet, by their verified email — and only when the provider app'semail_authenticationis on. A username matches nothing, so allauth signs the operator up as a NEW user and de-duplicates the name toproof-operator3. The pre-provisioned superuser is never reached. kanidm's email does arrive verified (account_emailaddress.verified = ton the box).Fix
email_authentication: trueon the allauth provider app (kanidm is the community's only, own IdP; one address names one person, ADR 0251);ErrNoEmailOnRecord, the role reads owed), and records the address on an existing email-less account;Being landed by the #1547 babysitting session.
Landed on main as
d3e545c9: the render setsemail_authentication, the port pre-provisions WITH the person's email (none on record reads owed), records it on an email-less account, and refused writes carry Paperless' own reason. The double now matches a sign-in the way allauth does. Live proof is the next #1547 fire'soperator-document-archive. Closing.