Skip to content

Re-sign encoded family photo URLs as the current viewer - #599

Merged
NewWorldVenture merged 1 commit into
mainfrom
codex/media-reference-canonicalization-20260927
Sep 27, 2026
Merged

NewWorldVenture merged 1 commit into
mainfrom
codex/media-reference-canonicalization-20260927

Conversation

@NewWorldVenture

@NewWorldVenture NewWorldVenture commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

A stored signed photo URL with an encoded bucket name (family%2Dmedia) was treated as an external image and rendered without checking the current viewer. The media parser now decodes route segments before recognizing the bucket, then validates and decodes the object path once. Both canonical and encoded references use the viewer's Storage signing request; denial renders no image. Other buckets and external image URLs retain their behavior.

Validation: the new unit cases fail on the old parser (12 failures, 34 passing controls) and pass with the repair (46/46 focused cases). Actual React, Supabase SDK, cookies and FamilyMediaImg browser tests reproduce both encoded failures on the old parser and pass all 11 ownership/hydration cases with the fix. Scoped strict types and lint pass. The complete source gates pass: 20,735 unit tests across 1,623 files, the 247-page production build, generated-route strict types, and lint with 15 existing warnings. All 5,194 files and modes were verified before and after; only five audit documents differ between the tested tree and this commit. Hosted CI and this parser's production rollout remain pending.

The five audit documents record main576's verified production rollout, corrected worker CI success (1,764 E2E and 20,701 unit cases across three zones), and the remaining media/provider limitations. Only the three verified worker/support rows close; all permanent IDs and Claude page claims remain intact. The underlying public bucket finding remains open. Browser transport uses synthetic auth, Storage replies and image bytes; this does not claim a live Storage RLS bypass or production private-image verification.

@vercel

vercel Bot commented Sep 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
bubaly Ignored Ignored Sep 27, 2026 4:56pm UTC

Request Review

@NewWorldVenture
NewWorldVenture marked this pull request as ready for review September 27, 2026 17:00
@NewWorldVenture
NewWorldVenture merged commit e70be83 into main Sep 27, 2026
7 checks passed
NewWorldVenture pushed a commit that referenced this pull request Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant