Tool Release/Version Update
Sources: 1 • Confidence: Medium • Updated: 2026-04-12 10:01
Key takeaways
- scan-for-secrets version 0.3 has been released.
- scan-for-secrets 0.3 adds a -r/--redact option that lists secret matches, asks for confirmation, and then replaces each match with the string "REDACTED" while respecting escaping rules.
- scan-for-secrets 0.3 adds a Python function redact_file(file_path: str | Path, secrets: list[str], replacement: str = "REDACTED") that returns an int.
Sections
Tool Release/Version Update
- scan-for-secrets version 0.3 has been released.
Interactive Secret Redaction In Cli Workflow
- scan-for-secrets 0.3 adds a -r/--redact option that lists secret matches, asks for confirmation, and then replaces each match with the string "REDACTED" while respecting escaping rules.
Programmatic Redaction Api For Integration
- scan-for-secrets 0.3 adds a Python function redact_file(file_path: str | Path, secrets: list[str], replacement: str = "REDACTED") that returns an int.
Unknowns
- What other changes (besides redaction) are included in scan-for-secrets 0.3?
- What exactly does the -r/--redact option’s "respecting escaping rules" guarantee, and for which input formats/encodings?
- What does redact_file return (e.g., number of replacements, success/error code), and how are errors reported?
- Does redaction operate in-place on files, and what safeguards exist to prevent irreversible loss of original data (e.g., backups, dry-run modes)?
- What secret match types/pattern sources are supported by the redaction flow, and how does it handle overlapping/duplicate matches?