Documentation
¶
Overview ¶
Package redact contains cross-cutting trust-boundary sanitizers.
Index ¶
Constants ¶
View Source
const Replacement = "[REDACTED]"
Variables ¶
This section is empty.
Functions ¶
func RedactJSON ¶
RedactJSON recursively redacts sensitive field values and credential-like strings. Invalid JSON is rejected so callers cannot accidentally publish a truncated or partially redacted document.
func RedactText ¶
RedactText removes common credentials, credential-bearing URLs, and every caller-supplied secret literal from untrusted text before it crosses a log, event, result, artifact, or protocol error boundary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.