[chef] retrieving public keys of knife users


Chronological Thread 
  • From: Louis Garman < >
  • To:
  • Subject: [chef] retrieving public keys of knife users
  • Date: Wed, 15 Aug 2012 10:40:06 +0100

In a cookbook I'd like to retrieve the public keys of each knife user.
I assume a "knife user" to be a chef API client with the admin
privilege.

But when I run this in shef (with -z) on a non-admin node:

Chef::ApiClient.load('knife-user')['public_key']
# or Chef::ApiClient.list

I get a 403 response. In both open source and private chef.

Why would access to this information be forbidden? Anyone know of a
slick workaround?

Thanks

Louis



Archive powered by MHonArc 2.6.16.

§