1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-12-04 18:56:44 +01:00
archivr/crates
TheGeneralist 0833a6a2f2
fix: enforce entry visibility on every by-uid endpoint
Hiding an entry from a role (collection membership bits) only filtered the
list, search and children queries; the entry could still be fetched, edited,
deleted, summarized or tagged by uid, and its artifacts and blobs downloaded.

- database::caller_can_access_entry / caller_can_access_blob share one SQL
  predicate with the list queries (children inherit the parent's membership;
  ADMIN/OWNER see everything; requires_auth only gates guests)
- routes::ensure_entry_visible gates entry detail, summary GET/POST, artifacts,
  media tokens, favicon, tags, entry collections, rename, delete, thread title,
  rearchive and collection membership; blobs use the blob rule
- hidden entries are a 404, indistinguishable from unknown uids
- tag tree counts only include entries visible to the caller
- rearchive of an unknown entry is now a 404 for everyone (no doomed job row)
- test_support: guest_session is a true guest-only account; shared HTTP
  fixture helpers moved out of jobs.rs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-09 22:06:58 +02:00
..
archivr-cli feat: add YouTube subtitles, local transcription, self-updating yt-dlp/Deno, X Article and thread titles (#39) 2026-10-05 19:41:06 +02:00
archivr-core fix: enforce entry visibility on every by-uid endpoint 2026-10-09 22:06:58 +02:00
archivr-server fix: enforce entry visibility on every by-uid endpoint 2026-10-09 22:06:58 +02:00