diff --git a/bottlecap/Cargo.lock b/bottlecap/Cargo.lock index d3352237f..313ef20f9 100644 --- a/bottlecap/Cargo.lock +++ b/bottlecap/Cargo.lock @@ -727,7 +727,7 @@ dependencies = [ [[package]] name = "datadog-fips" version = "0.1.0" -source = "git+https://github.com/DataDog/serverless-components?rev=fd8b7a9bcec2f19b305bb74b7195ca3910538e5b#fd8b7a9bcec2f19b305bb74b7195ca3910538e5b" +source = "git+https://github.com/DataDog/serverless-components?rev=18b49baba8bfef97060d7edd8b830584d0da3373#18b49baba8bfef97060d7edd8b830584d0da3373" dependencies = [ "reqwest", "rustls", @@ -836,7 +836,7 @@ dependencies = [ [[package]] name = "dogstatsd" version = "0.1.0" -source = "git+https://github.com/DataDog/serverless-components?rev=fd8b7a9bcec2f19b305bb74b7195ca3910538e5b#fd8b7a9bcec2f19b305bb74b7195ca3910538e5b" +source = "git+https://github.com/DataDog/serverless-components?rev=18b49baba8bfef97060d7edd8b830584d0da3373#18b49baba8bfef97060d7edd8b830584d0da3373" dependencies = [ "datadog-fips", "datadog-protos", @@ -847,6 +847,7 @@ dependencies = [ "protobuf", "regex", "reqwest", + "rustls-pemfile", "serde", "serde_json", "thiserror 1.0.69", diff --git a/bottlecap/Cargo.toml b/bottlecap/Cargo.toml index 723c57f3d..6efb6ca60 100644 --- a/bottlecap/Cargo.toml +++ b/bottlecap/Cargo.toml @@ -71,8 +71,8 @@ libdd-trace-utils = { git = "https://github.com/DataDog/libdatadog", rev = "73c6 libdd-trace-normalization = { git = "https://github.com/DataDog/libdatadog", rev = "73c675b79f81978ee1190be6af0c5abec997e3b0" } libdd-trace-obfuscation = { git = "https://github.com/DataDog/libdatadog", rev = "73c675b79f81978ee1190be6af0c5abec997e3b0" } libdd-trace-stats = { git = "https://github.com/DataDog/libdatadog", rev = "73c675b79f81978ee1190be6af0c5abec997e3b0" } -dogstatsd = { git = "https://github.com/DataDog/serverless-components", rev = "fd8b7a9bcec2f19b305bb74b7195ca3910538e5b", default-features = false } -datadog-fips = { git = "https://github.com/DataDog/serverless-components", rev = "fd8b7a9bcec2f19b305bb74b7195ca3910538e5b", default-features = false } +dogstatsd = { git = "https://github.com/DataDog/serverless-components", rev = "18b49baba8bfef97060d7edd8b830584d0da3373", default-features = false } +datadog-fips = { git = "https://github.com/DataDog/serverless-components", rev = "18b49baba8bfef97060d7edd8b830584d0da3373", default-features = false } libddwaf = { version = "1.28.1", git = "https://github.com/DataDog/libddwaf-rust", rev = "d1534a158d976bd4f747bf9fcc58e0712d2d17fc", default-features = false, features = ["serde"] } [dev-dependencies] diff --git a/bottlecap/src/bin/bottlecap/main.rs b/bottlecap/src/bin/bottlecap/main.rs index e68996c3b..4c303219b 100644 --- a/bottlecap/src/bin/bottlecap/main.rs +++ b/bottlecap/src/bin/bottlecap/main.rs @@ -1622,6 +1622,7 @@ fn start_metrics_flushers( aggregator_handle: metrics_aggr_handle.clone(), metrics_intake_url_prefix: metrics_intake_url.expect("can't parse site or override"), https_proxy: config.proxy_https.clone(), + ca_cert_path: config.tls_cert_file.clone(), timeout: Duration::from_secs(config.flush_timeout), retry_strategy: DsdRetryStrategy::Immediate(3), compression_level: config.metrics_config_compression_level, @@ -1651,6 +1652,7 @@ fn start_metrics_flushers( aggregator_handle: metrics_aggr_handle.clone(), metrics_intake_url_prefix: metrics_intake_url.clone(), https_proxy: config.proxy_https.clone(), + ca_cert_path: config.tls_cert_file.clone(), timeout: Duration::from_secs(config.flush_timeout), retry_strategy: DsdRetryStrategy::Immediate(3), compression_level: config.metrics_config_compression_level, diff --git a/bottlecap/tests/metrics_integration_test.rs b/bottlecap/tests/metrics_integration_test.rs index 60e596a28..c7ca6b134 100644 --- a/bottlecap/tests/metrics_integration_test.rs +++ b/bottlecap/tests/metrics_integration_test.rs @@ -52,6 +52,7 @@ async fn test_enhanced_metrics() { metrics_intake_url_prefix: MetricsIntakeUrlPrefix::new(None, Some(metrics_site_override)) .expect("can't parse metrics intake URL from site"), https_proxy: None, + ca_cert_path: None, timeout: std::time::Duration::from_secs(5), retry_strategy: dogstatsd::datadog::RetryStrategy::Immediate(1), compression_level: 6,