mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
audit: Add request path and host to audit event (#17099)
This commit is contained in:
@@ -47,6 +47,8 @@ func ToEntry(w http.ResponseWriter, r *http.Request, reqClaims map[string]interf
|
||||
entry.RemoteHost = handlers.GetSourceIP(r)
|
||||
entry.UserAgent = r.UserAgent()
|
||||
entry.ReqClaims = reqClaims
|
||||
entry.ReqHost = r.Host
|
||||
entry.ReqPath = r.URL.Path
|
||||
|
||||
q := r.URL.Query()
|
||||
reqQuery := make(map[string]string, len(q))
|
||||
|
||||
Reference in New Issue
Block a user