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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。