Skip to content

Commit 80c622e

Browse files
allow invalid certificate for intra cluster calls
allow invalid certificates for connecting other nodes in the cluster required when querier/prism server tries to connect to other nodes via IP address directly but the certificate is valid for a specific domain name
1 parent a3d52b7 commit 80c622e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ pub static HTTP_CLIENT: Lazy<Client> = Lazy::new(|| {
8282
.brotli(true) // brotli compress for all requests
8383
.use_rustls_tls() // use only the rustls backend
8484
.http1_only() // use only http/1.1
85+
//allow invalid certificates for connecting other nodes in the cluster
86+
//required when querier/prism server tries to connect to other nodes via IP address directly
87+
//but the certificate is valid for a specific domain name
88+
.danger_accept_invalid_certs(true)
8589
.build()
8690
.expect("Construction of client shouldn't fail")
8791
});

0 commit comments

Comments
 (0)