Skip to content

vox-redact API Reference (generated)

Crate: vox-redact · Version: 0.6.0 · Target: Library (lib.rs)

Regex-based redaction of secrets and PII from log lines and JSON values.

Conservative PII/secret redaction. Moved from vox-terminal-core::corpus::redact so non-terminal crates (e.g. agent operation capture) can reuse it without a backwards dependency edge.

Redaction is conservative: unknown patterns are left as-is. Only patterns with high precision (low false-positive rate) are elided.

FunctionDescription
redact_ownedRedact PII/secret patterns in free text. Conservative: unknown patterns pass through.
redact_argsRecursively redact a JSON value: values under secret-ish keys become "[REDACTED]"; all other string scalars are run through [redact_owned].
Dependency Topology, diagram 13 nodes, 2 edges: vox-orchestrator-mcp → vox-redact; vox-terminal-core → vox-redactvox-redactvox-orchestrator-mcpvox-terminal-core
Diagram source
graph {
direction: right
node vox_redact: "vox-redact"
node vox_orchestrator_mcp: "vox-orchestrator-mcp"
vox_orchestrator_mcp -> vox_redact
node vox_terminal_core: "vox-terminal-core"
vox_terminal_core -> vox_redact
}
Consumer CrateRole
vox-orchestrator-mcpDirect workspace dependent
vox-terminal-coreDirect workspace dependent
KindSymbolSignatureSourceDescription
fnredact_ownedpub fn redact_owned(text: &str) -> Stringcrates/vox-redact/src/lib.rs#L67-L74Redact PII/secret patterns in free text. Conservative: unknown patterns pass through.
fnredact_argspub fn redact_args(value: &serde_json::Value) -> serde_json::Valuecrates/vox-redact/src/lib.rs#L100-L118Recursively redact a JSON value: values under secret-ish keys become "[REDACTED]"; all other string scalars are run through [redact_owned].