Redacts secrets before values cross logs, UI, telemetry, status, or model-visible tool results.
Redaction is intentionally conservative. Secret-bearing map keys never expose values, and common token-shaped substrings are replaced even when they appear inside a free-form error string from an external process.
Summary
Functions
Formats and redacts an arbitrary error term.
Redacts argv-style secret values while preserving non-secret arguments.
Redacts environment values while keeping keys visible.
Redacts an error string or command output string.
Redacts an arbitrary term while preserving safe shape for diagnostics.
Returns true when a key name conventionally carries a secret.
Types
@type redacted() :: String.t()
Functions
Formats and redacts an arbitrary error term.
Redacts argv-style secret values while preserving non-secret arguments.
Redacts environment values while keeping keys visible.
Redacts an error string or command output string.
Redacts an arbitrary term while preserving safe shape for diagnostics.
Returns true when a key name conventionally carries a secret.