diff --git a/config/application.rb b/config/application.rb index c467ec570c..73b0de6384 100644 --- a/config/application.rb +++ b/config/application.rb @@ -80,16 +80,6 @@ module Openfoodnetwork end end - # filter sensitive information during logging - initializer "spree.params.filter" do |app| - app.config.filter_parameters += [ - :password, - :password_confirmation, - :number, - :verification_value - ] - end - initializer "load_spree_calculators" do |app| # Register Spree calculators Rails.application.reloader.to_prepare do diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb index b2319d12f3..2b865e64f3 100644 --- a/config/initializers/filter_parameter_logging.rb +++ b/config/initializers/filter_parameter_logging.rb @@ -1,4 +1,12 @@ # frozen_string_literal: true -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password, :vine_api_key, :vine_secret] +# Be sure to restart your server when you modify this file. + +# Configure parameters to be 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, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, + :number, :verification_value, + :vine_api_key, :vine_secret, +]