class Raven::Processor::SanitizeData

Defined in:

raven/processors/sanitize_data.cr

Constant Summary

CREDIT_CARD_PATTERN = /\b(?:3[47]\d|(?:4\d|5[1-5]|65)\d{2}|6011)\d{12}\b/
DEFAULT_FIELDS = ["authorization", "password", "password_repeat", "passwd", "secret", "ssn", /social(.*)?sec/i]

Constructors

Instance Method Summary

Instance methods inherited from class Raven::Processor

process(data) process

Constructor methods inherited from class Raven::Processor

new(client : Client) new

Constructor Detail

def self.new(client) #

[View source]

Instance Method Detail

def process(key, value) #

ameba:disable Metrics/CyclomaticComplexity


[View source]
def process(data) #

[View source]
def sanitize_credit_cards=(sanitize_credit_cards : Bool) #

[View source]
def sanitize_credit_cards? : Bool #

[View source]
def sanitize_fields : Array(String | Regex) #

[View source]
def sanitize_fields=(sanitize_fields : Array(String | Regex)) #

[View source]
def sanitize_fields_excluded : Array(String | Regex) #

[View source]
def sanitize_fields_excluded=(sanitize_fields_excluded : Array(String | Regex)) #

[View source]