Members keep trusting the CA they started with after ca.crt changes in the TLS Secret
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 15/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- go, kubernetes
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 154
- 派生
- 31
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cozystack/etcd-operator 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
cozystack/etcd-operator#385 ·
-
难度 5/5 一周以上 新手友好度 35/100
cozystack/etcd-operator#383 ·
-
难度 4/5 3-5 天 新手友好度 35/100
cozystack/etcd-operator#374 · 1 条评论 ·
-
Adoption deletes the legacy cluster-state ConfigMap but leaves Pods referencing it, and neither self-heal path detects the result可能已有人在做 @androndo 于 46 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 35/100
cozystack/etcd-operator#373 ·
-
bugfix controllers
难度 3/5 1-2 天 新手友好度 45/100
cozystack/etcd-operator#372 ·
查看 cozystack/etcd-operator 的全部 Issue
相似的 Issue
-
internal/core: cleanAttachmentName splits a rune at the 255-byte cap and stores invalid UTF-8可能已有人在做 @pacwestnobody 今天认领。 未关闭go good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
TestLaunchGolden spends about 98 seconds on fake-agent exit delays under -race可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 95/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 90/100
NotAFlightRisk/patchcall#11 ·
维护者通常 1 天内回复
-
documentation enhancement good first issue
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复