Kafka gateway: authorization per principal, and ACL and quota admin
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 12/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- kafka, rust
- Área
- api, authorization, backend, security
Línea de trabajo
Start with gateways/kafka/docs/AUTHENTICATION.md and gateways/kafka/docs/ACL_MAPPING.md, then the Kafka gateway handlers that serve Produce, Fetch, CreateAcls (30) and DeleteAcls (31). The open question is whether the gateway acts per principal on one session or opens one Iggy session per principal, and that must be settled before coding. Done means a principal without read permission gets TOPIC_AUTHORIZATION_FAILED (29) on Fetch, and kafka-acls --add changes what the next request is allowed to do.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Follow-up to #3549.
Summary
Produce, Fetch, offsets and CreateTopics act as the bridge's Iggy user for every client. Only DeleteTopics and AlterConfigs test manage_topics. CreateAcls (30) and DeleteAcls (31) are not served. DescribeAcls answers only with SASL on, and only for the caller.
Who hits it:
- Deployments where teams must not read each other's topics. Today any authenticated client reads and writes all that the bridge user can, and nothing reports it.
kafka-acls --addand--remove, the Strimzi User Operator, Terraformkafka_aclandkafka_quota, JulieOps, and MirrorMaker 2 ACL sync.
Open question
How does the gateway act for a user on each request: with an Iggy way to act for a user on one session, or with one Iggy session per principal?
Scope
- Carry the principal to the data plane, as
gateways/kafka/docs/AUTHENTICATION.mdintends - Map Kafka operations to Iggy permissions, and CreateAcls and DeleteAcls to permission changes. The mapping loses detail, so define what is refused
- Client quotas (48 and 49) only on request
- Update
gateways/kafka/docs/ACL_MAPPING.md
Acceptance criteria
- A principal without read permission on a topic gets
TOPIC_AUTHORIZATION_FAILED(29) on Fetch -
kafka-acls --addgrants a permission that the next request honors
References
gateways/kafka/docs/AUTHENTICATION.md,gateways/kafka/docs/ACL_MAPPING.md- #4340, "Out of scope": requests still run as the bridge's service account
- Lenguaje dominante
- Rust
- Estrellas
- 5.3k
- Forks
- 548
- Merge medio
- 2 d 20 h
- PR fusionados (30 d)
- 194
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- 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 apache/iggy
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 2 días
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
good first issue java test
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
-
good first issue javascript test
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 2 días
Todos los issues de apache/iggy
Issues similares
-
marketing
Dificultad 2/5 Medio día Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
S: Untriaged T: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
libnyanpasu/clash-nyanpasu#6537 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Menos de una hora Aptitud para principiantes 62/100
tauri-apps/tao#1445 ·
Los mantenedores suelen responder en 1 día
-
bug P3
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
nearai/compose-manager#95 ·
Los mantenedores suelen responder en 1 día