trufflehog/pkg/log
Cody Rose f42f63271b
Create global log redaction capability (#3522)
Some source use client libraries that can emit errors that contain sensitive information - in particular, git-facing libraries that embed tokens into repository URLs. This PR introduces a way of redacting them - starting with GitLab (where we've seen this most recently), but in theory extensible to other sources as needed.

This implementation uses a custom zap core; this might also be possible with a custom zap encoder, but I didn't test it out.

(The deleted core.go file was entirely unused.)
2024-10-29 09:44:07 -04:00
..
dynamic_redactor.go Create global log redaction capability (#3522) 2024-10-29 09:44:07 -04:00
level.go Create global log redaction capability (#3522) 2024-10-29 09:44:07 -04:00
log.go Create global log redaction capability (#3522) 2024-10-29 09:44:07 -04:00
log_test.go Create global log redaction capability (#3522) 2024-10-29 09:44:07 -04:00
redaction_core.go Create global log redaction capability (#3522) 2024-10-29 09:44:07 -04:00