From 023b57b29355a363dfc4290779781ca7ec4be8cd Mon Sep 17 00:00:00 2001 From: Jeremie Drouet Date: Tue, 13 Sep 2022 09:07:27 +0000 Subject: [PATCH] make SensitiveString as configurable Signed-off-by: Jeremie Drouet --- Cargo.lock | 1 + lib/vector-common/Cargo.toml | 1 + lib/vector-common/src/sensitive_string.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 137d055487d71..932003fdd0594 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8706,6 +8706,7 @@ dependencies = [ "tracing 0.1.34", "value", "vector-config", + "vector-config-common", "vector-config-macros", ] diff --git a/lib/vector-common/Cargo.toml b/lib/vector-common/Cargo.toml index 6cd2894cd9d89..0d26269450dcc 100644 --- a/lib/vector-common/Cargo.toml +++ b/lib/vector-common/Cargo.toml @@ -66,6 +66,7 @@ tokio = { version = "1.20.1", default-features = false, features = ["macros", "t tracing = { version = "0.1.34", default-features = false } value = { path = "../value", features = ["json"] } vector-config = { path = "../vector-config" } +vector-config-common = { path = "../vector-config-common" } vector-config-macros = { path = "../vector-config-macros" } [dev-dependencies] diff --git a/lib/vector-common/src/sensitive_string.rs b/lib/vector-common/src/sensitive_string.rs index 82399c7aa5fb4..1f5987a573bbe 100644 --- a/lib/vector-common/src/sensitive_string.rs +++ b/lib/vector-common/src/sensitive_string.rs @@ -7,6 +7,7 @@ use vector_config::{configurable_component, ConfigurableString}; derive(::serde::Deserialize, ::serde::Serialize), serde(from = "String", into = "String") )] +#[configurable(metadata(sensitive))] #[derive(Clone, Default, PartialEq, Eq)] pub struct SensitiveString(String);