A stripped stamp re-adopted on a different secret-store backend still loses what only the old backend held
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
Read the linked issue #2630 and PR #2671, then trace the ledger and secret-store carry-over and purge paths described in this report. Reproduce the sequence with mixed versions and a backend switch, including a changed client registration. Done means a design prevents loss of secrets without restoring values deliberately cleared under the successor namespace.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Follow-up to #2630 (PR #2671, raised in its Copilot review). #2671 carries an unstamped file's missing secrets over from the namespaces its ledger records before purging them. It reads those namespaces through the current run's secret store only. The ledger records entries per store location, so the carry-over has a gap when the backend changes in between:
- 2.10 saves on the keychain under namespace
ns1, including a confidential DCR client'sclient_secret. - A ≤ 2.9.x save strips the stamp.
- The next 2.10 run lands on a different backend (locked keychain →
secrets.json, or the memory fallback). It re-adopts underns2. The carry-over readsns1from that backend, finds nothing, and the stamp commits. The keychain'sns1record is correctly kept, because only a keychain run purges keychain records. - A later keychain run sees a stamped file (
ns2), which never falls back, and purgesns1from the keychain. That deletes the only copy of the secret.
Why it was not fixed in #2671
The obvious fix is to reconcile missing fields from a superseded namespace into the current, stamped namespace before purging it. That is unsafe as it stands:
- A field missing from
ns2may be one the user deliberately cleared underns2(a logout, a policy downgrade). Carryingns1's value back would resurrect it. This is why a stamped file never falls back. - The store holds a
client_secretwithout theclient_idit belongs to. Ifns2re-registered as a public client, a carried-over secret would be paired with the wrong client.
Expected
A design that tells "never carried, because the backend was absent" apart from "cleared since". For example, the ledger could record per location whether a namespace's contents were carried into its successor, and the purge could reconcile only namespaces that were never carried, for the entries the stamped file still indexes. Alternatively, defer the purge and accept the leak, with a warning. Needs both mixed versions and a backend switch between runs, so it is narrower than #2630.
- Lingua principale
- TypeScript
- Stelle
- 11.1k
- Fork
- 1.5k
- Merge medio
- 4h 14m
- PR unite (30g)
- 162
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di modelcontextprotocol/inspector
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
modelcontextprotocol/inspector#2723 ·
I maintainer di solito rispondono entro 1 giorno
-
Modern subscriptions: a subscriptions/listen refused with HTTP 403 is retried eight times in silenceApertabug v2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
modelcontextprotocol/inspector#2722 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug v2
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
modelcontextprotocol/inspector#2721 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug v2
Difficoltà 3/5 Mezza giornata Idoneità per principianti 62/100
modelcontextprotocol/inspector#2719 ·
I maintainer di solito rispondono entro 1 giorno
-
chore v2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
modelcontextprotocol/inspector#2715 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di modelcontextprotocol/inspector
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
wormhole-foundation/wormhole#5062 ·
I maintainer di solito rispondono entro 1 giorno
-
internal os specific
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
frostney/GocciaScript#1688 ·
I maintainer di solito rispondono entro 1 giorno
-
integration:hermes
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vectorize-io/hindsight#5592 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vercel/streamdown#673 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
apache/rocketmq-dashboard#6712 ·
I maintainer di solito rispondono entro 3 giorni