apache / apache/pulsar-client-python

Python Client `tls_validate_hostname` should validate hostname match against SANs

未關閉
#35 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
75
分支
53
PR 合併指標
30 天內沒有已合併 PR

描述

**Is your enhancement request related to a problem? Please describe.**
The Python [Client](https://pulsar.apache.org/api/python/2.7.0-SNAPSHOT/#pulsar.Client.__init__) parameter `tls_validate_hostname` only validates that the endpoint hostname matches the Common Name in the TLS cert supplied by the endpoint.

**Describe the solution you'd like**
The Python Client should also validate against [Subject Alternative Name](https://en.wikipedia.org/wiki/Subject_Alternative_Name) field in the TLS cert. This is a common practice to include multiple hostnames in a TLS cert to share across scalable systems without necessarily having to use a wildcard the hostname.

貢獻指南

開啟貢獻指南

研究方向

從 Python Client 對 tls_validate_hostname 參數的實作開始,檢查目前如何驗證 endpoint 憑證的 Common Name。當主機名稱驗證也檢查憑證的 Subject Alternative Name 欄位(包括包含多個主機名稱的憑證)時,這項工作就完成了。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
security
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。