This file is indexed.

/usr/lib/ruby/vendor_ruby/chef_zero/endpoints/organization_user_keys_endpoint.rb is in chef-zero 5.1.1-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
 9
10
11
12
13
14
15
16
17
require "chef_zero/rest_base"

module ChefZero
  module Endpoints
    # GET /organizations/ORG/users/USER/keys
    class OrganizationUserKeysEndpoint < RestBase
      def get(request)
        # 404 if it doesn't exist
        get_data(request, request.rest_path[0..3])
        # Just use the /users/USER/keys/key endpoint
        original_path = request.rest_path
        request.rest_path = request.rest_path[2..-1]
        ActorKeysEndpoint.new(server).get(request, original_path)
      end
    end
  end
end