Let the reference host read its key ring with a previous certificate

Ouverte
#3,435 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
52/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
csharp
Domaine
backend, security

Piste de recherche

Start in src/FluentCMS.Host/ReferenceHost.cs and trace how the reference host configures Data Protection with ProtectKeysWithCertificate. Find the matching tests for certificate-protected key ring reads and add coverage showing that keys protected by either certificate can be read while new keys use the new certificate. Update docs/docker.md and docs/host-configuration.md with the replacement steps, including fluentcms settings reprotect; done when the acceptance checks pass.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

area:host security type:feature

Problem

The reference host and its image protect the Data Protection key ring with one certificate (ProtectKeysWithCertificate in src/FluentCMS.Host/ReferenceHost.cs). Nothing loads a previous certificate for reading (UnprotectKeysWithAnyCertificate). When the certificate is replaced, every ring key the old one protected becomes unreadable at once, and with it every secret setting, token and cookie those keys protect. fluentcms settings reprotect (#3364) cannot help: with the old certificate no key is protected by the new one, and with the new certificate the old keys cannot be read, so it ends with FCMS3308.

A host of one's own can configure both certificates; the image cannot.

Proposal

Let the reference host take one or more previous certificates that are used only to read the ring, and document the replacement as: add the new certificate with the old one as previous, wait for or make a new default key, run fluentcms settings reprotect, then drop the old certificate.

Acceptance

  • A host configured with a new certificate and the previous one reads ring keys protected by either and protects new keys with the new one
  • docs/docker.md and docs/host-configuration.md give the steps of a certificate replacement, with settings reprotect in its place
  • A test for the read with a previous certificate

Found in the review of #3433. Bundle 25.

Langage dominant
C#
Étoiles
567
Forks
107
Merge moyen
1 h 19 min
PR mergées (30 j)
353

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de fluentcms/FluentCMS

Toutes les issues de fluentcms/FluentCMS

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.