mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Fix redact LDAP password properly (#11762)
fixes #11742 previous pull request #11750 fixed only the web trace
This commit is contained in:
parent
3ffe520643
commit
c25e75f0b5
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user