Coder Social home page Coder Social logo

API: Access denied about check_pve HOT 5 CLOSED

nbuchwitz avatar nbuchwitz commented on August 21, 2024
API: Access denied

from check_pve.

Comments (5)

fdellwing avatar fdellwing commented on August 21, 2024

This seems to be a problem with PVE7:

root@proxmox-sgp:~# ./check_pve.py -u monitoring@pve -t monitoring=5e3dd1bd-xxxx-xxxx-xxxx-xxxxxxxxxxxx -e localhost -m version -k
OK - Your pve instance version '7.0-11' (63d82f4e) is up to date

I'm currently not sure where to find the problem. The API itself is working:

::1 - monitoring@pve!monitoring [24/11/2021:17:43:49 +0800] "GET /api2/json/cluster/status HTTP/1.1" 403 13
[...]
::ffff:62.x.x.x - root@pam [24/11/2021:17:45:04 +0800] "GET /api2/json/cluster/status HTTP/1.1" 200 136

An update to PVE 7.1-4 did not solve the problem.

from check_pve.

nbuchwitz avatar nbuchwitz commented on August 21, 2024

Strange ... Which python version do you use?

from check_pve.

fdellwing avatar fdellwing commented on August 21, 2024

The default one that comes with PVE7

root@proxmox-sgp:~# python3 -V
Python 3.9.2

from check_pve.

nbuchwitz avatar nbuchwitz commented on August 21, 2024

Interesting, looks like the acl for the user needs to be active even if token based auth is used. I tested with a fresh setup and only created the acl for the token. The result was the same as yours. After adding the acl for the user aswell (pveum acl modify / --roles Monitoring --user 'monitoring@pve') it started working.

from check_pve.

fdellwing avatar fdellwing commented on August 21, 2024

Can confirm that this solved the issue.

from check_pve.

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.