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

[Bug] Unstable authentication behavior in DevLake's built-in Grafana

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
grafana, helm, kubernetes

調査の方向性

まず、組み込みの Grafana デプロイメントと Helm chart に表示されている grafana.ini および adminPassword の設定を調査し、その後、パスワード変更、ユーザー作成、CLI によるリセット、再起動の各ケースを再現します。これらの手順全体で認証の挙動とログを比較します。admin と新しく作成したユーザーが、繰り返しロックアウトされることなく確実に認証できれば完了です。

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

説明

[Title] Unstable authentication behavior in DevLake's built-in Grafana
[Description]

There are no issues when connecting DevLake servers with an external Grafana instance for authentication. However, when using the built-in Grafana, the authentication behavior appears to be highly unstable.
The reasons for this assumption are detailed below:

1. Initial admin password change triggers authentication errors in logs

When logging in with the default admin password of the built-in Grafana, I can successfully set a new password (e.g., qwer1234!@#$zxcv). Although the login itself succeeds at this moment, the following error logs are generated simultaneously:

logger=authn.service t=2026-06-01T01:17:51.799849464Z level=info msg="Failed to authenticate request" client=auth.client.basic error="[password-auth.failed] too many consecutive incorrect login attempts for user - login for user temporarily blocked"

logger=authn.service t=2026-06-01T01:26:25.203763833Z level=info msg="Failed to authenticate request" client=auth.client.basic error="[password-auth.failed] failed to authenticate identity: [password-auth.invalid] invalid password"

2. Creating a new user blocks the Admin account

Immediately after creating a new user within Grafana, the admin account is suddenly locked out and can no longer log in.

3. CLI Admin password reset does not work

Even after resetting the admin password via the CLI, the login still fails.

4. Restarting the Grafana container/service yields the same result

Restarting Grafana does not resolve the issue, and the authentication failure persists.
Could anyone please look into what might be causing this behavior in the built-in Grafana setup? Any insights or workarounds would be greatly appreciated.

5. Settings
## DevLake Grafana
grafana:
  enabled: true

  deploymentStrategy:
    type: Recreate
  adminPassword: ""
  grafana.ini:
    server:
      serve_from_subpath: "true"
      root_url: "%(protocol)s://%(domain)s/grafana"
主要言語
Go Template
スター
53
フォーク
71
平均マージ
16時間 15分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

apache/devlake-helm-chart のほかの issue

apache/devlake-helm-chart の issue をすべて見る

似ている issue

Security の issue をもっと見る

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

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