summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-06 22:55:43 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-06 22:55:43 +0100
commit8d1fa44f2327f88d00bee6d51da96291a73188a1 (patch)
tree24a07b05c84956a0e7d45254c7c1f74358ca3636 /config
parentbc57ff0ef023db3d07f1adfa6a309fb4a24ed203 (diff)
downloadgitlab-ce-8d1fa44f2327f88d00bee6d51da96291a73188a1.tar.gz
Filter private_token and password_confirmation params from logs.
Closes #1770.
Diffstat (limited to 'config')
-rw-r--r--config/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb
index 24ba219cf3a..bd4578848c5 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -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