Skip to content

fix(web): filter repo refs by relay pubkey (#7433) - #7437

Open
bounce12340 wants to merge 1 commit into
block:mainfrom
bounce12340:fix/7433-repo-refs-relay-pubkey
Open

fix(web): filter repo refs by relay pubkey (#7433)#7437
bounce12340 wants to merge 1 commit into
block:mainfrom
bounce12340:fix/7433-repo-refs-relay-pubkey

Conversation

@bounce12340

Copy link
Copy Markdown

Summary

  • Scope kind:30618 repo ref queries to NIP-11 relay self (+ owner when known)
  • Fail closed if relay self unavailable
  • Matches desktop fetchRepoState / relay_keypair signing for 30618
  • Add pure helper tests for relay-self parsing / author list

Fixes #7433

Test plan

  • node --test web/src/shared/lib/relay-self.test.mjs
  • Spot-check repo browser refs with spoofed foreign-pubkey 30618 events

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>
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

🔐 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 f9eb5cb7f5c4c67b729481c50bb101f32e323471 to authorize a new review.
Any previous review applies only to its recorded range.

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.

web: repository browser resolves kind:30618 refs without filtering by relay pubkey

1 participant