Filter private_token and password_confirmation params from logs.
Closes #1770.
This commit is contained in:
parent
bc57ff0ef0
commit
8d1fa44f23
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue