Module: Julewire::Redaction

Extended by:
Core::Integration::Configurable
Defined in:
lib/julewire/redaction.rb,
lib/julewire/redaction/matcher.rb,
lib/julewire/redaction/version.rb,
lib/julewire/redaction/processor.rb,
lib/julewire/redaction/configuration.rb,
lib/julewire/redaction/string_redactor.rb

Defined Under Namespace

Classes: Configuration, Matcher, PathFilter, Processor, StringRedactor

Constant Summary collapse

AUTH_FILTERS =

Header names may arrive as normalized symbols or literal HTTP spellings.

%i[
  access_token
  refresh_token
  id_token
  client_secret
  assertion
  code_verifier
  token
  authorization
  cookie
  set_cookie
  x_api_key
  set-cookie
  x-api-key
].freeze
COMMON_FILTERS =
%i[
  api_key
  password
  passwd
  private_key
  secret
].freeze
SECRET_FILTERS =
(AUTH_FILTERS + COMMON_FILTERS + %i[
  crypt
  salt
  certificate
  otp
  cvv
  cvc
]).uniq.freeze
PII_FILTERS =
%i[
  email
  ssn
].freeze
DEFAULT_FILTERS =
(SECRET_FILTERS + PII_FILTERS).uniq.freeze
DEFAULT_MASK =
"[FILTERED]"
VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.path(filter) ⇒ Object



53
54
55
# File 'lib/julewire/redaction.rb', line 53

def path(filter)
  PathFilter.new(filter)
end