Kafka gateway: authorization per principal, and ACL and quota admin

Abierto
#4,518 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

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

gateways

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 --add and --remove, the Strimzi User Operator, Terraform kafka_acl and kafka_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.md intends
  • 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 --add grants 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

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/iggy

Todos los issues de apache/iggy

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.