Skip to content
Snippets Groups Projects
Commit 8d1fa44f authored by Douwe Maan's avatar Douwe Maan
Browse files

Filter private_token and password_confirmation params from logs.

Closes #1770.
parent bc57ff0e
Branches
Tags
No related merge requests found
Loading
Loading
@@ -31,7 +31,7 @@ module Gitlab
config.encoding = "utf-8"
 
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters.push(*[:password])
config.filter_parameters.push(:password, :password_confirmation, :private_token)
 
# Enable escaping HTML in JSON.
config.active_support.escape_html_entities_in_json = true
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment