tilde.news/config/initializers/filter_parameter_logging.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
513 B
Ruby
Raw Normal View History

2023-09-14 13:37:09 +00:00
# typed: false
2013-12-30 22:29:00 +00:00
# Be sure to restart your server when you modify this file.
2023-12-24 04:41:35 +00:00
# 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.
2022-07-06 14:01:46 +00:00
Rails.application.config.filter_parameters += [
2023-12-24 04:41:35 +00:00
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn,
:password, :password_confirmation, :totp_code
2022-07-06 14:01:46 +00:00
]