Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Disable verification of server TLS certificates for mgmt-api #715

Merged
merged 1 commit into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading