Based on the API documentation for retrieving user keys:
https://docs.chef.io/api_chef_server.html#id12
It would seem to me that get_key should be using the root-scoped v1 API instead of the org-scoped one that's being used here:
|
api.org_scoped_rest_v1.get("#{request_actor_type}/#{name}/keys/default").fetch("public_key") |
Am I understanding correctly or is the Chef API documentation incorrect?
Based on the API documentation for retrieving user keys:
https://docs.chef.io/api_chef_server.html#id12
It would seem to me that
get_keyshould be using the root-scoped v1 API instead of the org-scoped one that's being used here:chef-vault/lib/chef-vault/actor.rb
Line 114 in 8d3a43f
Am I understanding correctly or is the Chef API documentation incorrect?