Action Dispatch HTTP Filter Parameters

Allows you to specify sensitive query string and POST parameters to filter from the request log.

# Replaces values with "[FILTERED]" for keys that match /foo|bar/i.
env["action_dispatch.parameter_filter"] = [:foo, "bar"]

For more information about filter behavior, see ActiveSupport::ParameterFilter.

Constants

PAIR_RE = %r{(#{KV_RE})=(#{KV_RE})}

KV_RE = "[^&;=]+"

NULL_ENV_FILTER = ActiveSupport::ParameterFilter.new ENV_MATCH

NULL_PARAM_FILTER = ActiveSupport::ParameterFilter.new # :nodoc:

ENV_MATCH = [/RAW_POST_DATA/, "rack.request.form_vars"]

Attributes

Show files where this module is defined (1 file)
Register or log in to add new notes.