diff --git a/services/identity/src/log.rs b/services/identity/src/log.rs --- a/services/identity/src/log.rs +++ b/services/identity/src/log.rs @@ -1,6 +1,15 @@ use crate::config::CONFIG; pub fn redact_sensitive_data(sensitive_data: &str) -> &str { + const ALLOWED_VALUES: [&str; 2] = [ + "ashoat", + crate::constants::staff::AUTHORITATIVE_KEYSERVER_OWNER_USER_ID, + ]; + + if ALLOWED_VALUES.contains(&sensitive_data) { + return sensitive_data; + } + if CONFIG.redact_sensitive_data { "REDACTED" } else {