audit: Add request path and host to audit event (#17099)

This commit is contained in:
Anis Eleuch
2023-04-28 06:18:24 +01:00
committed by GitHub
parent d5aff735be
commit 5c83c9724f
3 changed files with 5 additions and 3 deletions

View File

@@ -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))