pub struct RedactionConfig {
pub headers: Vec<String>,
pub body_fields: Vec<String>,
}Expand description
Which header names and body field names to strip from a capture before it is stored/shipped.
Both lists are matched case-insensitively. Empty lists (the default) mean raw capture — nothing is stripped. Redaction is applied node-side by the capture module (C1), so a redacted value never travels to the control-plane.
Fields§
§headers: Vec<String>Header names whose value is replaced with ***REDACTED*** (e.g. authorization, cookie,
set-cookie). Compared case-insensitively against the request header names.
body_fields: Vec<String>Body field names (JSON keys / form parameters) whose value is replaced with ***REDACTED***
(e.g. password, token, card). Compared case-insensitively.
Implementations§
Source§impl RedactionConfig
impl RedactionConfig
Sourcepub fn header_redacted(&self, name: &str) -> bool
pub fn header_redacted(&self, name: &str) -> bool
Whether name (a request header name) must be redacted. Case-insensitive.
Sourcepub fn field_redacted(&self, name: &str) -> bool
pub fn field_redacted(&self, name: &str) -> bool
Whether name (a body field / form parameter name) must be redacted. Case-insensitive.