Skip to content

Commit

Permalink
make SensitiveString as configurable
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Drouet <jeremie.drouet@datadoghq.com>
  • Loading branch information
jdrouet committed Sep 13, 2022
1 parent c91b872 commit 023b57b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/vector-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions lib/vector-common/src/sensitive_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 023b57b

Please sign in to comment.