diff --git a/ddcommon/clippy.toml b/ddcommon/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/ddcommon/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +] diff --git a/trace-normalization/clippy.toml b/trace-normalization/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/trace-normalization/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +] diff --git a/trace-obfuscation/clippy.toml b/trace-obfuscation/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/trace-obfuscation/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +] diff --git a/trace-protobuf/clippy.toml b/trace-protobuf/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/trace-protobuf/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +] diff --git a/trace-utils/clippy.toml b/trace-utils/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/trace-utils/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +]