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

This commit is contained in:
Anis Eleuch authored and GitHub committed 2023-04-27 22:18:24 -07:00
1 parent d5aff735be
commit 5c83c9724f
3 files changed
+5 -3

No files matched your search

+2
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))