[FEATURE REQUEST] support AWS MSK IAM authentication

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

@jackliu145 がすでに取り組んでいます。

2026年7月30日 から。

評価

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

調査の方向性

まず #141 の実装と AWS MSK IAM SASL signer のリファレンスパッケージを確認し、次に producer、consumer、topic verification、health checks で Kafka configuration がどこで共有されているかを追跡します。完了条件は、region と default credential の処理、自動 TLS、実際の AWS アカウントなしで unit test に利用できる injectable な token generation を備えた、後方互換の AWS_MSK_IAM mechanism を追加することです。

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

説明

Why this feature?

The current Kafka configuration supports username/password authentication, and #141 adds configurable PLAIN and SCRAM mechanisms. AWS MSK IAM authentication is a separate mechanism that cannot be enabled by setting a username and password.

AWS MSK IAM requires SASL/OAUTHBEARER, a dynamic SigV4 token provider, TLS, an AWS region, and credentials resolved through the AWS default credential chain.

Suggested Solution

Add a backward-compatible AWS_MSK_IAM authentication mechanism that:

  • maps to Sarama OAUTHBEARER
  • generates tokens with the official github.com/aws/aws-msk-iam-sasl-signer-go package
  • requires an AWS region
  • uses the AWS default credential chain without adding static access keys to Kafka configuration
  • enables TLS automatically
  • is shared by producer, consumer, topic verification, and health checks
  • supports unit testing through an injectable token generator without requiring a real AWS account

This should use a separate issue and branch from #141 according to the OpenIM one-issue-one-branch contribution workflow. The implementation can build on #141 and be rebased onto main after #141 is merged.

Additional Information

AWS reference: https://github.com/aws/aws-msk-iam-sasl-signer-go

主要言語
Go
スター
26
フォーク
104
平均マージ
2日 1時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

openimsdk/tools のほかの issue

openimsdk/tools の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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