]> git.proxmox.com Git - pve-access-control.git/commit
fix #233: return cluster name on successful login
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Nov 2018 16:50:14 +0000 (17:50 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Nov 2018 10:58:05 +0000 (11:58 +0100)
commite842fec5e002c399e56222a447878597a0315845
treeb09659cdba96fde628a854200c7836460079e275
parentaf5d7da7f10abf98a83a74c2a498c24a75aeeed0
fix #233: return cluster name on successful login

If a cluster is configured then return the cluster name on successful
login - if the user has Sys.Audit privileges on the '/' path (same
as for returning cluster info, like the join info path uses)

This is more for the reason that some admins do not want to expose
this to lesser privileged (API) users. While yes, you can
theoretically launch a (DDOS resembling) attack which stresses the
corosync network if you know the cluster_name (it's still encrypted
but you can back-calculate the multicast group membership info) you
need to be able to send multicast traffic on the corosync LAN -
which can be seen as a pretty big privilege anyway.

But, for now reduce permissions - we can more easily loosen them than
tighten without causing issues anyway.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/AccessControl.pm