Update parameter filtering to Rails 7.0 template

This commit is contained in:
Maikel Linke
2025-08-12 12:45:48 +10:00
parent 7afdd13b64
commit 97d21d8cbe
2 changed files with 10 additions and 12 deletions

View File

@@ -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

View File

@@ -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,
]