Hello,
First I have to commend the Proxmox staff for the work to get to 3.1. It is sweet.
I am not sure if this is an issue with privileges or custom roles, I want to give users the ability to browse and add ISOs and Templates. However, unless I assign a role with Datastore.Allocate, all users get when they click on a datastore is the "Summary" tab. Below is the description for the datastore privileges and the PVEDatastoreUser has the Datastore.Audit privilege, but users do not get the "Content" tab for a datastore. However, users can choose an item from the datastore with the PVEDatastoreUser role assigned to them.
Datastore.Allocate: create/remove/modify a datastore, delete volumes
Datastore.AllocateSpace: allocate space on a datastore
Datastore.AllocateTemplate: allocate/upload templates and iso images
Datastore.Audit: view/browse a datastore
I created a custom role with the two privileges in the predefined PVEDatastoreUser role and added the Datastore.AllocateTemplate. When users are assigned my custom role they can do everything they could do when assigned to the PVEDatastoreUser role, but nothing more. Below are the relevant items from the /etc/pve/user.cfg file. Is my path wrong to allow users to access the "Content" tab along with access to download templates and upload ISOs? I do not think this is the case because when I assign the role PVEDatastoreAdmin, users have access to all these options.
groupVEVMAdmins:user1@pve,user2@pve,user3@pve::
roleVEDatastorePowerUseratastore.AllocateTemplate,Datastore.Audit,Datastore.AllocateSpace:
acl:1:/storagePVEVMAdminsVEDatastorePowerUser:
I am seeing a little strangeness when users can access the content tab of a datastore.
1) They can only see backups for VMs in the containers to which they have access, but they can see drive images for all VMs.
2) While users can see drive images for all VMs, they cannot delete them from the Content tab. Maybe this is intended and this makes sense, because this is controlled in the VM config.
I find the path option a bit confusing, so I apologize if I am missing something. It looks like the /access path has the options necessary to modify most of the items in the "Datacenter" section. The exceptions are "Search", "Summary", "Options", "Storage", "Backup", "HA" and "Support". Of these only "Options", "Storage", "Backup" and "HA" really make sense for permission control. Access to "Storage" is controlled by Datastore.Allocate and access to "HA" and "Options" is in the "/cluster" path controlled by Sys.Audit. I do not see the ability to give users access to just the "Backup" tab. Is this intended? Is an option for users to be able to control their own automatic backups planned?
First I have to commend the Proxmox staff for the work to get to 3.1. It is sweet.
I am not sure if this is an issue with privileges or custom roles, I want to give users the ability to browse and add ISOs and Templates. However, unless I assign a role with Datastore.Allocate, all users get when they click on a datastore is the "Summary" tab. Below is the description for the datastore privileges and the PVEDatastoreUser has the Datastore.Audit privilege, but users do not get the "Content" tab for a datastore. However, users can choose an item from the datastore with the PVEDatastoreUser role assigned to them.
Datastore.Allocate: create/remove/modify a datastore, delete volumes
Datastore.AllocateSpace: allocate space on a datastore
Datastore.AllocateTemplate: allocate/upload templates and iso images
Datastore.Audit: view/browse a datastore
I created a custom role with the two privileges in the predefined PVEDatastoreUser role and added the Datastore.AllocateTemplate. When users are assigned my custom role they can do everything they could do when assigned to the PVEDatastoreUser role, but nothing more. Below are the relevant items from the /etc/pve/user.cfg file. Is my path wrong to allow users to access the "Content" tab along with access to download templates and upload ISOs? I do not think this is the case because when I assign the role PVEDatastoreAdmin, users have access to all these options.
groupVEVMAdmins:user1@pve,user2@pve,user3@pve::
roleVEDatastorePowerUseratastore.AllocateTemplate,Datastore.Audit,Datastore.AllocateSpace:
acl:1:/storagePVEVMAdminsVEDatastorePowerUser:
I am seeing a little strangeness when users can access the content tab of a datastore.
1) They can only see backups for VMs in the containers to which they have access, but they can see drive images for all VMs.
2) While users can see drive images for all VMs, they cannot delete them from the Content tab. Maybe this is intended and this makes sense, because this is controlled in the VM config.
I find the path option a bit confusing, so I apologize if I am missing something. It looks like the /access path has the options necessary to modify most of the items in the "Datacenter" section. The exceptions are "Search", "Summary", "Options", "Storage", "Backup", "HA" and "Support". Of these only "Options", "Storage", "Backup" and "HA" really make sense for permission control. Access to "Storage" is controlled by Datastore.Allocate and access to "HA" and "Options" is in the "/cluster" path controlled by Sys.Audit. I do not see the ability to give users access to just the "Backup" tab. Is this intended? Is an option for users to be able to control their own automatic backups planned?