Skip to main content

config_value_audit_string

Function config_value_audit_string 

Source
pub fn config_value_audit_string(
    value_type: impl Into<ConfigValueType>,
    value: String,
    is_sensitive: bool,
    on_invalid: impl FnOnce(&ConfigCoreError),
) -> String
Expand description

Builds an audit-safe string from a stored configuration value.

Sensitive values are always represented by ConfigValue::REDACTED. Non-sensitive values use the same lossy read path as API presentation so audit recording does not fail because of one malformed historical row.