Kafka gateway: authorization per principal, and ACL and quota admin
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 12/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- kafka, rust
- 領域
- api, authorization, backend, security
調査の方向性
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 の本文から書いたものです。
説明
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
- 主要言語
- Rust
- スター
- 5.3k
- フォーク
- 548
- 平均マージ
- 2日 20時間
- マージ済み PR(30日)
- 194
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/iggy のほかの issue
-
go good first issue test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
go good first issue test
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 2 日以内に返信
-
go good first issue test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
good first issue java test
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
-
good first issue javascript test
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
似ている issue
-
marketing
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
S: Untriaged T: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
libnyanpasu/clash-nyanpasu#6537 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1時間未満 初心者へのやさしさ 62/100
tauri-apps/tao#1445 ·
メンテナーはふだん 1 日以内に返信
-
bug P3
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
nearai/compose-manager#95 ·
メンテナーはふだん 1 日以内に返信