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.
This commit is contained in:
1 parent
a2b87602b4
commit
d4e4637e7c
13 files changed
+334
-30
No files matched your search
@@ -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.
|
||||
Reference in new issue
Block a user