Documentation
¶
Overview ¶
Package redact shares structured secret handling without cryptographic dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Redact ¶
Redact returns a recursively redacted copy of JSON-like data. Free text must not contain secrets.
func SafeText ¶
SafeText masks common credential assignments, private-key PEM blocks and credential-bearing URLs. Application-specific unlabeled secrets still require an explicit application sanitizer and must not be logged.
func SafeURL ¶
SafeURL removes passwords and sensitive query values. It returns a copy and never changes the caller's URL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.