You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have production Cassandra clusters where SSL (client_encryption_options) is enabled with no validation is required (require_client_auth: false).
But medusa does not support enabling SSL without cert file.
The current connection code in medusa is:
`
if self._cassandra_config.certfile is not None:
ssl_context = SSLContext(PROTOCOL_TLSv1_2)
ssl_context.load_verify_locations(self._cassandra_config.certfile)
ssl_context.verify_mode = CERT_REQUIRED
if self._cassandra_config.usercert is not None and self._cassandra_config.userkey is not None:
ssl_context.load_cert_chain(
certfile=self._cassandra_config.usercert,
keyfile=self._cassandra_config.userkey)
self._ssl_context = ssl_context
`
As you see in the above code, SSL is enabled if the "certfile" is provided.
But in our case SSL validation is not enabled.
We need a way to connect to the cluster without a certfile.
Simply the code should be like this:
`
if self._cassandra_config.ssl == True:
ssl_context = SSLContext(PROTOCOL_TLSv1_2)
if self._cassandra_config.certfile is not None:
ssl_context.load_verify_locations(self._cassandra_config.certfile)
ssl_context.verify_mode = CERT_REQUIRED
if self._cassandra_config.usercert is not None and self._cassandra_config.userkey is not None:
ssl_context.load_cert_chain(
certfile=self._cassandra_config.usercert,
keyfile=self._cassandra_config.userkey)
self._ssl_context = ssl_context
`
Could you please help to support this in medusa ??
Regards
Mohammad
┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: MED-30
The text was updated successfully, but these errors were encountered:
Project board link
Hi,
We have production Cassandra clusters where SSL (client_encryption_options) is enabled with no validation is required (require_client_auth: false).
But medusa does not support enabling SSL without cert file.
The current connection code in medusa is:
`
`
As you see in the above code, SSL is enabled if the "certfile" is provided.
But in our case SSL validation is not enabled.
We need a way to connect to the cluster without a certfile.
Simply the code should be like this:
`
`
Could you please help to support this in medusa ??
Regards
Mohammad
┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: MED-30
The text was updated successfully, but these errors were encountered: