Skip to content

Commit

Permalink
Disable verification of server TLS certificates for mgmt-api (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm authored and adejanovski committed Feb 24, 2024
1 parent a9e26fd commit 4d0d8bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion medusa/service/snapshot/management_api_snapshot_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ def __init__(self, config):
self.config = config
self.session = requests.Session()
if self.config.tls_cert is not None and len(self.config.tls_cert) > 0:
self.session.verify = self.config.ca_cert
# self.session.verify = self.config.ca_cert
self.session.verify = False
self.session.cert = (self.config.tls_cert, self.config.tls_key)
if self.config.cassandra_url.startswith('http://'):
self.config.cassandra_url = self.config.cassandra_url.replace('http://', 'https://')

def create_snapshot(self, *, tag):
# get the Cassandra URL to POST the request
Expand Down

0 comments on commit 4d0d8bc

Please # to comment.