NamespaceManagement cleanup can delete RBAC in unrelated namespaces
Los mantenedores suelen responder en 1 día
@Rizwana777 ya está trabajando en esto.
Desde el 16/11/2026.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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)
- Lenguaje dominante
- Go
- Estrellas
- 190
- Forks
- 367
- Merge medio
- 4 d 2 h
- PR fusionados (30 d)
- 63
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de redhat-developer/gitops-operator
-
Manager does not detect Route CRD that appears after startupPosiblemente ocupada @atishay-kasliwal la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
redhat-developer/gitops-operator#1566 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
NamespaceManagement revocation checks labels on the wrong namespacePosiblemente ocupada @Rizwana777 la tomó hace 3 días. Abiertokind/bug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
redhat-developer/gitops-operator#1559 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Deleting an ArgoCD instance removes RBAC belonging to same-named instancesPosiblemente ocupada @Rizwana777 la tomó hace 3 días. Abiertokind/bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
redhat-developer/gitops-operator#1558 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
ApplicationSet tokenRef strict mode changes only apply after the controller is restartedPosiblemente ocupada @Gabrielandre02 la tomó hace 5 días. Abierto
redhat-developer/gitops-operator#1554 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Enqueue the previous Argo CD instance when NamespaceManagement consent is withdrawnPosiblemente ocupada @Gabrielandre02 la tomó hace 5 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
redhat-developer/gitops-operator#1530 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de redhat-developer/gitops-operator
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Inconsistency between golang and cue in specPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
security
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Tencent/LoopForge#1087 · 1 comentario ·
Los mantenedores suelen responder en 1 día