mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add common sensitive names to generated filter parameters
These added names are distilled from the filter_parameters config of a number of open source Rails applications.
This commit is contained in:
parent
3274d5a093
commit
62570a8016
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
# Configure sensitive parameters which will be filtered from the log file.
|
||||||
Rails.application.config.filter_parameters += [:password, :secret]
|
Rails.application.config.filter_parameters += [
|
||||||
|
:password, :secret, :token, :_key, :auth, :crypt, :salt, :certificate, :otp, :access, :private, :protected, :ssn
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue