Skip to content

Commit

Permalink
fix: mask auth secret. Fixes: #1336 (#1337)
Browse files Browse the repository at this point in the history
* fix: mask auth secret. Fixes: #1336

Signed-off-by: Derek Wang <[email protected]>

* ok

Signed-off-by: Derek Wang <[email protected]>
  • Loading branch information
whynowy committed Sep 21, 2021
1 parent 8d95d1b commit 0e86bbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eventsources/common/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ func startServer(router Router, controller *Controller) {
return
}
}
if request.Header.Get("Authorization") != "" {
// Auth secret stops here
request.Header.Set("Authorization", "*** Masked Auth Secret ***")
}
router.HandleRoute(writer, request)
})
}
Expand Down

0 comments on commit 0e86bbe

Please sign in to comment.