files: a PUBLIC share link (Nextcloud /s/<token>) is bounced to the community sign-in — the front-door gate does not exempt Nextcloud's public-share paths #1720
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#1720
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 (Ben, hand re-founding 2026-09-22)
In Files (Nextcloud) Ben created a public share link for a document and opened it: instead of the shared file, the community sign-in page. Verified from outside:
GET https://files.<apex>/s/<token>→ 302 →https://<apex>/authz/signin?rd=….Cause
ADR 0074's browser gate fronts every files path except
FilesExemptPaths(internal/clan/files.go:98-104): DAV,/public.php/dav*,/status.php, the users OCS subtree. Nextcloud's public-share browser paths are not in it:/s/<token>(and/index.php/s/<token>), the share's download/preview routes under/s/<token>/download,/apps/files_sharing/publicpreview/*, the public-share WOPI open for Collabora (/apps/richdocuments/public*), and/public.php/webdavis exempt but/s/— the thing a person clicks — is not. So a public link is impossible on any community: a feature Nextcloud offers, IDSS silently breaks at the door.Decision needed (sign-in trust surface — gate exemptions widen what an anonymous visitor can reach)
Proposed default: exempt the public-share browser paths on the files port —
/s/*,/index.php/s/*,/apps/files_sharing/publicpreview/*,/apps/files_sharing/ajax/publicpreview*,/apps/richdocuments/public*— with the same reasoning the DAV exemptions carry: these paths are credential-governed by Nextcloud itself (a share token the owner minted, optionally password-protected/expiring; nothing is reachable without a valid token), and ADR 0258 already lets a service own the access decision on paths where the browser session cannot apply. A suspended member's shares: Nextcloud disables them with the account (member-orbit), so the suspend story holds. Alternative: keep them gated and remove/hide the share-link feature in Nextcloud (shareapi_allow_links = no) so the UI never offers what the door refuses — honest but loses the feature.The same question exists for every co-host that has public links (Paperless share links, Omeka public items are already public by design, LimeSurvey public surveys — check LimeSurvey now, a survey nobody can answer without a community account is useless).
Test: seam — the rendered front door lists the paths; drive — the member-files leg mints a public link and fetches it session-less (200, file bytes), and a bogus token still 404s from Nextcloud, not the gate.
Why human
Ruling on which anonymous paths the front door admits (ADR 0074/0258 widening). Proposed default above.
RULED by Ben 2026-09-22 — exempt Nextcloud's public-share browser paths on the files port
Build the proposed default: add to
FilesExemptPaths(internal/clan/files.go) —/s/*,/index.php/s/*,/apps/files_sharing/publicpreview/*,/apps/files_sharing/ajax/publicpreview*,/apps/richdocuments/public*— with the DAV exemptions' reasoning written beside them: credential-governed by Nextcloud (owner-minted share token, optional password/expiry; nothing reachable without a valid token), ADR 0258 lets the service own the access decision where the browser session cannot apply; a suspended member's shares die with the account (member-orbit). Verify the exact upstream route list against the pinned Nextcloud version before landing (a missed route = a half-working link).Tests as in the body: rendered front door lists the paths; member-files leg mints a public link and fetches it session-less (200, bytes) and a bogus token 404s from Nextcloud, not the gate. ADR 0074/0258 amendment +
docs/architecturefront-door diagram in the same commit.Follow-up (separate ticket, same ruling shape): audit every co-host with public links — LimeSurvey public surveys first (a survey nobody can answer without an account is useless), Paperless share links, Omeka.
Sign-in trust surface — ruled by Ben directly. Relabelled
ready-for-agent.swarm-claim host=elitebook-distributed-server-03 run=29839
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1720 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope