Your logger prints secrets after you redacted them
go
dev.to
A redaction hook sees values. The logger prints text. Errors, structs and printf arguments turn into text after the hook has run, so the secret inside them goes out as it came in. We found this in five of the six languages flare-redact supports and fixed it in 1.12.1. Here is the mechanism, the real output, and a test you can run against your own logger. Short answer: redact what the logger will print, not only the values it is handed. A value the hook does not recognise (an error, a struct, a