chef-vault icon indicating copy to clipboard operation
chef-vault copied to clipboard

Getting user key via incorrect API?

Open veetow opened this issue 7 years ago • 1 comments

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: https://github.com/chef/chef-vault/blob/8d3a43fba17104f828687ba82eaf6f3576c351b3/lib/chef-vault/actor.rb#L114

Am I understanding correctly or is the Chef API documentation incorrect?

veetow avatar Feb 06 '18 15:02 veetow

Hello @veetow ,

thanks for reporting this inconsistency. Indeed at the moment, chef server api documents user api outside of the org specific endpoint.

My opinion is that chef server api is not very consistent since users are most likely scoped to org. I'll let @thommay gives the "chef" voice on this.

kamaradclimber avatar Feb 11 '18 09:02 kamaradclimber