Преглед изворни кода

[rails] Don't filter any parameters (#9519)

+----------------------------+---------+------+------+-----+-----+-------+------------+--------------+
|                 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|
+----------------------------+---------+------+------+-----+-----+-------+------------+--------------+
Petrik de Heus пре 6 месеци
родитељ
комит
1d193b2f26

+ 1 - 3
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 = []