No logs or events for issues with password auth on enterprise instances when using multiple connection strings
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
調査の方向性
まず、異なるパスワードを使用する複数の Enterprise Redis 接続文字列で接続ループを再現し、次に認証失敗時にどの接続イベントとエラーイベントが発生するかを調査します。認証失敗が、アプリケーションから失敗した接続を検出できる、利用可能なログ、イベント、または例外経路を通じて通知されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
We recently ran into an issue in our environment where we overloaded the TLS negotiation of our enterprise redis instances, and the reason for it was because we were passing multiple connection strings to the multiplexer that used different passwords (which we now understand is not supported). This resulted in the multiplexer spamming the redis instances with connection requests because it kept running into auth failure, and we could see on the redis logs when we profile them a large repeated spam of these commands per second, per app:
15:09:11.938 "AUTH" "(redacted)"
15:09:11.938 "CLIENT" "SETNAME" "AppName(SE.Redis-v2.8.31.52602)"
15:09:11.938 "CLIENT" "SETINFO" "lib-name" "SE.Redis"
15:09:11.938 "CLIENT" "SETINFO" "lib-ver" "2.8.31.52602"
15:09:11.938 "CLIENT" "ID"
15:09:11.938 "CONFIG" "GET" "replica-read-only"
15:09:11.938 "CONFIG" "GET" "databases"
15:09:11.938 "SENTINEL" "MASTERS"
15:09:11.938 "INFO" "replication"
15:09:11.938 "INFO" "server"
15:09:11.938 "CLUSTER" "NODES"
15:09:11.938 "GET" "__Booksleeve_TieBreak"
15:09:11.938 "ECHO" "n \xc9jj'SB\xb4\x0b\xe6E\xf1\xd7\xec["
We had a very difficult time triaging this issue because we couldn't find any logs or errors anywhere. We tried subscribing to the events the multiplexer offers, like so:
var multiplexer = ConnectionMultiplexer.Connect($"{redisConnectionString},{redisSecondaryConnectionString},connectRetry=3");
multiplexer.ConnectionFailed += this.Redis_ConnectionFailed;
multiplexer.ConnectionRestored += this.Redis_ConnectionRestored;
multiplexer.ErrorMessage += this.Redis_ErrorMessage;
multiplexer.InternalError += this.Redis_InternalError;
But none of them were firing during these issues so we had nothing to log. There were no exceptions being thrown/logged from the library either. How would we go about detecting when the library runs into an auth issue and fails to properly connect? From what the redis team was telling us, it was stuck in a loop of Connection Open > send auth command > fail auth > Connection Close, repeat.
- 主要言語
- C#
- スター
- 6.2k
- フォーク
- 1.6k
- 平均マージ
- 1日 15分
- マージ済み PR(30日)
- 33
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
StackExchange/StackExchange.Redis のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
StackExchange/StackExchange.Redis#3269 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
StackExchange/StackExchange.Redis#3249 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
HotKeysClusterTests.CanUseClusterFilter skips intermittently, hiding the assertions it exists forオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
StackExchange/StackExchange.Redis#3239 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
StackExchange/StackExchange.Redis#3252 · コメント 8 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
StackExchange/StackExchange.Redis#3240 ·
メンテナーはふだん 1 日以内に返信
StackExchange/StackExchange.Redis の issue をすべて見る
似ている issue
-
area:jobads-cv BE mvp P2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
klasolsson81/jobbliggaren#2099 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
0 - Backlog Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
BrighterCommand/Brighter#4581 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
Esri/calcite-dotnet-toolkit#30 · リアクション 1 件 ·
-
kind:docs simplification size:S status:todo
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
elsa-workflows/elsa-foundation#2604 ·
メンテナーはふだん 1 日以内に返信