Skip to content

Commit 2390427

Browse files
committed
SR client: Don't disable cert verification if no ssl.ca.location set
This is a regression in v1.0.0
1 parent 443d378 commit 2390427

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

confluent_kafka/avro/cached_schema_registry_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ def __init__(self, url, max_schemas_per_subject=1000, ca_location=None, cert_loc
101101
self.subject_to_schema_versions = defaultdict(dict)
102102

103103
s = Session()
104-
s.verify = conf.pop('ssl.ca.location', None)
104+
ca_path = conf.pop('ssl.ca.location', None)
105+
if ca_path is not None:
106+
s.verify = ca_path
105107
s.cert = self._configure_client_tls(conf)
106108
s.auth = self._configure_basic_auth(conf)
107109

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy