Skip to content
Snippets Groups Projects

Filter query-string secrets out of logged URLs

Merged Nick Thomas requested to merge nick.thomas/gitlab-workhorse:71-hide-query-string into master

Modify workhorse so that private-token and authenticity-token query-string parameters are not logged. Instead, they will be displayed as authenticity_token=[FILTERED]. The remainder of the query string will be displayed unaltered

Every URL logged should be passed through ScrubURLParams. I looked into having a wrapper around the logWriter in gitlab-workhorse/logging.go, but this would slow down logging significantly and wouldn't be guaranteed to work anyway (since the message may be split into two Write() calls across the query-string boundary).

Related to #71 (closed)

Edited by Nick Thomas

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading