Module redact

Module redact 

Source
Expand description

Log Redaction

Provides secret redaction for stdout/stderr streams to prevent accidental secret exposure in CI logs.

Structs§

LogRedactor
Log redactor that replaces secret values with placeholders
ShortSecretWarning
Warning for short secrets that won’t be redacted

Constants§

MIN_SECRET_LENGTH
Minimum secret length to redact (shorter secrets may cause false positives)
REDACTED_PLACEHOLDER
Placeholder for redacted secrets

Functions§

redact_secrets
Redact secrets from a complete string (convenience function)