storcon + safekeeper + scrubber: propagate root CA certs everywhere (#11418)

## Problem
There are some places in the code where we create `reqwest::Client`
without providing SSL CA certs from `ssl_ca_file`. These will break
after we enable TLS everywhere.
- Part of https://github.com/neondatabase/cloud/issues/22686

## Summary of changes
- Support `ssl_ca_file` in storage scrubber.
- Add `use_https_safekeeper_api` option to safekeeper to use https for
peer requests.
- Propagate SSL CA certs to storage_controller/client, storcon's
ComputeHook, PeerClient and maybe_forward.
This commit is contained in:
Dmitrii Kovalkov
2025-04-04 06:30:48 +00:00
committed by GitHub
parent 497116b76d
commit 181af302b5
21 changed files with 121 additions and 39 deletions
+2 -4
View File
@@ -10,13 +10,11 @@ pub struct Client {
}
impl Client {
pub fn new(base_url: Url, jwt_token: Option<String>) -> Self {
pub fn new(http_client: reqwest::Client, base_url: Url, jwt_token: Option<String>) -> Self {
Self {
base_url,
jwt_token,
client: reqwest::ClientBuilder::new()
.build()
.expect("Failed to construct http client"),
client: http_client,
}
}