Deleting an ArgoCD instance removes RBAC belonging to same-named instances
Maintainer thường phản hồi trong vòng 1 ngày
@Rizwana777 đang làm issue này rồi.
Từ ngày 16/11/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/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
Start in argocd-operator/controllers/argocd/util.go, at deleteClusterResources (around line 755) and argocdInstanceSelector (around line 849), then follow the deletion path called from argocd_controller.go around line 264. Reproduce with a fake-client test that runs Reconcile on two same-named ArgoCD CRs in different namespaces. Done when deleting the tenant CR removes only its own ClusterRoles, ClusterRoleBindings and RoleBindings, and the victim's RBAC survives. Check that the owner match includes namespace, and ideally UID, before settling on the approach.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
With a cluster-wide operator installation, a user who can create and delete ArgoCD CRs in their own namespace can cause the operator to delete another instance's RBAC by reusing its CR name. No permissions in the victim namespace are required.
Reproduction
- Have an existing cluster-scoped ArgoCD instance named
shared-namein namespacevictim. - Create another ArgoCD CR named
shared-namein an unrelated namespace,tenant. - Wait for the operator to add its deletion finalizer, then delete the tenant CR.
Actual behavior
deleteClusterResources selects resources using only app.kubernetes.io/managed-by=<CR name>, without checking the owning namespace. Cleanup deletes matching ClusterRoles, ClusterRoleBindings, and RoleBindings belonging to the victim instance, disrupting its operation. Repeating the creation/deletion cycle can repeatedly remove the victim's RBAC.
Relevant code: argocd-operator/controllers/argocd/util.go, particularly deleteClusterResources at line 755 and argocdInstanceSelector at line 849. The deletion reconciliation path calls this cleanup from argocd_controller.go:264.
Expected behavior
Deleting an ArgoCD instance should remove only resources owned by that instance. Cleanup should verify the complete owning CR identity, including namespace and preferably UID. Add regression coverage with same-named instances in different namespaces, ensuring deletion removes the tenant's resources while preserving the victim's.
Confirmed at commit 5fb7a030 using an isolated fake-client reproduction through Reconcile; no live-cluster exploit was run.
(Bug text c/o OpenAI Codex v6.1 Sol xhigh)
- Ngôn ngữ chính
- Go
- Star
- 190
- Fork
- 367
- Merge trung bình
- 4 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 63
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- 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 redhat-developer/gitops-operator
-
Manager does not detect Route CRD that appears after startupCó thể đã có người làm @atishay-kasliwal đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
redhat-developer/gitops-operator#1566 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
NamespaceManagement revocation checks labels on the wrong namespaceCó thể đã có người làm @Rizwana777 đã nhận 3 ngày trước. Đang mởkind/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
redhat-developer/gitops-operator#1559 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
NamespaceManagement cleanup can delete RBAC in unrelated namespacesCó thể đã có người làm @Rizwana777 đã nhận 3 ngày trước. Đang mởkind/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
redhat-developer/gitops-operator#1557 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ApplicationSet tokenRef strict mode changes only apply after the controller is restartedCó thể đã có người làm @Gabrielandre02 đã nhận 5 ngày trước. Đang mở
redhat-developer/gitops-operator#1554 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Enqueue the previous Argo CD instance when NamespaceManagement consent is withdrawnCó thể đã có người làm @Gabrielandre02 đã nhận 5 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
redhat-developer/gitops-operator#1530 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của redhat-developer/gitops-operator
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ 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
-
Inconsistency between golang and cue in specCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Tencent/LoopForge#1087 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày