Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

No logs or events for issues with password auth on enterprise instances when using multiple connection strings

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp, redis
領域
backend, databases

調査の方向性

まず、異なるパスワードを使用する複数の 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

環境構築

Codespaces で開く

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

はじめの一歩

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

StackExchange/StackExchange.Redis のほかの issue

StackExchange/StackExchange.Redis の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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