embargo
A library and command-line tool that redact secrets from Go application logs and output.
What does it do?
You can process log attributes within an application or apply masking rules through MaskJSON and adapters. A separate command also redacts the output of other programs. It includes 19 built-in detectors and lets you add detector types as needed. Adding Guard to tests makes them fail if detected values appear in standard output, standard error, or other output. The root module has no dependencies beyond the Go standard library.
Key features
- Mask sensitive information in Go logs, error reports, HTTP access logs, and traces
- Mask other programs’ output with a command-line filter
- Use 19 built-in detectors and select or add detector types
- Use Guard to check test output and child processes for sensitive information exposure
- Run the root module without dependencies beyond the Go standard library