fix(relay): accept imeta from trusted public origin - #23
Open
reinhold-ph wants to merge 4 commits into
Open
Conversation
Collaborator
Author
Current deployment provenance
The branch and tag were created by adding refs to existing Git objects. No running bytes were rebuilt, redeployed, or restarted. This PR remains open because its exact head behavior is deployed. A 2026-08-18 review found one signed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stock Buzz Desktop 0.5.14 uploads message images through the trusted public relay origin and receives absolute descriptors such as:
Event ingestion previously reconstructed the media base from the canonical tenant host (
buzz.peakhunter.com:3000), so a signed kind-9 event containing the upload-returned secure URL was rejected.This patch:
RelayOriginfrom HTTP and WebSocket entry points into shared ingestion;relay_origin.http_url("/media");:3000authority when the event arrives through:8443;Stack / review boundary
This is a deliberately small stacked PR:
fix/relay-media-request-origin-authatc3a5445e07b6105ea32d1c7bd48ee9e731294f93fix/relay-imeta-public-originat645716ff9becc3b0f1acbfb2d74dbc279147c4b0The Peakhunter default branch is behind and diverged from this deployed relay baseline. A direct PR to
mainwould mix this five-file product fix with a 969-file baseline synchronization. Integration of the baseline branch intomainis intentionally a separate approval and PR-topology task.Verification
cargo fmt --all -- --check: passedcargo test -p buzz-relay --tests --no-run: passed-D warnings: the exact same twobuzz-mediadiagnostics reproduce at parent and head; no head-only diagnostic remains.git diff --checkpassed.Deployment and acceptance
Built from exact detached clean source
645716ff9…as Linux/amd64:Production verification:
ok;:8443.Non-goals
http://...:3000/media/...rendering compatibility remains separate.