document-archive: a plain member's Paperless account has no permissions (403 on sign-in) — no members group is ever created #2032
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#2032
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
On a deployed Document archive (Paperless-ngx), a plain member signs in and gets a blank app with a 403 on
/api/ui_settings/("You do not have permission to perform this action"). Stewards work, because the role reconciler makes them superusers. Everyone else has an account with no permissions at all.Seen on whakatohea-demo, 2026-09-30, by a member (Emiliana) during wānanga preparation.
Why
PAPERLESS_SOCIAL_ACCOUNT_SYNC_GROUPS=true), and the sign-in carriesgroups: ["members"](andpgroups: ["members"]). But Paperless only assigns groups that already exist, and nothing in IDSS ever creates themembersgroup or gives it permissions. The demo'sauth_grouptable was empty.Demo fix (hand-applied 2026-09-30)
membersgroup created with: view on documents, tags, correspondents, document types, storage paths, custom fields, notes and tasks; add document and add note; own saved views and UI settings. No delete, change-others or admin rights.membersgroup view on every new document.Ask
Make the document-archive port do this itself on every community, on both the kanidm and IDIP paths:
membersgroup with a defined, minimal permission set, re-runnable, alongside the existing role reconciler.owner/permission defaults. Ben to rule whether member-visible is the right default, or whether uploads stay private to the uploader until shared.Ruling (Ben, 2026-09-30, in session): for now, every new document is visible to all members by default. That's the behaviour already hand-applied on whakatohea-demo (workflow 1). Build the port's default to match.
The demo's one exception still stands: documents from records the Community archive keeps private (the Alexander Turnbull Library manuscripts) stay stewards-only (workflow 2). How the port expresses such an exception is part of this ticket's design.
swarm-claim host=bens-mac-04 run=36684
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Ben delegated how the port expresses the stewards-only exception to this
ticket's design (his ruling above). The ruling:
The document-archive port expresses the private-records carve-out through a
conventional marker tag named
stewards-only(case-insensitive). The portreconciles two workflows on every community, re-runnably:
IDSS · members see new documents(order 100) — trigger Document Added,all sources; action assign the
membersgroup VIEW. This is Ben's ruleddefault: every new document is member-visible.
IDSS · stewards-only records stay private(order 200, runs after thefirst) — trigger Document Added, all sources,
filter_has_tags= thestewards-onlytag; action remove themembersgroup VIEW. The portcreates this workflow only when a
stewards-onlytag exists in theinstance; a community with no such tag gets a truthful no-op (no carve-out to
express), never an empty workflow.
The port never deletes a foreign workflow, so whakatōhea-demo's
hand-applied Alexander Turnbull Library carve-out (2026-09-30) stands untouched;
a community adopting the convention tags its private records
stewards-only.Why two-way door: revertible by a later commit (rename/retire the
convention, delete the workflows) and provable by the seam test (the port
issues the exact idempotent create/converge calls against a faithful Paperless
double) plus the clan-lab drive leg (a plain member sees a steward-uploaded
document; a
stewards-only-tagged one stays hidden). It only ever NARROWSmember visibility, never widens a security posture.
close-report for #2032 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope