Support rotating certs in running pods instead of restarting them
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- kubernetes, rust
- Domaine
- infrastructure, security
Piste de recherche
Start by tracing the CSIDriver configuration and the NodePublishVolume implementation, then find where the replace time is computed for the restarter annotation. The issue proposes opt-in per-volume certificate renewal, safe replacement of files in mounted volumes, and retaining restart behavior as a fallback. Done would include renewal on republish without exposing partially written certificates; the issue names no files or tests.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Description
Right now, when a cert from the secret-operator gets close to expiring, the restarter just kills the pod based on the annotation set by secret-op (I think). That works, but it’s annoying for things that are slow to come back up or don't handle restarts well (looking at you, NiFi!), and it means short cert lifetimes come with a lot of restarts.
Some products can already reload certs from disk on their own. For example NiFi does this with nifi.security.autoreload.enabled. For products like that, it’d be nice if we could swap the cert in the volume and let the product take it from there, without forcing an unneeded restart on the pod.
The CSI lifecyle in Kubernetes has a hook for this: if we set requiresRepublish: true on our CSIDriver, the kubelet keeps calling NodePublishVolume for volumes that are already mounted. We can use that to check whether the cert is past its replace time and, if so, issue a new one and write it into the existing volume. We already compute that time for the restarter annotation, so we’d mainly need to keep it somewhere cheap to check, for example in memory with a small file in the volume as a fallback after the driver restarts.
This would have to be opt-in per volume, since products that don’t reload would just keep using the old cert until it expires. We’d probably also keep the restarter annotation as a safety net in case reissuing fails.
Bit of file handling to investigate since we don't want half-written certs being read, so probably need to come up with some symlink or mv magic, but that should be doable.
- Langage dominant
- Rust
- Étoiles
- 14
- Forks
- 8
- Merge moyen
- 1 j 12 h
- PR mergées (30 j)
- 9
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun 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 stackabletech/secret-operator
-
type/bug
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
stackabletech/secret-operator#754 ·
Les mainteneurs répondent en général sous 1 jour
-
autoTls: bound certificate lifetime by the CA that will actually sign it, not the configured caCertificateLifetimePeut-être pris @xeniape l’a pris il y a 20 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
stackabletech/secret-operator#753 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
skip the PodListeners lookup when the served Pod is being deletedPeut-être pris @soenkeliebau l’a pris il y a 4 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
stackabletech/secret-operator#720 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
customer-request type/bug
Difficulté 3/5 1-2 jours Accessibilité débutants 38/100
stackabletech/secret-operator#666 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Allow certificates to contain subjects with allowed external namesPeut-être à nouveau libre @NickLarsenNZ l’a pris il y a 446 jours, et aucune pull request n’est ouverte. Ouvertecustomer-request type/feature-improvement
stackabletech/secret-operator#630 · 7 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de stackabletech/secret-operator
Issues similaires
-
Unit tests use deprecated constant (part 2)Peut-être pris @servo-highfive l’a pris aujourd’hui. OuverteE-less-complex
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
servo/servo#49766 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug good first issue help wanted linux macos testing
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
area: app type: test
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
bug priority: medium
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
storytold/photocraft#12706 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug priority-low to-agent
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour