🤖 Operator token record: residual limits after #428
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
Read PR #428 and the linked discussion threads for each item to locate the reconcile code writing status.operatorAccessReady and operatorTokenSecretRef. Check docs/how-to/deploy-controller.md for the hash/URL item. Done means each listed residual limit is fixed with live readiness writes and a recorded database identity.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-ups that PR #428 (fix for #406) leaves open. Each one needs more than a small change in the operator token record, so #428 documents it or leaves it here.
- Readiness during a database change. When a ready control plane moves to a database with another hash,
status.operatorAccessReadystaystrue, with the oldstatus.operatorTokenSecretRef, until the final status write of that reconcile. This matchesmain. During that window, consumers send the old token to the new database and get 401s at the control plane origin. No token goes to another origin. A fix sets readiness tofalsein the record write before the create. It also needs a live write that restores readiness, because the final status write merges only the fields that changed against the first read of the reconcile. Codex thread: https://github.com/coder/coder-k8s/pull/428#discussion_r4429874209 - Secret rename on a record from an earlier version. When an upgraded control plane has a record without
status.operatorTokenIDandspec.operatorAccess.generatedTokenSecretNamechanges, the rotation deletes the old token and writes the new one only to the renamed Secret. If the final status write fails, or the controller stops, status still names the old Secret withoperatorAccessReady=true, so consumers get 401s until the next reconcile. This matchesmain, where a rename also always rotates because the renamed Secret is empty. The fix is the same live readiness write as item 1. Codex thread: https://github.com/coder/coder-k8s/pull/428#discussion_r4430006050 - One record per control plane. When a control plane that owns its Secret moves to another database, the controller records the new database before it provisions there. It then no longer deletes a token in the earlier database.
mainalso forgot that token. Keeping the old record would block operator access after every URL change. A fix needs a second record (a status field) and a way to reach the old database. - The hash names a URL, not a server (#406 item 5, documented in
docs/how-to/deploy-controller.md). A sound fix records a database identity read from the server, for example Coder's deployment ID, and checks it inside the delete transaction. --cascade=orphan(#406 item 3, documented). Readers cannot tell an orphaned Secret from a replaced one without a record of the Secret's UID.
Not in scope here: a record from a create that failed before its commit no longer authorizes a delete by name. #428 fixes that case with status.operatorTokenID.
Trigger: the next change to operator access, or a report of a token that stayed valid or was deleted in the wrong database.
Refs #406, #428
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: xhigh
- Ngôn ngữ chính
- Go
- Star
- 5
- Fork
- 3
- Merge trung bình
- 2 giờ 49 phút
- Pull request đã merge (30 ngày)
- 206
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọ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 coder/coder-k8s
-
CoderWorkspacePool: count bound and used members only when their owner matches the pool's ownerĐang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của coder/coder-k8s
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/arrow-swift#209 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
orchestrator: NFS-cache "cache path is not set" WARN logged on every build/launch instead of onceCó 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 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 65/100
influxdata/telegraf#20031 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pkg/registry/file no longer builds for GOOS=windows: unguarded syscall.Stat_t in qualified_resource_migration.goCó thể đã có người làm @AnshulPatil2005 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
OneBusAway/maglev#1914 ·
Maintainer thường phản hồi trong vòng 2 ngày