Git Product home page Git Product logo

Comments (2)

anniehedgpeth avatar anniehedgpeth commented on July 26, 2024 3

Ahh, I wish I would have looked at the issues sooner - would have saved me some frustration. I removed the /organizations from my knife.rb and added the --orgs option, and it worked fine.

Even just updating the README with this info would be helpful.

from knife-tidy.

MattKempfert avatar MattKempfert commented on July 26, 2024

Here is additional output using -VV.

INFO: Using configuration from /Users/matt/secrets/knife.rb
Writing to /Users/matt/reports directory
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as chef_admin
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://chef.xyz.com/organizations
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: chef_admin
DEBUG: X-OPS-TIMESTAMP: 2018-02-07T21:35:59Z

...

DEBUG: X-OPS-AUTHORIZATION-6: xxxxxxxFaWCMxgHiiJEQIA9pTMGkgOUZaQk+k09pHA==
DEBUG: HOST: chef.xyz.com:443
DEBUG: X-REMOTE-REQUEST-ID: 43b9afdd-452b-41d5-a07f-fb094920751f
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 403 Forbidden

...

Looks like the Response: missing read permission error occurs when the /organizations endpoint is hit. According to https://docs.chef.io/api_chef_server.html#organizations /organizations is only available to the pivotal user.

It'd be great to find another way to gather the list of organizations (to non pivotal users) or return a different error message when the pivotal user isn't used.

from knife-tidy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.