Security/GitHub/Tool

trace-scrub

by maomao-1937·Last observed 2026-10-27
★ 0 stars⑂ 0 forks

trace-scrub is a local Python CLI that redacts sensitive fields from saved JSON or JSONL debugging traces before they are shared. It replaces matching fields and listed literal secrets, writes a separate output file, and leaves the original unchanged.

Useful for

  • Prepare a local debugging trace as a fixture for sharing.

Key features

  • It supports exact, case-insensitive key matching after normalizing punctuation, and literal secret replacement in string values from a JSON secrets file.

Requirements & limitations

  • Requires Python 3.11+ and uses only the standard library.
  • It does not automatically discover all sensitive information or guarantee a file is safe to publish; review the output before sharing.

Project information

CategorySecurity
TypeTool
Author / organizationmaomao-1937
LicenseMIT
Last observed2026-10-27

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote