Members keep trusting the CA they started with after ca.crt changes in the TLS Secret
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 15/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- go, kubernetes
- Bereich
- infrastructure, security
Rechercherichtung
The issue names the client CA flags --trusted-ca-file and --peer-trusted-ca-file, which are loaded once at member startup, and the TLS Secret's ca.crt. Start by finding where the operator builds those flags and where it computes pod annotations for its existing rollout logic. Done would mean a CA change in the Secret triggers a one-at-a-time member roll, and a condition reports when a running member's trusted CA differs from its Secret. This is design work and needs maintainer input first.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Problem
etcd reloads its serving certificate on every handshake, but builds the client CA pool (--trusted-ca-file, --peer-trusted-ca-file) once at startup. When ca.crt in the TLS Secret changes, a running member keeps verifying clients against the old CA, while members started afterwards use the new one. The cluster ends up with members that reject each other's clients, and nothing restarts the old members.
How it happened
The CA was re-issued once shortly after install, but the leaf certificates issued by the first CA were not re-issued at that time, so everything kept working on the first CA for two months. When the leaves were renewed, the Secrets switched to the new CA:
- a member running since before the renewal served the new certificate but still accepted only clients signed by the old CA (
remote error: tls: unknown certificate authorityfor every new connection, including the local etcdctl); - members started after the renewal trusted only the new CA;
- long-lived clients with old certificates kept working over existing connections, new connections failed.
It surfaced during a site partition: leadership could not be moved off the stale member, and an apiserver on the other side crash-looped. Deleting the stale member's pod fixed it.
Proposal
When ca.crt (or the peer CA) in a member's TLS Secrets changes, roll the members one at a time, waiting for each to rejoin healthy before the next, the same way a spec change would. A checksum of the referenced CA bundles in the pod annotations would make the change visible to the existing rollout logic.
A related check that would have caught this early: report a condition when the CA a running member trusts differs from the one in its Secret.
- Vorherrschende Sprache
- Go
- Sterne
- 154
- Forks
- 31
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cozystack/etcd-operator
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
cozystack/etcd-operator#385 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
cozystack/etcd-operator#383 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cozystack/etcd-operator#374 · 1 Kommentar ·
-
Adoption deletes the legacy cluster-state ConfigMap but leaves Pods referencing it, and neither self-heal path detects the resultEvtl. vergeben @androndo hat das vor 46 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cozystack/etcd-operator#373 ·
-
bugfix controllers
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
cozystack/etcd-operator#372 ·
Alle Issues in cozystack/etcd-operator
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Correct local module testing instructions for Go sample contributorsEvtl. vergeben @slievrly hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Evtl. vergeben @pacwestnobody hat das heute übernommen. Offengo good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Podiom/Podiom#427 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
factory:subtask
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
Maintainer antworten meist innerhalb von 1 Tag