Support custom peer identity verification while retaining standard TLS authentication

未關閉
#2,106 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@dzsquared 已經在處理了。

開始於 2026年11月10日。

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python, rust
領域
security

研究方向

Read CONTRIBUTING.md and Core’s TlsOptions.server_cert_verifier to understand the existing verification boundary. The issue says a draft implementation will follow, so wait for that before locating SDK entry points. Done means the proposed callback rules are implemented and real handshake negative tests cover rejection cases, while default TLS behavior remains unchanged.

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

描述

Proposal: expose an optional synchronous TLSConfig.peer_identity_verifier(cert_der: bytes) -> None callback. The Rust bridge validates the trust chain, validity and server-auth usage before calling it, and retains rustls handshake-signature verification. The callback replaces DNS hostname matching only; SNI and HTTP/2 authority remain unchanged. An exception or non-None return rejects the handshake. Require explicit root CAs and reject combinations with verification_server_name.

This supports application identities encoded in private X.509 extensions without duplicating cryptographic verification. It builds on Core’s TlsOptions.server_cert_verifier, is distinct from #2103, and needs real handshake negative tests. Callbacks must be fast, thread-safe, synchronous and independent of SDK calls.

Opening for design discussion per CONTRIBUTING.md; a draft implementation will follow. Default TLS behavior is unchanged.

🤖 jjaegerman’s Aimee

主要語言
Python
星號
1.3k
分支
305
平均合併
3 天 23 小時
30 天內合併 PR
44

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

temporalio/sdk-python 的其他 Issue

查看 temporalio/sdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

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

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