Skip to content

fix(search-mcp): admin GitLab links locate only files the reader may open - #10445

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/release-audit-sim66-search-mcp
Nov 26, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/release-audit-sim66-search-mcp

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • read_document on 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.
  • For an admin session, locating a link now succeeds only if the reader may open the result. Anything else, including a link to another branch, reads as unreachable. Member-token sessions are unchanged.

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 fix
  • application.test.ts, gitlab-admin.test.ts, links.test.ts still pass (144 tests)

…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.
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 26, 2026 9:48pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no new actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Admin-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.

  • Admin-managed GitLab links stay hidden unless the reader can open them.

Reviews (2) · Last reviewed commit: "fix(search-mcp): admin link lookups stil..." · Reviewed by Greptile

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

This branch was previously deployed

1 inactive deployment
Preview — c6f6b8fc Deployed Nov 26, 2026 by vercel[bot]
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.

1 participant