feat(leak-guard): suggest a scrub command on block #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/leak-guard-suggested-scrub"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On a leak block, leak-guard now prints a review-gated, ready-to-run scrub instead of leaving you to hand-edit:
sed -i.bak -E(single-quoted; the patterns only match real leaks, so a100.x.x.xplaceholder or<tailnet-name>is never touched)<osa-public-ip>Deliberately not silent auto-masking — rewriting under the author would hide that a real value was in the diff and risk clobbering legitimate example IPs. Block-by-default stays; the fix is one reviewed command away.
Self-test unchanged (asserts exit codes, not output) and still passes.
🤖 Generated with Claude Code