[pmg-devel] [RFC PATCH pmg-api] fix #1876: allow node status for admin/manager/auditors
Dominik Csapak
d.csapak at proxmox.com
Fri Sep 14 14:40:40 CEST 2018
users can already see the status for the local host
via /config/cluster/status or rrddata on all nodes
so allow them to directly get the status via /nodes/nodename/status
this fixes the permission error on the dashboard in clustered setups
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PMG/API2/Nodes.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/PMG/API2/Nodes.pm b/PMG/API2/Nodes.pm
index bdb456f..0a578b2 100644
--- a/PMG/API2/Nodes.pm
+++ b/PMG/API2/Nodes.pm
@@ -541,6 +541,7 @@ __PACKAGE__->register_method({
method => 'GET',
description => "Read server status. This is used by the cluster manager to test the node health.",
proxyto => 'node',
+ permissions => { check => [ 'admin', 'qmanager', 'audit' ] },
protected => 1,
parameters => {
additionalProperties => 0,
--
2.11.0
More information about the pmg-devel
mailing list