-
Notifications
You must be signed in to change notification settings - Fork 4.2k
fix(web): filter repo refs by relay pubkey (#7433) - #7437
Open
bounce12340 wants to merge 1 commit into
Open
Conversation
Scope kind:30618 queries to the relay NIP-11 `self` pubkey (plus repo owner when known), matching desktop fetchRepoState. Buzz signs authoritative ref-state events with the relay keypair, so an unscoped query let ReposWrite holders spoof refs. Signed-off-by: Josh Tsai <bounce12340@users.noreply.github.com>
🔐 Codex Security Review
Status: review required for the current range.
The current range is
3c7f288c60d67df78577b237e27c3dfc8831aaa1...f9eb5cb7f5c4c67b729481c50bb101f32e323471.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review f9eb5cb7f5c4c67b729481c50bb101f32e323471to authorize a new review.
Any previous review applies only to its recorded range.
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
self(+ owner when known)fetchRepoState/ relay_keypair signing for 30618relay-selfparsing / author listFixes #7433
Test plan
node --test web/src/shared/lib/relay-self.test.mjs