aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers/filter_parameter_logging.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/filter_parameter_logging.rb')
-rw-r--r--config/initializers/filter_parameter_logging.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb
new file mode 100644
index 0000000..c2d89e2
--- /dev/null
+++ b/config/initializers/filter_parameter_logging.rb
@@ -0,0 +1,8 @@
+# Be sure to restart your server when you modify this file.
+
+# 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, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
+]