diff options
author | Rafael França <rafael@franca.dev> | 2019-07-24 14:24:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 14:24:19 -0400 |
commit | 0744e15a35446865c6eced891a1356ccff4513d9 (patch) | |
tree | 2bfa5bb51a2d85ecb1191b0e16f960f46e2863ed /railties/lib/rails | |
parent | bcc3d625b446142842d26f4c8a32740a4cafc60b (diff) | |
parent | 62570a8016f9f74e07384ae4f7403ea5b2ced72f (diff) | |
download | rails-0744e15a35446865c6eced891a1356ccff4513d9.tar.gz rails-0744e15a35446865c6eced891a1356ccff4513d9.tar.bz2 rails-0744e15a35446865c6eced891a1356ccff4513d9.zip |
Merge pull request #34218 from eliotsykes/filter-common-sensitive-params
Add common sensitive names to generated filter parameters
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt index 4a994e1e7b..eea99edb65 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt @@ -1,4 +1,6 @@ # Be sure to restart your server when you modify this file. # Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] +Rails.application.config.filter_parameters += [ + :password, :secret, :token, :_key, :auth, :crypt, :salt, :certificate, :otp, :access, :private, :protected, :ssn +] |