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

Aperta
#446 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Basharkhan7776 ci sta già lavorando.

Dal 8/11/2026.

  • #448 di @Basharkhan7776 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, javascript
Ambito
api, database, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
JavaScript
Stelle
53
Fork
182
Merge medio
18m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AOSSIE-Org/OrgExplorer

Tutte le issue di AOSSIE-Org/OrgExplorer

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.