Sha256: fb0badd93c13f61b427cac7ae12e07c6f16753024880299038b6290c7811e3a3
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
module PerconaMigrator module LogSanitizers class PasswordSanitizer PASSWORD_REPLACEMENT = '[filtered_password]' delegate :password_argument, to: :connection_details def initialize(connection_details) @connection_details = connection_details end def execute(log_statement) return log_statement if password_argument.blank? log_statement.gsub(password_argument, PASSWORD_REPLACEMENT) end private attr_accessor :connection_details end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
percona_migrator-3.0.0 | lib/percona_migrator/log_sanitizers/password_sanitizer.rb |
percona_migrator-1.1.0 | lib/percona_migrator/log_sanitizers/password_sanitizer.rb |