Sha256: 19424a4a95ad3fecaa499c8fc9ec1951339692544bd93b3d5389291af2cf8bfd

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

module Airbrake
  SENSITIVE_RACK_VARS = %w(
      HTTP_X_CSRF_TOKEN
      HTTP_COOKIE
      HTTP_AUTHORIZATION

      action_dispatch.request.unsigned_session_cookie
      action_dispatch.cookies
      action_dispatch.unsigned_session_cookie
      action_dispatch.secret_key_base
      action_dispatch.signed_cookie_salt
      action_dispatch.encrypted_cookie_salt
      action_dispatch.encrypted_signed_cookie_salt
      action_dispatch.http_auth_salt
      action_dispatch.secret_token

      rack.request.cookie_hash
      rack.request.cookie_string
      rack.request.form_vars

      rack.session
      rack.session.options
  )

  RACK_VARS_CONTAINING_INSTANCES = %w(
      action_controller.instance

      action_dispatch.backtrace_cleaner
      action_dispatch.routes
      action_dispatch.logger
      action_dispatch.key_generator

      rack-cache.storage

      rack.errors
      rack.input
  )

  SENSITIVE_ENV_VARS = [
      /secret/i,
      /password/i
  ]

  FILTERED_RACK_VARS = SENSITIVE_RACK_VARS + SENSITIVE_ENV_VARS + RACK_VARS_CONTAINING_INSTANCES
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
airbrakeV4rails5-4.3.8 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.8 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.7 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.6 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.5 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.4 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.3 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.2 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.1 lib/airbrake/utils/rack_filters.rb
airbrake-4.3.0 lib/airbrake/utils/rack_filters.rb