scan-for-secrets 0.3
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Anyone sharing code or logs can now automatically scrub secrets from files before publishing, replacing the error-prone manual find-and-replace that leaks API keys.
Developer Simon Willison updated his open-source tool scan-for-secrets to version 0.3 on 6th April 2026. The tool finds sensitive items like passwords or API keys, called secrets, in files you plan to share. Version 0.3 adds a --redact option that lists what it found, asks you to confirm, and replaces every match with the word REDACTED, handling tricky text-escaping rules. The tool is free to use today.
scan-for-secrets 0.3, released 6th April 2026, addresses the common and costly mistake of accidentally publishing API keys or passwords in shared code. The new --redact mode shows matches, requires human confirmation, then rewrites files safely, reducing risk that secrets reach public repositories. It is a free, small open-source utility; no pricing, adoption figures or vendor involvement are mentioned.
scan-for-secrets 0.3 adds a -r/--redact CLI flag that prints all secret matches, prompts for confirmation, and rewrites each match as REDACTED while respecting escaping rules. It also exposes a Python API: redact_file(file_path: str | Path, secrets: list[str], replacement: str = "REDACTED") -> int, returning a count. No benchmark data or performance figures are provided in the post.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
scan-for-secrets Simon Willison WorkOS Datasette Pyodide Claude
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.