Skip to content

Commit f6c8b41

Browse files
committed
fix(certificate_builder): Add ssl factory entrypoint for cqlshrc
This commit allows scylla-doctor to use correct certificates when checking CQLsh liveliness. Fixes #10490
1 parent 7b84726 commit f6c8b41

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: sdcm/provision/scylla_yaml/certificate_builder.py

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
def update_cqlshrc(cqlshrc_file: str = CQLSHRC_FILE, client_encrypt: bool = False) -> None:
3232
config = configparser.ConfigParser()
3333
config.read(cqlshrc_file)
34+
if client_encrypt:
35+
if not config['connection']:
36+
config['connection'] = {}
37+
config['connection']['ssl'] = 'true'
3438
config['ssl'] = {
3539
'validate': 'true' if client_encrypt else 'false',
3640
'certfile': f'{SCYLLA_SSL_CONF_DIR / CA_CERT_FILE.name}',

0 commit comments

Comments
 (0)