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

Version Path
katello-4.14.2 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.15.0 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.15.0.rc2 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.15.0.rc1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.14.1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.14.0 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.14.0.rc3 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.14.0.rc2 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.14.0.rc1.1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.14.0.rc1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.13.1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.13.0 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.12.1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.13.0.rc1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.12.0 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.12.0.rc3 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.12.0.rc2 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.12.0.rc1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.11.1 app/lib/katello/concerns/filter_sensitive_data.rb
katello-4.11.0 app/lib/katello/concerns/filter_sensitive_data.rb