feat(sessions): material downloads unlock when the session ends

Private materials bucket + RLS read gate (admins/own speakers anytime, all
attendees after the scheduled slot end, event-local Amsterdam time); always
visible uploaded-state, locked download panel, authenticated client downloads,
admin signed URLs. 12 new assertions in material_time_lock_tests.sql.

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-10-21 18:57:15 +02:00
1 parent 7776145a77
commit a8f3f5b8e1
13 files changed
+334 -30

No files matched your search

+7 -4
View File
@@ -366,7 +366,10 @@ enqueuing, claiming, completing and dead-lettering all go through the RPCs in
## Storage
A **`materials`** bucket (public read) stores session material. Speakers + admins
can write (see [rls.md](./rls.md#storage--materials-bucket)). A session's
`material_path` points at the object; the public URL is
`/storage/v1/object/public/materials/{material_path}`.
A **`materials`** bucket (**private** since `20261021180000_material_time_lock.sql`)
stores session material. Speakers + admins can write (see
[rls.md](./rls.md#storage--materials-bucket)). A session's `material_path`
points at the object. Files are fetched through **authenticated** storage
requests (attendee app) or short-lived signed URLs (admin app); the read policy
releases a file to plain attendees only after the session's scheduled end —
`/storage/v1/object/public/...` URLs no longer serve materials.