-
Notifications
You must be signed in to change notification settings - Fork 5
Secrets
Michael Kenney edited this page Aug 13, 2018
·
1 revision
bdlm/log
supports a "blacklist" of values that should not be logged. This can be used to help prevent or mitigate leaking secrets into log files:
import (
"github.com/bdlm/log"
)
func main() {
log.AddSecret("some-secret-text")
log.Info("the secret is 'some-secret-text'")
// Output: the secret is '****************'
}
Which one will reach the other side of the river: The one who dreams of a raft, or the one that hitchhikes to the next bridge?