Skip to content

Commit

Permalink
config: Introduce cloud_storage_crl_file and wire into CS-client
Browse files Browse the repository at this point in the history
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
  • Loading branch information
oleiman committed May 31, 2024
1 parent 8e7406a commit bd8d478
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/v/cloud_storage_clients/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ build_tls_credentials(
co_await cred_builder.set_system_trust();
}
}
if (auto crl_file
= config::shard_local_cfg().cloud_storage_crl_file.value();
crl_file.has_value()) {
co_await cred_builder.set_x509_crl_file(
*crl_file, ss::tls::x509_crt_format ::PEM);
}
co_return co_await net::build_reloadable_credentials_with_probe<
ss::tls::certificate_credentials>(
std::move(cred_builder), "cloud_storage_client", std::move(name));
Expand Down
7 changes: 7 additions & 0 deletions src/v/config/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,13 @@ configuration::configuration()
{.visibility = visibility::user},
std::nullopt,
&validate_non_empty_string_opt)
, cloud_storage_crl_file(
*this,
"cloud_storage_crl_file",
"Path to certificate revocation list for cloud_storage_trust_file.",
{.visibility = visibility::user},
std::nullopt,
&validate_non_empty_string_opt)
, cloud_storage_initial_backoff_ms(
*this,
"cloud_storage_initial_backoff_ms",
Expand Down
1 change: 1 addition & 0 deletions src/v/config/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ struct configuration final : public config_store {
property<bool> cloud_storage_disable_tls;
property<int16_t> cloud_storage_api_endpoint_port;
property<std::optional<ss::sstring>> cloud_storage_trust_file;
property<std::optional<ss::sstring>> cloud_storage_crl_file;
property<std::chrono::milliseconds> cloud_storage_initial_backoff_ms;
property<std::chrono::milliseconds> cloud_storage_segment_upload_timeout_ms;
property<std::chrono::milliseconds>
Expand Down

0 comments on commit bd8d478

Please sign in to comment.