Title: Isolate lockdown repository access cache per request identity · Issue #3107 · github/github-mcp-server · GitHub
Open Graph Title: Isolate lockdown repository access cache per request identity · Issue #3107 · github/github-mcp-server
X Title: Isolate lockdown repository access cache per request identity · Issue #3107 · github/github-mcp-server
Description: Describe the bug In HTTP mode the lockdown repository access cache is shared across callers. Entries are keyed on owner/repo alone inside a process-wide cache2go table, so a trust decision computed under one caller's credentials — reposi...
Open Graph Description: Describe the bug In HTTP mode the lockdown repository access cache is shared across callers. Entries are keyed on owner/repo alone inside a process-wide cache2go table, so a trust decision computed...
X Description: Describe the bug In HTTP mode the lockdown repository access cache is shared across callers. Entries are keyed on owner/repo alone inside a process-wide cache2go table, so a trust decision computed...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3107
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Isolate lockdown repository access cache per request identity","articleBody":"### Describe the bug\n\nIn HTTP mode the lockdown repository access cache is shared across callers. Entries are keyed on `owner/repo` alone inside a process-wide `cache2go` table, so a trust decision computed under one caller's credentials — repository visibility, author push access — can be served to a different caller whose own credentials were never checked.\n\nStdio mode is not affected: it runs a single cache for one process-wide identity.\n\n### Affected version\n\nCurrent `main` as of 2026-08-19.\n\n### Steps to reproduce the behavior\n\n1. Run the server in HTTP mode.\n2. Issue a lockdown-gated request for `owner/repo` as identity A.\n3. Issue the same request for the same `owner/repo` as identity B.\n4. Observe that B is served A's cached trust decision, without B's own credentials being used.\n\n### Expected vs actual behavior\n\nExpected: a cached trust decision is scoped to the identity whose credentials produced it.\n\nActual: decisions are shared process-wide under a bare `owner/repo` key.\n\n### Note on cache freshness\n\nThe cache's sliding/idle expiry is not a defect. `cache2go` refreshes an entry's TTL on access by design, and this cache has always relied on that — the hand-rolled cache it replaced kept the same semantics. A hot repository stays cached; idle entries are reclaimed.\n\nWhether repo-access decisions should *additionally* carry a fixed maximum age is a separate freshness question rather than an isolation one, and is deliberately not part of this fix. A fixed age makes every hot repository refetch on a timer, so it would want singleflight (or a shared store such as Redis) and possibly stale-while-revalidate to avoid a refetch stampede. Worth revisiting on its own terms.\n\n### Logs\n\nN/A\n","author":{"url":"https://github.com/SamMorrowDrums","@type":"Person","name":"SamMorrowDrums"},"datePublished":"2026-08-19T12:06:24Z","url":"https://github.com/github/github-mcp-server/issues/3107"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:87065bec-71df-dc15-496c-cda8e0e3ba51 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A742:F1B78:67D1C9:8D8DD2:6B06858F |
| html-safe-nonce | fe15cfee9023af50b7b0273f5e4fbe92662a5b990b6ff05f9c7f5c7a9661e2af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzQyOkYxQjc4OjY3RDFDOTo4RDhERDI6NkIwNjg1OEYiLCJ2aXNpdG9yX2lkIjoiMzk5NjYxNjQ2NTg0NjQ1MDA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0142a1810a238179397f36e42803360cf7c9ced2bb8cd932d924583371d745d6 |
| hovercard-subject-tag | issue:5192424448 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3107/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dfbac7bbb3987e6525d4046299172f96c3755ee986bc14d5cc12d042f2e5b63/github/github-mcp-server/issues/3107 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dfbac7bbb3987e6525d4046299172f96c3755ee986bc14d5cc12d042f2e5b63/github/github-mcp-server/issues/3107 |
| og:image:alt | Describe the bug In HTTP mode the lockdown repository access cache is shared across callers. Entries are keyed on owner/repo alone inside a process-wide cache2go table, so a trust decision computed... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SamMorrowDrums |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width