You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/secrets/mod.rs
+48-14Lines changed: 48 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,9 @@
2
2
use std::collections::{HashMap,HashSet};
3
3
4
4
use enum_dispatch::enum_dispatch;
5
-
use vector_lib::configurable::{configurable_component,NamedComponent};
5
+
use vector_lib::configurable::configurable_component;
6
6
7
+
usecrate::config::GenerateConfig;
7
8
usecrate::{config::SecretBackend, signal};
8
9
9
10
#[cfg(feature = "secrets-aws-secrets-manager")]
@@ -13,12 +14,50 @@ mod exec;
13
14
mod file;
14
15
mod test;
15
16
16
-
/// Configurable secret backends in Vector.
17
+
/// Configuration options to retrieve secrets from external backend in order to avoid storing secrets in plaintext
18
+
/// in Vector config. Multiple backends can be configured. Use `SECRET[<backend_name>.<secret_key>]` to tell Vector to retrieve the secret. This placeholder is replaced by the secret
19
+
/// retrieved from the relevant backend.
20
+
///
21
+
/// When `type` is `exec`, the provided command will be run and provided a list of
22
+
/// secrets to fetch, determined from the configuration file, on stdin as JSON in the format:
0 commit comments