apache / apache/cloudstack

Prometheus exporter - interpret ::1 as 0:0:0:0:0:0:0:1

オープン
#6,714 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
component:prometheus ipv6 Severity:Trivial status:stale type:bug
主要言語
Java
スター
3.1k
フォーク
1.4k
平均マージ
6日 19時間
マージ済み PR(30日)
32

説明

Hi,

If I configure the Prometheus exporter to allow requests from ::1 (ipv6 localhost, short form) it doesn't actually honour requests.

In the logs you can see entries such as:
```Prometheus exporter received client request from: 0:0:0:0:0:0:0:1```

Indeed, once you add 0:0:0:0:0:0:0:1 (ipv6 localhost, medium form) it starts working.

It's a minor issue, but nice to get sorted as most people are used to ::1.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Issue では Prometheus exporter とその request allowlist が示されていますが、ファイルやテストは示されていません。allowlist の処理箇所を見つけ、::1 からのリクエストを再現し、クライアントアドレスが 0:0:0:0:0:0:0:1 としてログに記録される場合に、設定した短縮形が受け入れられることを確認してください。

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

評価

技術スタック
java, prometheus
領域
observability
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

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

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