apache / apache/cloudstack

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

未關閉
#6,714 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
component:prometheus ipv6 Severity:Trivial status:stale type:bug
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
6 天 19 小時
30 天內合併 PR
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 摘要。