Active Job parameter log filtering

Hi,

I was thinking of adding log filtering for ActiveJob parameters. I noticed in my app that sensitive tokens passed as arguments to AJ were logged and I rather not have that. The readme for Devise also mentions this and suggests raising the log level, which IMO is treating the symptom instead of the cause.

With this post I’m hoping to get some guidance regarding implementation. Would it be appropriate to reuse the config.filter_parameters array or should a new config option be introduced? What would be the best location to extract the code from action_dispatch/http/parameter_filter.rb to - or should it be copied to ActiveJob?

Thanks,

Bart