Support custom peer identity verification while retaining standard TLS authentication

Offen
#2,106 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@dzsquared arbeitet bereits daran.

Seit 10.11.2026.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python, rust
Bereich
security

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
1.3k
Forks
305
Ø Merge
3 T. 23 Std.
Gemergte PRs (30 T.)
44

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus temporalio/sdk-python

Alle Issues in temporalio/sdk-python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.