From 7b3e2b006ebbb910e16f914055bf158a551cbdce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Miguel=20Olmo=20Mart=C3=ADnez?= Date: Mon, 23 Dec 2019 10:46:02 +0100 Subject: [PATCH] ceph: Do not log sensitive information in debug mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix security issues identified by TrailOfBits: Logging of sensitive information in debug mode Problematic debug lines which can contain sensitive data have been removed Resolves: #4568 Signed-off-by: Juan Miguel Olmo Martínez --- pkg/util/sys/parse.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/util/sys/parse.go b/pkg/util/sys/parse.go index 1dcb22fa1..b3adeda71 100644 --- a/pkg/util/sys/parse.go +++ b/pkg/util/sys/parse.go @@ -22,13 +22,11 @@ import ( // grep finds the *first* line that matches, rather than multiple lines func Grep(input, searchFor string) string { - logger.Debugf("grep. search=%s, input=%s", searchFor, input) if input == "" || searchFor == "" { return "" } for _, line := range strings.Split(input, "\n") { if matched, _ := regexp.MatchString(searchFor, line); matched { - logger.Debugf("grep found line: %s", line) return line } }