Class: Sentry::Processor::PIISanitizer
- Inherits:
-
Raven::Processor
- Object
- Raven::Processor
- Sentry::Processor::PIISanitizer
- Defined in:
- lib/sentry/processor/pii_sanitizer.rb
Constant Summary collapse
- SANITIZED_FIELDS =
%w[ accountNumber accountType address_line1 address_line2 address_line3 bankName birth_date city common_name country dslogon_idvalue fileNumber firstName fname gender lastName lname mname participant_id phone postalCode routingNumber social ssn state street va_eauth_authorization va_eauth_birlsfilenumber va_eauth_gcIds vaEauthPnid zipCode ].freeze
- SANITIZER_EXCEPTIONS =
%w[ relaystate ].freeze
- PATTERN =
Regexp.union(SANITIZED_FIELDS.map { |field| field.downcase.tr('_', '') }).freeze
- JSON_STARTS_WITH =
['[', '{'].freeze
- FILTER_MASK =
'FILTERED-CLIENTSIDE'
- FILTER_MASK_NIL =
"#{FILTER_MASK}-NIL".freeze
- FILTER_MASK_BLANK =
"#{FILTER_MASK}-BLANK".freeze
Instance Method Summary collapse
Instance Method Details
#process(unsanitized_object) ⇒ Object
54 55 56 |
# File 'lib/sentry/processor/pii_sanitizer.rb', line 54 def process(unsanitized_object) sanitize(unsanitized_object.deep_dup) end |