From fa3b47dc432d6dc98876b4f1275eac88ff685ba8 Mon Sep 17 00:00:00 2001 From: Petrik Date: Sat, 11 Jan 2025 19:12:27 +0100 Subject: [PATCH] [rails] Don't filter any parameters +----------------------------+---------+------+------+-----+-----+-------+------------+--------------+ | branch_name|plaintext|update| json| db|query|fortune|cached-query|weighted_score| +----------------------------+---------+------+------+-----+-----+-------+------------+--------------+ | master| 19856| 8736| 58300|22475|15399| 15217| 15521| 1094| | rails/empty-param-filters| 20338| 9586| 58739|23154|15566| 16374| 16798| 1162| +----------------------------+---------+------+------+-----+-----+-------+------------+--------------+ --- .../rails/config/initializers/filter_parameter_logging.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frameworks/Ruby/rails/config/initializers/filter_parameter_logging.rb b/frameworks/Ruby/rails/config/initializers/filter_parameter_logging.rb index c0b717f7ecb..e058dbb3656 100644 --- a/frameworks/Ruby/rails/config/initializers/filter_parameter_logging.rb +++ b/frameworks/Ruby/rails/config/initializers/filter_parameter_logging.rb @@ -3,6 +3,4 @@ # Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. # Use this to limit dissemination of sensitive information. # See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors. -Rails.application.config.filter_parameters += [ - :passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc -] +Rails.application.config.filter_parameters = []