Re-protect secret settings under the current key ring key

Aperta
#3,364 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@pournasserian ci sta già lavorando.

Dal 20/11/2026.

  • #3433 di @pournasserian — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend, security

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

area:settings security type:feature

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

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 fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.