Redactor rewrites log entries/fields in place to strip secrets before the underlying zap core writes them out. Implementations live outside this package (enterprise plugs in one that uses its secret detector) so OSS keploy stays free of product-specific redaction rules. There are two redaction hook
| 36 | // Implementations MUST be safe for concurrent use — the methods are called |
| 37 | // on the log hot path from any goroutine. |
| 38 | type Redactor interface { |
| 39 | RedactEntry(ent *zapcore.Entry) |
| 40 | RedactField(f *zapcore.Field) |
| 41 | RedactEncoded(text string) string |
| 42 | } |
| 43 | |
| 44 | // redactorHolder wraps Redactor so atomic.Value always stores the same |
| 45 | // concrete type (atomic.Value panics on type changes across Stores). |
no outgoing calls
no test coverage detected