Skip to content

feat(search): apply ReBAC repository access filtering - #1487

Open
csg-pr-bot wants to merge 1 commit into
mainfrom
sync_mr_2984_3086bf5
Open

csg-pr-bot wants to merge 1 commit into
mainfrom
sync_mr_2984_3086bf5

Conversation

@csg-pr-bot

Copy link
Copy Markdown
Collaborator

Summary:

  • Replaces organization/Namespace-based private repository filtering with OpenFGA ReBAC (can_read / ListObjects) to ensure search results accurately reflect actual user permissions.
  • Caches the user's authorized repository list per UUID (5-minute TTL) and uses singleflight to deduplicate concurrent OpenFGA requests.
  • Bypasses shared search result caches for private repository queries to prevent cross-user permission leaks, while maintaining admin access and public visibility for unauthenticated users.

@csg-pr-bot

Copy link
Copy Markdown
Collaborator Author

Depends on #1484

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.

2 participants