pve-manager/PVE/API2/Cluster
Lukas Wagner 4c40d7cbed api: notification: make the 'mail-to-root' target visible to any user
Since the target does not require Mapping.Use, it should also be
visible and testable by all users.

Short explanation why the 'mail-to-root' is exempt from priv checks:

To ensure backwards compatibility, the 'mail-to-root' target does not
require the `Mapping.Use` privs. This is needed due to the fact that
this target is used as a fallback in case no other target is
configured for an event. For instance, the /node/<name>/apt/update API
call only requires Sys.Modify for the node, but it can also send a
notification. If we were to require Mapping.Use, we could break the
apt/update API compat in the case that a notification shall be sent,
but without any configured notification target (which will then
default to 'mail-to-root').

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2023-08-16 11:11:24 +02:00
..
Mapping api: resource usb mapping: add missing proxyto_callback 2023-06-21 12:51:47 +02:00
BackupInfo.pm api: backup info: make "name" property truly optional in response struct 2022-11-15 14:07:39 +01:00
Ceph.pm api: ceph metadata: rename instance placeholder to id in return schema 2023-01-16 16:32:16 +01:00
Jobs.pm api: cluster jobs: fix perl module not ending with a true value 2023-06-19 08:30:53 +02:00
Makefile api: prepare api handler module for notification config 2023-08-16 11:10:15 +02:00
Mapping.pm api: mappings: cleanup perl imports 2023-06-19 08:30:53 +02:00
MetricServer.pm api: metrics: use complete config for testing the connection 2021-11-15 16:17:51 +01:00
Notifications.pm api: notification: make the 'mail-to-root' target visible to any user 2023-08-16 11:11:24 +02:00