/usr/lib/ruby/vendor_ruby/fog/core/whitelist_keys.rb is in ruby-fog-core 1.45.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | module Fog
module WhitelistKeys
def self.whitelist(hash, valid_keys)
valid_hash = StringifyKeys.stringify(hash)
Hash[valid_hash.select { |k, _v| valid_keys.include?(k) }]
end
end
end
|