From c25e75f0b544139c4cb9b9c22398c94b742868d6 Mon Sep 17 00:00:00 2001 From: Poorna Krishnamoorthy Date: Wed, 10 Mar 2021 11:05:38 -0800 Subject: [PATCH] Fix redact LDAP password properly (#11762) fixes #11742 previous pull request #11750 fixed only the web trace --- cmd/http-tracer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/http-tracer.go b/cmd/http-tracer.go index 89239f7dc..621d717a3 100644 --- a/cmd/http-tracer.go +++ b/cmd/http-tracer.go @@ -197,13 +197,12 @@ func Trace(f http.HandlerFunc, logBody bool, w http.ResponseWriter, r *http.Requ if host, _, err := net.SplitHostPort(t.NodeName); err == nil { t.NodeName = host } - rq := trace.RequestInfo{ Time: time.Now().UTC(), Proto: r.Proto, Method: r.Method, Path: r.URL.Path, - RawQuery: r.URL.RawQuery, + RawQuery: redactLDAPPwd(r.URL.RawQuery), Client: handlers.GetSourceIP(r), Headers: reqHeaders, }