Re-protect secret settings under the current key ring key
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 56/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- C#
- Étoiles
- 567
- Forks
- 107
- Merge moyen
- 1 h 19 min
- PR mergées (30 j)
- 353
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de fluentcms/FluentCMS
-
area:localization plugin type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
area:storage type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Les mainteneurs répondent en général sous 1 jour
-
area:testing type:bug
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
area:api area:publishing type:feature
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
fluentcms/FluentCMS#3473 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area:storage plugin type:bug
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de fluentcms/FluentCMS
Issues similaires
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQPeut-être pris @spuddeh l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimePeut-être pris @Goldziher l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
priority:P2
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsOuvertebug sev-5 vm
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100