Add audit logging of site replication multipart proxying (#17122)

This commit is contained in:
Poorna 2023-05-03 11:19:45 -07:00 committed by GitHub
parent 0c0820caef
commit 90e2cc3d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -576,6 +576,8 @@ func setUploadForwardingHandler(h http.Handler) http.Handler {
for k := range w.Header() {
w.Header().Del(k)
}
ctx := newContext(r, w, "SiteReplicationUploadForwarding")
defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
globalForwarder.ServeHTTP(w, r)
return
}