Re-protect secret settings under the current key ring key
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 56/100
Direzione di ricerca
Read the SettingsService version check mentioned in the issue and inspect how secret settings are protected and unprotected for each area and scope. Implement a pass that re-protects stored secrets with the current default key and leaves failures untouched, reporting only area and scope. Verify that successful rows unprotect with the current key and that failures do not expose secret values; document the pass as a step before retiring a ring key or certificate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Since #3270 the secret keys of cms_setting.json are protected with Data Protection (fcms-protected:v1: prefix, purpose per area, key and scope). A payload stays bound to the key-ring key that protected it. When the ring rolls to a new key, or the ring certificate is replaced, old rows are only re-protected when an admin happens to write their area. So retiring an old ring key or certificate would make those secrets unreadable. The startup report shows them as settings-secrets-unreadable only once that has already happened.
Proposal
Add a command or job that re-protects every stored secret under the current default key: for each row, unprotect, then write back with the version check SettingsService already uses. It reports rows it cannot unprotect and leaves them untouched. Document it as the step to run before retiring a ring key or certificate.
Acceptance
- After the pass, every protected secret unprotects with the current default key only
- Rows it cannot unprotect are left as they are and reported by area and scope, never by value
- Lingua principale
- C#
- Stelle
- 567
- Fork
- 107
- Merge medio
- 1h 19m
- PR unite (30g)
- 353
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:localization plugin type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:storage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area:testing type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
area:api area:publishing type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
fluentcms/FluentCMS#3473 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:storage plugin type:bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fluentcms/FluentCMS
Issue simili
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeForse già presa @Goldziher l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsApertabug sev-5 vm
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
area:jobads-cv bug FE mvp P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
klasolsson81/jobbliggaren#2271 ·
I maintainer di solito rispondono entro 1 giorno