Filter out variables from production logs

This prevents leakage of CI Secure Variables
This commit is contained in:
Kamil Trzcinski 2016-02-09 00:44:27 +01:00
parent bce482a59a
commit 4558bb1f4a

View file

@ -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, :password_confirmation, :private_token, :otp_attempt)
config.filter_parameters.push(:password, :password_confirmation, :private_token, :otp_attempt, :variables)
# Enable escaping HTML in JSON.
config.active_support.escape_html_entities_in_json = true