feat(site-replication): support custom TLS peers (#4802)

* feat(madmin): add site replication TLS settings

* feat(site-replication): support custom TLS peers

* test(site-replication): remove redundant clones

* test(site-replication): avoid needless resolver collection
This commit is contained in:
cxymds
2026-07-14 15:33:00 +08:00
committed by GitHub
parent e9a0200a72
commit 25f81f812c
7 changed files with 2749 additions and 159 deletions
File diff suppressed because it is too large Load Diff
@@ -160,6 +160,8 @@ mod tests {
default_bandwidth: BucketBandwidth::default(),
replicate_ilm_expiry: false,
object_naming_mode: String::new(),
skip_tls_verify: false,
ca_cert_pem: String::new(),
api_version: None,
}
}
@@ -204,6 +206,8 @@ mod tests {
PeerInfo {
api_version: Some("v1".to_string()),
replicate_ilm_expiry: true,
skip_tls_verify: true,
ca_cert_pem: "fallback-ca".to_string(),
..peer("remote-http", "http://node-a.example.com:9000")
},
),
@@ -226,6 +230,8 @@ mod tests {
assert_eq!(peer.deployment_id, "remote-http");
assert_eq!(peer.api_version.as_deref(), Some("v1"));
assert!(peer.replicate_ilm_expiry);
assert!(!peer.skip_tls_verify);
assert_eq!(peer.ca_cert_pem, "");
}
#[test]