GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Migrate Matrix media to authenticated endpoints before the Synapse flag flips · Issue #1487 · OpenResilienceInitiative/ORISO-Frontend Open DescriptionAffected repos: ORISO-Frontend, ORISO-UserService, ORISO-Helm WhyORISO is switching Synapse's Six unsafe call sites, from an inventory of all four repos read at
ORISO-ElementCall is already safe — matrix-js-sdk is pinned at 38.4.0 in this repo and does support authenticated URLs. The capability is there and unused: the code hand-builds the path string instead. The risk that decides how we verify thisThe flip is self-concealing. Grandfathering is decided per media row at upload time, so media already in existing chats keeps working on the legacy path permanently. A post-flip smoke test on an existing conversation therefore passes. Only files uploaded after the flip fail — with The deploy looks clean, and then over the following days every new attachment, image and voice message silently arrives broken in counselling chats, and it gets reported as "the file disappeared", not as a regression. So: re-verification is only valid with freshly uploaded files. The sharpest instance
const accessToken = getValueFromCookie('keycloak'); const authorization = !skipAuth && accessToken ? { Authorization: `Bearer ${accessToken}` } : null; This works today only because the legacy media endpoint ignores authorization entirely. With E2EE permanently on, this is the path almost every attachment takes. It is therefore broken in two independent ways — wrong path and wrong token — and a path-only fix will not repair it. What to build
Order — and there is no dual-path window
The Helm change ( GoalEvery Matrix media fetch in ORISO uses an authenticated endpoint with the correct token, verified with freshly uploaded files, so that flipping the Synapse flag changes nothing an advice seeker or counsellor can notice. Acceptance criteria:
Reviewer test plan
Part of OpenResilienceInitiative/ORISO-UserService#1198. Inventory: QA retest on Dev, 18 Nov 2026Homer sent a fresh synthetic PNG through the normal Dev composer in Case 14. Lisa saw it in the same case and a normal media action returned HTTP 200 on the client media route. The test did not produce a browser download event, so downloaded-byte identity is unverified. Voice, server-side consumers and the remaining acceptance matrix are open. Current Dev follow-up with fresh App-TOTP: the asker used Download on the synthetic PNG uploaded after migration. The application-created download blob matched the original PNG byte for byte. The first probe of the inline preview had no blob. Other file kinds and a complete media matrix remain open. Dev receipt: the recipient reopened the synthetic case and used the attachment action twice. A browser download was generated on the second activation and the PDF bytes exactly matched the synthetic original. Together with the fresh PNG byte comparison and the exact fresh voice event playback after reload, this completes the three media-kind criterion. The two-activation behavior, legacy upload route and remaining token-level checks stay open. The exact v2.0.17 attachment regression supplied distinct synthetic Matrix and Keycloak credentials simultaneously and asserted that the request used the Matrix bearer and excluded the Keycloak credential. The release suite passed. Independent inspection of bearer provenance in a live browser request is still open. Installed Dev browser network retest: the synthetic Case 14 PDF returned HTTP 200 via Matrix client v1 media. Its bearer matched a successful Matrix session request and differed from the bearer on the authenticated application user-data GET. The downloaded bytes matched the inert fixture. The token comparison stayed in memory and the receipt records only equality. The test reused the synthetic post-migration PDF from the earlier controlled upload. Installed Dev configuration readback: enable_authenticated_media is true in both the Synapse ConfigMap and the file mounted in the running Synapse container. The remaining pre-flip false-flag reviewer check therefore cannot be verified on the current Dev runtime without a separate controlled environment. No flag or deployment was changed. The accepted media samples were created during this QA run after the migration. On a repeat of the synthetic PDF download, the authenticated 200 response returned same-length bytes that differed from the original and did not have a PDF header. The normal download immediately returned the exact plaintext fixture. No media bytes were retained beyond the comparison and temporary download cleanup. One-run Dev PDF verification joined the fresh Matrix send to the exact recipient row before and after reload. The authenticated download returned non-PDF wire bytes, and the browser output exactly matched the inert PDF. The send request did not use the m.room.encrypted event route. This proves file encryption and client decryption for that sample, while the separate encrypted-room repeat remains open. An authenticated Matrix state read verified Megolm room encryption in exact Dreambau Case 14, where the fresh image, PDF and voice uploads were previously tested. The same PDF event was visible after reload, its authenticated wire bytes differed from the original, and its in-app download decrypted to byte-exact plaintext. A second scoped test room also reported Megolm. The earlier send-path observation alone did not determine room encryption. The false-flag test remains open. Activity
MetadataMetadataAssigneesLabelsNo labels TypeFieldsPriority None yet Platform release None yet Projects
MilestoneRelationshipsDevelopmentIssue actions | ||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |