$ knife acl add groups users read group vault-admins
$ knife vault show reliability portability-credentialsERROR: ChefVault::Exceptions::SecretDecryption: reliability/portability-credentials is not encrypted with your public key. Contact an administrator of the vault item to encrypt for you!
Hello,There is some way to give non-admins users permission to use 'knife user show'?$ knife user show xxx -VVDEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_requestDEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_requestDEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_requestDEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_requestDEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_requestDEBUG: Signing the request as jaumDEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_requestDEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_requestDEBUG: Initiating GET to https://chef-host/organizations/organization/users/trutaDEBUG: ---- HTTP Request Header Data: ----DEBUG: Accept: application/jsonDEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;DEBUG: X-OPS-USERID: jaumDEBUG: X-OPS-TIMESTAMP: 2015-01-22T19:42:02ZDEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=DEBUG: X-OPS-AUTHORIZATION-1: GsGVBloLX88PUr+OygGRf/JfqenGh2ZHvGS5LXEIehw/+Xu8Xgi5QYGK9lDsDEBUG: X-OPS-AUTHORIZATION-2: lQ6NGPt4AoiglpTuQUJnyP8rhPLEeNlMmh3hxBbGMlWHzTOqWsHvPLlbAg6eDEBUG: X-OPS-AUTHORIZATION-3: H7uWraSg882f26xXDkFJOhu/loBD3jZ51eCsyEJwJkkPhlOG8yVmNrgzn2cVDEBUG: X-OPS-AUTHORIZATION-4: sKvwKHJwAu5UUGHrNcyKeH1SPlWYHZFhL0lEMb6lwDxZA7O5nKJu9RE/nEPcDEBUG: X-OPS-AUTHORIZATION-5: FKYframg47s+uPYjrb9MjH5AjtAK3DBA1dZxXrTFTEeB2rtWNjrSAVNE0O5IDEBUG: X-OPS-AUTHORIZATION-6: GlqUUlBuXa0j/Er52tIMJBl0Fav4cwGK5tNx1DniNQ==DEBUG: HOST: chef-host:443DEBUG: X-REMOTE-REQUEST-ID: 1fb2cc5a-25a4-483a-b4e5-adaedb01d80aDEBUG: ---- End HTTP Request Header Data ----DEBUG: ---- HTTP Status and Header Data: ----DEBUG: HTTP 1.1 403 ForbiddenDEBUG: server: ngx_openresty/1.4.3.6DEBUG: date: Thu, 22 Jan 2015 19:42:01 GMTDEBUG: content-length: 37DEBUG: connection: closeDEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=0.29.4DEBUG: ---- End HTTP Status/Header Data ----DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_responseDEBUG: Content-Length validated correctly.DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_responseDEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_responseDEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_responseDEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_responseDEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_responseDEBUG: Expected JSON response, but got content-type ''DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_responseINFO: HTTP Request Returned 403 Forbidden: error/opt/chefdk/embedded/lib/ruby/2.1.0/net/http/response.rb:119:in `error!': 403 "Forbidden" (Net::HTTPServerException)from /opt/chefdk/embedded/apps/chef/lib/chef/http.rb:145:in `request'from /opt/chefdk/embedded/apps/chef/lib/chef/rest.rb:115:in `get'from /opt/chefdk/embedded/apps/chef/lib/chef/user.rb:164:in `load'from /opt/chefdk/embedded/apps/chef/lib/chef/knife/user_show.rb:43:in `run'from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:493:in `run_with_pretty_exceptions'from /opt/chefdk/embedded/apps/chef/lib/chef/knife.rb:174:in `run'from /opt/chefdk/embedded/apps/chef/lib/chef/application/knife.rb:139:in `run'from /opt/chefdk/embedded/apps/chef/bin/knife:25:in `<top (required)>'from /usr/bin/knife:33:in `load'from /usr/bin/knife:33:in `<main>'Thanks!!---- Tiago Cruz
Archive powered by MHonArc 2.6.16.