Skip to content

Commit dee0430

Browse files
mmaslankaprvivotron
authored andcommitted
kc/configuration: use system trust when no truststore is provided
When no trust store (CA certificate chain) is provided in kafka client configuration the logic should default to system embedded trust store. Previously the code path was missing forcing users to set the trust store manually. Signed-off-by: Michał Maślanka <michal@redpanda.com> (cherry picked from commit 907125a)
1 parent ba04d8a commit dee0430

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/v/kafka/client/configuration.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ tls_configuration::build_credentials() const {
343343
truststore_str, ss::tls::x509_crt_format::PEM);
344344
return ss::now();
345345
});
346+
} else {
347+
co_await builder.set_system_trust();
346348
}
349+
347350
if (k_store) {
348351
co_await ss::visit(
349352
*k_store,

0 commit comments

Comments
 (0)