redactkit 0.2.1

Prevent accidental leakage of secrets in Debug, tracing, and serialized output
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Common sensitive field names.
///
/// These are field names that often contain secrets or credentials.
pub const DEFAULT_SENSITIVE_FIELDS: &[&str] = &[
    "password",
    "passwd",
    "secret",
    "token",
    "access_token",
    "refresh_token",
    "api_key",
    "apikey",
    "authorization",
    "private_key",
    "client_secret",
    "database_url",
];