Rotate the token signing and encryption keys without signing everyone out
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
- 39/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp
- Ambito
- authentication, backend, security
Direzione di ricerca
Start with src/FluentCMS.Core/Identity/Oidc/SigningKeyStore.cs and the ServerCredentials code around lines 124–144, then trace token lifetimes, encryption keys, and the discovery document. The issue calls for an ADR before implementation; first establish the rotation and overlap design with maintainers. Done means accepted design and tests covering validation through the overlap, retirement, secondary certificate validation, and both discovery keys during rotation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
src/FluentCMS.Core/Identity/Oidc/SigningKeyStore.cs:21-22,32-47 only ever inserts one key per use under a fixed id; nothing adds a second. ServerCredentials (:124-144) takes one certificate with no slot for the previous one, so replacing a certificate invalidates every issued token at once. The encryption key never rotates either. An operator who suspects a key has no way to replace it without signing everyone out, and no routine rotation exists.
Proposal
Write an ADR first, then:
- A command and a recurring job that add a new signing key and retire the old one after the longest token lifetime.
- A secondary certificate setting, used for validation only.
- The same for the encryption key.
Acceptance
- ADR accepted
- A token issued before a rotation validates until it expires
- A retired key is removed after the overlap
- Replacing the configured certificate with the previous one set as secondary signs nobody out
- The discovery document lists both keys during the overlap
Found in the code review of 17 Nov 2026.
- Lingua principale
- C#
- Stelle
- 569
- Fork
- 107
- Merge medio
- 2h 49m
- PR unite (30g)
- 397
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 fluentcms/FluentCMS
-
area:host area:operations type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:build security type:chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:sdk security type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:content security type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
area:build type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fluentcms/FluentCMS
Issue simili
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
microsoft/microsoft-ui-reactor#1567 ·
I maintainer di solito rispondono entro 1 giorno
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openclaw/openclaw-windows-node#2287 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
kind:ux needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
elsa-workflows/elsa-foundation#4742 ·
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue help wanted new-language
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100