[BUG]: GitHub data cache is not tied to auth scope and survives PAT deletion

オープン
#446 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Basharkhan7776 がすでに取り組んでいます。

2026年11月8日 から。

  • #448 @Basharkhan7776 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github, javascript
領域
api, database, security

調査の方向性

Start by tracing the API response cache calls, including cacheGet(url), and the PAT deletion flow that removes the token and rate-limit entry. Check how IndexedDB stores entries and how requests distinguish authenticated from unauthenticated responses. Done means private data is no longer accessible after PAT deletion and adding a PAT does not reuse incomplete unauthenticated responses.

索引モデルが issue の本文から書いたものです。

説明

bug
Bug Description

API responses are cached in IndexedDB by URL only:

const cached = await cacheGet(url)
if (cached) return cached

The cache key does not include whether the request was authenticated, which token/account was used, or what permissions that token had. Deleting the PAT removes the token and rate-limit entry but does not clear cached GitHub data.

This creates two problems:

  1. Data fetched with a private-repo-capable PAT remains readable in IndexedDB after the PAT is deleted.
  2. Data fetched without a PAT can be served from cache after a PAT is added, so the “complete analysis” may reuse incomplete unauthenticated responses.
Steps to Reproduce
  1. Save a PAT that can read private repositories.
  2. Explore an organization and open several pages so responses are cached.
  3. Delete the PAT in Settings.
  4. Open DevTools → Application → IndexedDB → orgexplorer_cache or orgexplorer.
  5. Observe that cached GitHub response data remains.
Impact

High - Major feature is broken

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要言語
JavaScript
スター
53
フォーク
182
平均マージ
18分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AOSSIE-Org/OrgExplorer のほかの issue

AOSSIE-Org/OrgExplorer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。