-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Getting Started
The top-level README.md needs a link to ReadTheDocs
Configuration
The latest "Getting Started" guide uses v0.10.0-unique features, even though the latest EPEL package is v0.9.0. Users who install the packages as suggested cannot follow the guide.
"Getting Started" should use TCP (since that is what older versions support) and can document Unix-domain sockets as an alternative for v0.10.0 and later systems.
Usage
On a moderately secure RHEL 9.4 system, DBus access is not allowed. For example, as an unprivileged user, the python snippet
from bluechi.api import Controller
for node in Controller().list_nodes():
# node[name, obj_path, status, peer_ip]
print(f"Node: {node[0]}, State: {node[2]}")raises an exception:
dasbus.error.DBusError: Sender is not authorized to send message
Similarly, the bluechi-is-online tool (for any command besides "help" or "version") returns
Failed to get property: Permission denied
It is unclear whether a policy needs to be added to /etc/dbus-1/system.d/ or some other configuration change is required. While it is obvious that many systemctl commands do require elevated privilege, basic query and status commands do not. Similarly, BlueChi should allow read-only access to general users "out of the box".