Privileged ServiceAccounts without rackAwarness enabled
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
Línea de trabajo
Start with hdfs_clusterrolebinding_nodes_controller.rs, where HdfsCluster ServiceAccounts are added to hdfs-clusterrolebinding-nodes, and review the spec.clusterConfig.rackAwareness checks used around core_site.rs. Update the reflector to watch full HdfsCluster objects with DeserializeGuard so invalid clusters do not block reconciliation. The change is done when only rack-awareness-enabled clusters appear as subjects, while existing bindings and unrelated cluster reconciliation remain correct; run the repository's relevant Rust tests if present.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Affected Stackable version
25.7.0, 25.11.0, 26.3.0 and 26.7.0
Affected Apache HDFS version
all
Current and expected behavior
Current
hdfs-operator maintains a single ClusterRoleBinding hdfs-clusterrolebinding-nodes to the ClusterRole hdfs-clusterrole-nodes, which grants cluster-wide get/list/watch on pods, nodes and endpoints (plus listeners and CRDs). It exists for the rack awareness topology provider.
The operator adds the ServiceAccount of every HdfsCluster as a subject, whether or not rackAwareness is set. The topology provider is only configured when rackAwareness is set (core_site.rs), so clusters without it get these rights without using them.
Expected
A HdfsCluster's ServiceAccount is only a subject of hdfs-clusterrolebinding-nodes when that cluster sets rackAwareness.
Fix
In hdfs_clusterrolebinding_nodes_controller.rs, only add clusters with spec.clusterConfig.rackAwareness set. The reflector currently watches PartialObjectMeta (no spec), so it needs to watch full objects, using DeserializeGuard so one broken HdfsCluster doesn't block the binding for all of them.
Out of scope: the ServiceAccount is shared by all roles, but only the NameNode runs the topology provider.
Possible solution
No response
Additional context
No response
Environment
No response
Would you like to work on fixing this bug?
No response
- Lenguaje dominante
- Rust
- Estrellas
- 53
- Forks
- 10
- Merge medio
- 21 h 32 min
- PR fusionados (30 d)
- 10
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 stackabletech/hdfs-operator
-
Dificultad 3/5 1-2 días Aptitud para principiantes 61/100
stackabletech/hdfs-operator#853 ·
Los mantenedores suelen responder en 1 día
-
Topology Provider permissions briefly dropped during reconciliation when the reflector watch resetsAbiertotype/bug
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
stackabletech/hdfs-operator#774 ·
Los mantenedores suelen responder en 1 día
-
type/bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
stackabletech/hdfs-operator#773 ·
Los mantenedores suelen responder en 1 día
-
Re-enable restart-controllerAbiertotype/internal-debt
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
stackabletech/hdfs-operator#769 ·
Los mantenedores suelen responder en 1 día
-
type/bug
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
stackabletech/hdfs-operator#763 ·
Los mantenedores suelen responder en 1 día
Todos los issues de stackabletech/hdfs-operator
Issues similares
-
bug priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
storytold/photocraft#12706 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
IngvarConsulting/unica#2822 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Clean master build fails in zune-jpeg error conversion and zero-IV array construction (patch)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100