rtb-redact 0.6.1

Free-form secret redaction for log lines, telemetry events, and diagnostic surfaces. Part of the phpboyscout Rust toolkit.
Documentation

rtb-redact

Part of the phpboyscout Rust toolkit — small, framework-free crates extracted from rust-tool-base.

Free-form secret redaction for log lines, telemetry events, and diagnostic surfaces. Strips URL userinfo, credential query parameters, Authorization headers, well-known provider key prefixes, and long opaque tokens — conservatively ordered, erring toward over-redaction.

use rtb_redact::string;

let scrubbed = string("connect to postgres://app:hunter2@db/mydb");
assert!(scrubbed.contains("[redacted]"));
assert!(!scrubbed.contains("hunter2"));

Development

just ci runs the full local gate (fmt, clippy, nextest, doc, deny). Tests include a cucumber BDD suite (tests/bdd.rs). Releases are cut by release-plz from Conventional Commits — do not tag manually.

License

MIT