NamespaceManagement cleanup can delete RBAC in unrelated namespaces
Mantenedores costumam responder em até 1 dia
@Rizwana777 já está trabalhando nisso.
Desde 16/11/2026.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 22/100
Direção de pesquisa
Start in argocd-operator/controllers/argocd/util.go around lines 1999-2015, where cleanupRBACsForNamespaceManagement is called from handleArgoCDNamespaceManagementUpdate, then read deleteRBACsForNamespace. Confirm the Roles and RoleBindings deleted there are not filtered by owning instance. Done means deletion is limited to grants owned by the originating ArgoCD, with regression tests for unrelated namespaces both with and without the feature flag.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
A user who can create and update an ArgoCD CR in their own namespace can cause the operator to delete Argo CD Roles and RoleBindings in another namespace, without permission or consent from that namespace. This also occurs when ALLOW_NAMESPACE_MANAGEMENT_IN_NAMESPACE_SCOPED_INSTANCES=false.
Reproduction
With a cluster-wide operator installation and existing Argo CD RBAC in namespace victim:
- Create an ArgoCD CR in an unrelated namespace,
tenant. - Set its
.spec.namespaceManagementto[{name: victim, allowManagedBy: true}]. - Remove that entry from the CR.
No NamespaceManagement CR or managed-by label authorizing the tenant instance is required in victim.
Actual behavior
The update predicate calls handleArgoCDNamespaceManagementUpdate, which passes the removed namespace to cleanupRBACsForNamespaceManagement. The cleanup deletes Roles and RoleBindings labeled app.kubernetes.io/part-of=argocd in victim, regardless of which instance owns them. Repeated updates can disrupt other Argo CD instances.
Relevant code: argocd-operator/controllers/argocd/util.go, particularly lines 1999–2015 and deleteRBACsForNamespace.
Expected behavior
Cleanup should delete only grants owned by the originating ArgoCD instance. Merely naming a namespace in the CR must not authorize deletion there. Add regression coverage for unrelated namespaces with the feature enabled and disabled, while preserving legitimate grant cleanup.
Confirmed at commit 5fb7a030 using an isolated fake-client reproduction through the update predicate; no live-cluster exploit was run.
(Bug text c/o OpenAI Codex v6.1 Sol xhigh)
- Linguagem predominante
- Go
- Estrelas
- 190
- Forks
- 367
- Merge médio
- 4d 2h
- PRs com merge (30d)
- 63
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de redhat-developer/gitops-operator
-
Manager does not detect Route CRD that appears after startupTalvez já em andamento @atishay-kasliwal assumiu hoje. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
redhat-developer/gitops-operator#1566 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
NamespaceManagement revocation checks labels on the wrong namespaceTalvez já em andamento @Rizwana777 assumiu há 3 dias. Abertakind/bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
redhat-developer/gitops-operator#1559 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Deleting an ArgoCD instance removes RBAC belonging to same-named instancesTalvez já em andamento @Rizwana777 assumiu há 3 dias. Abertakind/bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
redhat-developer/gitops-operator#1558 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
ApplicationSet tokenRef strict mode changes only apply after the controller is restartedTalvez já em andamento @Gabrielandre02 assumiu há 5 dias. Aberta
redhat-developer/gitops-operator#1554 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Enqueue the previous Argo CD instance when NamespaceManagement consent is withdrawnTalvez já em andamento @Gabrielandre02 assumiu há 5 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
redhat-developer/gitops-operator#1530 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de redhat-developer/gitops-operator
Issues semelhantes
-
benchmark
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
mozilla-ai/cq#601 ·
Mantenedores costumam responder em até 1 dia
-
documentation migration
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia