chef-vault
chef-vault copied to clipboard
Getting user key via incorrect API?
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?
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.