GDPR set some restrictions on us. One of them is avoiding logging sensitive data like a credit card number.
Recently we encountered an issue with having some undesired details in our logs due to ActiveJobs logging mechanism. Recently https://github.com/rails/rails/pull/37660 was merged, however, it has one drawback. It allows disabling all logs produced by a background job.
I thought that we can make usage of
Rails.application.config.filter_parameters configuration option and make usage of it to have jobs’ sensitive arguments filtered by default.
You can find my proposition here: Filter sensitive parameters in `ActiveJob` logs by default · springerigor/rails@02084de · GitHub.
Waiting for your opinions. Thanks in advance