Skip to content

Commit 57db12a

Browse files
authored
fix(http sink): cert verification with proxy enabled (#13759)
1 parent bbe6eb8 commit 57db12a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/http.rs

+7
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,15 @@ pub fn build_proxy_connector(
139139
tls_settings: MaybeTlsSettings,
140140
proxy_config: &ProxyConfig,
141141
) -> Result<ProxyConnector<HttpsConnector<HttpConnector>>, HttpError> {
142+
// Create dedicated TLS connector for the proxied connection with user TLS settings.
143+
let tls = tls_connector_builder(&tls_settings)
144+
.context(BuildTlsConnectorSnafu)?
145+
.build();
142146
let https = build_tls_connector(tls_settings)?;
143147
let mut proxy = ProxyConnector::new(https).unwrap();
148+
// Make proxy connector aware of user TLS settings by setting the TLS connector:
149+
// https://github.com/vectordotdev/vector/issues/13683
150+
proxy.set_tls(Some(tls));
144151
proxy_config
145152
.configure(&mut proxy)
146153
.context(MakeProxyConnectorSnafu)?;

0 commit comments

Comments
 (0)