You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
Currently the "tenant access add" command can be run any number of times to grant a datastore access for the same tenant. This may cause weird behavior which is counterintuitive. For example:
I have granted the following permissions for my tenant:
Now I want to add the missing "mount" privilege. As the implementor, we know all the commands and we expect user to run "tenant access set" to modify the privileges. But a new user who are not familiar with all the command options might (incorrectly) do this instead:
This is not a correctness issue (we can argue this is a user error). But I think we can improve the usability a little bit and make the program more robust to prevent this wrong operation happening.
Regarding the solution, I think one option is to prevent user to run "tenant access add" twice on the same tenant, and we can print a tip message to remind user to use "tenant access set" to modify the permissions.
Any other suggestions are welcome.
The text was updated successfully, but these errors were encountered:
we can print a tip message to remind user to use "tenant access set" to modify the permissions.
I just tried a different scenario:
First I revoked all access to a datastore for my tenant. Then I tried to run "tenant access set" directly - here's what I got:
[root@localhost:/usr/lib/vmware/vmdkops/bin] vmdkops_admin tenant access set --name MyTenant --datastore datastore1 --add-right create,delete,mount
No privileges exist for (MyTenant, datastore1)
So, for the current issue of running "tenant access add" multiple times, instead of reminding user to use "tenant access set", we can simply print a similar message, such as "Privileges already exist for (Tenant, Datastore)". This way the user experience will be more consistent.
Currently the "tenant access add" command can be run any number of times to grant a datastore access for the same tenant. This may cause weird behavior which is counterintuitive. For example:
I have granted the following permissions for my tenant:
Now I want to add the missing "mount" privilege. As the implementor, we know all the commands and we expect user to run "tenant access set" to modify the privileges. But a new user who are not familiar with all the command options might (incorrectly) do this instead:
Now what happened? All the existing privilege settings are gone:
This is not a correctness issue (we can argue this is a user error). But I think we can improve the usability a little bit and make the program more robust to prevent this wrong operation happening.
Regarding the solution, I think one option is to prevent user to run "tenant access add" twice on the same tenant, and we can print a tip message to remind user to use "tenant access set" to modify the permissions.
Any other suggestions are welcome.
The text was updated successfully, but these errors were encountered: