Repository navigation
fix(search-mcp): admin GitLab links locate only files the reader may open - #10445
Conversation
…open A pasted GitLab file link was located with an administrator source's token before the reader's access was checked, so its reply told any member whether a private project existed and named its default branch. An administrator session now locates a link only when the reader may open the result, and reads every other link as unreachable.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryAdmin-backed GitLab link lookups now return a location only after checking the reader’s access. Links to another branch remain unreachable without exposing the default branch.
Reviews (2) · Last reviewed commit: "fix(search-mcp): admin link lookups stil..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…dundant mock reset
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
read_documenton a pasted GitLab file link looked the project up with an administrator-managed source's token before checking the reader's access. Its reply told any member whether a private project the admin token can see exists, and named its default branch.Found in the v0.9.66 release audit of #10434.
Test plan
lib/sim-search/live/account-session.test.ts: red on the pre-fix code (2/2 failing), green with the fixapplication.test.ts,gitlab-admin.test.ts,links.test.tsstill pass (144 tests)