Skip to content

Commit

Permalink
net: Using tls_min_version
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Boquard <michael@redpanda.com>
  • Loading branch information
michael-redpanda committed Jul 17, 2024
1 parent c00ae2d commit f8a0844
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v/cloud_storage_clients/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ build_tls_credentials(
cred_builder.set_ciphersuites(
{config::tlsv1_3_ciphersuites.data(),
config::tlsv1_3_ciphersuites.size()});
cred_builder.set_minimum_tls_version(
from_config(config::shard_local_cfg().tls_min_version()));
if (trust_file.has_value()) {
auto file = trust_file.value();
vlog(log.info, "Use non-default trust file {}", file());
Expand Down
3 changes: 3 additions & 0 deletions src/v/config/tls_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "tls_config.h"

#include "config/configuration.h"
#include "config/convert.h"
#include "utils/to_string.h"

Expand All @@ -29,6 +30,8 @@ tls_config::get_credentials_builder() const& {
{tlsv1_2_cipher_string.data(), tlsv1_2_cipher_string.size()});
builder.set_ciphersuites(
{tlsv1_3_ciphersuites.data(), tlsv1_3_ciphersuites.size()});
builder.set_minimum_tls_version(
from_config(config::shard_local_cfg().tls_min_version()));
builder.set_dh_level(ss::tls::dh_params::level::MEDIUM);
if (_require_client_auth) {
builder.set_client_auth(ss::tls::client_auth::REQUIRE);
Expand Down

0 comments on commit f8a0844

Please sign in to comment.