all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-manager] api: cluster: add permission description to log endpoint
@ 2025-10-03 10:38 Hannes Laimer
  2025-10-03 12:58 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Laimer @ 2025-10-03 10:38 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
This came up in support, and without looking at the code the behaviour
was not clear. This should help with that.

 PVE/API2/Cluster.pm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm
index e7d245fb..47980396 100644
--- a/PVE/API2/Cluster.pm
+++ b/PVE/API2/Cluster.pm
@@ -178,7 +178,10 @@ __PACKAGE__->register_method({
     path => 'log',
     method => 'GET',
     description => "Read cluster log",
-    permissions => { user => 'all' },
+    permissions => {
+        description => "The user needs 'Sys.Syslog' on '/' in order to get all logs.",
+        user => 'all',
+    },
     parameters => {
         additionalProperties => 0,
         properties => {
-- 
2.47.3



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-10-03 12:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-03 10:38 [pve-devel] [PATCH pve-manager] api: cluster: add permission description to log endpoint Hannes Laimer
2025-10-03 12:58 ` [pve-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal