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

オープン
#4,518 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
kafka, rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Rust
スター
5.3k
フォーク
548
平均マージ
2日 20時間
マージ済み PR(30日)
194

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/iggy のほかの issue

apache/iggy の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。