apache / apache/pulsar-client-python
Python Client `tls_validate_hostname` should validate hostname match against SANs
- 主要言語
- 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