Sha256: 32f867a5a9c3689a44013f2d29adebde6e56fd9f23adf2c1374230b9c3a82b25
Contents?: true
Size: 521 Bytes
Versions: 136
Compression:
Stored size: 521 Bytes
Contents
module Katello module Concerns module FilterSensitiveData extend ActiveSupport::Concern # This is called at both the instance and class levels, so must be available as both. def filter_sensitive_data(payload) self.class.filter_sensitive_data(payload) end class_methods do def filter_sensitive_data(payload) payload.gsub(/-----BEGIN RSA PRIVATE KEY-----[\s\S]*-----END RSA PRIVATE KEY-----/, '[private key filtered]') end end end end end
Version data entries
136 entries across 136 versions & 1 rubygems