]> git.proxmox.com Git - proxmox-backup.git/commit
fix #3014: allow DataStoreAdmins to list DS config
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 18 Sep 2020 09:45:11 +0000 (11:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Sep 2020 10:09:13 +0000 (12:09 +0200)
commitb93bbab4542df8309614b9b84b803ead7e28ab77
treea2f091dbe9dd5dd8fc4ecfe919236d8a6d316ab6
parent9cebc837d5a8efcb74cde42d84211c9700381b5f
fix #3014: allow DataStoreAdmins to list DS config

filtered by those they are privileged enough to read individually. this
allows such users to configure prune/GC schedules via the GUI (the API
already allowed it previously).

permission-wise, a user with this privilege can already:
- list all stores they have access to (returns just name/comment)
- read the config of each store they have access to individually
(returns full config of that datastore + digest of whole config)

but combines them to
- read configs of all datastores they have access to (returns full
config of those datastores + digest of whole config)

user that have AUDIT on just /datastore without propagate can now no
longer read all configurations (but this could be added it back, it just
seems to make little sense to me).

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/api2/config/datastore.rs