Filtering Params

Important: These docs are for the outdated Jets 5 versions and below. For the latest Jets docs: docs.rubyonjets.com

By default, all params and event payload will be logged to CloudWatch in every request. You can override this setting with filtered_parameters to filter out sensitive information and mask it as FILTERED within the request log.

Jets.application.configure do
  config.controllers.filtered_parameters += [:password, :credit_card]
end

You can also use dot notation for nested parameters

class PostsController < ApplicationController
  config.controllers.filtered_parameters += ["user.password"]
end