Repository navigation
Prevent duplicate Buzz surfaces from bypassing relay egress controls (VERIA-146) - #205
Open
veria-ai[bot] wants to merge 2 commits into
Open
veria-ai[bot] wants to merge 2 commits into
veria-ai[bot] wants to merge 2 commits into
Conversation
|
Important Review skippedBot user detected. Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.
|
[Medium impact] The change reaches setup and routing for every surface kind. Update the affected CLI tests before merging; keep the new duplicate rejection.
|
The manifest now rejects repeated surface kinds, so the two-Buzz-surface fixtures in register and run-directory exercise a config that can no longer load, and rehearse's two-relay case is refused at load with the manifest's message. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Security fix: Duplicate Buzz Surfaces Bypass Relay-Specific Egress Controls
What was wrong
packages/core/src/manifest.tsaccepted repeated surface kinds in non-private deployments, whilepackages/core/src/gateway.tsrouted replies through a map keyed only by kind. Multiple Buzz connections could therefore share public-channel consent and route a private conversation's reply through another relay and signer.What changed
packages/core/src/manifest.tsthat rejects repeated surface kinds with an error onsurfaces.buildAdaptersinpackages/cli/src/surfaces.ts, before constructing any adapters.Gatewayconstructor inpackages/core/src/gateway.tsto reject duplicate adapter kinds instead of overwriting an existing registration, before any adapter starts.Why this is safe
Rejecting duplicate kinds removes the ambiguous connection identity that allowed cross-relay consent reuse and reply routing. Configurations with one surface per kind retain their existing routing and egress behavior; configurations with repeated kinds now fail before adapters start.
Fixes VERIA-146
This PR was generated by Veria AI.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.