Skip to content
Snippets Groups Projects
Commit 1d1f5573 authored by Francé Wilke's avatar Francé Wilke
Browse files

Exclude authorisation header from api logs

parent f2075728
Branches
Tags
No related merge requests found
......@@ -60,6 +60,14 @@ func GenerateIncomingAPILog(startTime time.Time, requestID *string, claim map[st
typeString = "webhook-incoming"
}
// Remove the API key in the header
if req.Headers["authorization"] != "" {
req.Headers["authorization"] = "***"
}
if req.Headers["Authorization"] != "" {
req.Headers["Authorization"] = "***"
}
apiLog := ApiLog{
StartTime: startTime,
EndTime: endTime,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment