Deleting an ArgoCD instance removes RBAC belonging to same-named instances
メンテナーはふだん 1 日以内に返信
@Rizwana777 がすでに取り組んでいます。
2026年11月16日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go, kubernetes
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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)
- 主要言語
- Go
- スター
- 190
- フォーク
- 367
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 63
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
redhat-developer/gitops-operator のほかの issue
-
Manager does not detect Route CRD that appears after startup対応中かも @atishay-kasliwal が今日担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
redhat-developer/gitops-operator#1566 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
NamespaceManagement revocation checks labels on the wrong namespace対応中かも @Rizwana777 が 3 日前に担当しました。 オープンkind/bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
redhat-developer/gitops-operator#1559 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
NamespaceManagement cleanup can delete RBAC in unrelated namespaces対応中かも @Rizwana777 が 3 日前に担当しました。 オープンkind/bug
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
redhat-developer/gitops-operator#1557 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
ApplicationSet tokenRef strict mode changes only apply after the controller is restarted対応中かも @Gabrielandre02 が 5 日前に担当しました。 オープン
redhat-developer/gitops-operator#1554 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Enqueue the previous Argo CD instance when NamespaceManagement consent is withdrawn対応中かも @Gabrielandre02 が 5 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
redhat-developer/gitops-operator#1530 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
redhat-developer/gitops-operator の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Inconsistency between golang and cue in spec対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Tencent/LoopForge#1087 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信