Skip to content

Commit 851dae0

Browse files
fixes
1 parent dea787c commit 851dae0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

superclient/agent/interceptor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,9 @@ def __init__(self, conf: Dict[str, Any], *args, **kwargs):
332332
if warning_msg:
333333
error_msg = warning_msg
334334

335+
# Store original configuration before applying optimizations
336+
orig_cfg = dict(conf)
337+
335338
# Apply optimizations to the configuration
336339
for k, v in opt_cfg.items():
337340
current_val = conf.get(k)
@@ -351,7 +354,7 @@ def __init__(self, conf: Dict[str, Any], *args, **kwargs):
351354
producer=self._producer,
352355
bootstrap=bootstrap,
353356
client_id=client_id,
354-
orig_cfg=conf,
357+
orig_cfg=orig_cfg,
355358
opt_cfg=opt_cfg,
356359
report_interval_ms=int(report_interval or _DEFAULT_REPORT_INTERVAL_MS),
357360
error=error_msg, # Store error message in tracker

superclient/util/config.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def copy_client_configuration_properties(src: Dict[str, Any], dst: Dict[str, Any
100100
"enable.ssl.certificate.verification",
101101
"ssl.certificate.location", "ssl.certificate.pem",
102102
"ssl.ca.location", "ssl.ca.pem",
103+
"ssl.key.location",
103104
"ssl.ca.certificate.stores", "ssl.crl.location",
104105
"ssl.providers", "ssl.context",
105106
"ssl.cafile", "ssl.certfile", "ssl.keyfile",
@@ -269,6 +270,16 @@ def copy_client_configuration_properties(src: Dict[str, Any], dst: Dict[str, Any
269270
"batch.num.messages": "batch.num.messages",
270271
"compression.codec": "compression.codec",
271272
"oauth_cb": "oauth_cb",
273+
274+
# SSL properties (confluent uses Java-style names directly)
275+
"ssl.ca.location": "ssl.ca.location",
276+
"ssl.certificate.location": "ssl.certificate.location",
277+
"ssl.key.location": "ssl.key.location",
278+
"ssl.keystore.location": "ssl.keystore.location",
279+
"ssl.keystore.password": "ssl.keystore.password",
280+
"ssl.key.password": "ssl.key.password",
281+
"ssl.endpoint.identification.algorithm": "ssl.endpoint.identification.algorithm",
282+
"enable.ssl.certificate.verification": "enable.ssl.certificate.verification",
272283
}
273284
}
274285

0 commit comments

Comments
 (0)