Members keep trusting the CA they started with after ca.crt changes in the TLS Secret
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 15/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, kubernetes
- Lĩnh vực
- infrastructure, security
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 154
- Fork
- 31
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cozystack/etcd-operator
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
cozystack/etcd-operator#385 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
cozystack/etcd-operator#383 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
cozystack/etcd-operator#374 · 1 bình luận ·
-
Adoption deletes the legacy cluster-state ConfigMap but leaves Pods referencing it, and neither self-heal path detects the resultCó thể đã có người làm @androndo đã nhận 46 ngày trước. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
cozystack/etcd-operator#373 ·
-
bugfix controllers
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
cozystack/etcd-operator#372 ·
Tất cả issue của cozystack/etcd-operator
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Correct local module testing instructions for Go sample contributorsCó thể đã có người làm @slievrly đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8Có thể đã có người làm @pacwestnobody đã nhận hôm nay. Đang mởgo good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Podiom/Podiom#427 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -raceCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
factory:subtask
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 1 ngày