Repository navigation
Implemented condition that only admin or owner of the template can change its permissions - #658
Conversation
|
cloudstack-pull-rats #208 ABORTED |
|
cloudstack-pull-requests #905 ABORTED |
|
cloudstack-pull-rats #209 ABORTED |
|
cloudstack-pull-requests #906 ABORTED |
|
cloudstack-pull-requests #914 FAILURE |
|
cloudstack-pull-rats #217 SUCCESS |
|
cloudstack-pull-analysis #150 UNSTABLE |
|
Code LGTM, but is it the case right now that anybody can change a template? |
|
@wido Ya I checked it.Any user was able to change permissions of the template.Updated the description with a case i tried. |
|
@manuiiit It seems an extra change got in (tools/travis/before_install.sh) apart from the template permission issue. Please remove it from this PR as it is not related (change one thing per PR). I'm OK if you send the change as another PR though. Thanks! |
|
cloudstack-pull-rats #236 SUCCESS |
|
cloudstack-pull-requests #933 SUCCESS |
|
@remibergsma I used it for debugging purpose as a build failed.Removed it now.Thanks. |
|
cloudstack-pull-analysis #169 SUCCESS |
|
@manuiiit Thanks! Final request: please squash the 3 commits you have now into one. After that, force push to this branch. Once done, I'll LGTM and merge. |
…ange its permissions using updateTemplatePermissions API
|
cloudstack-pull-rats #251 SUCCESS |
|
cloudstack-pull-requests #948 SUCCESS |
|
cloudstack-pull-analysis #184 SUCCESS |
|
@manuiiit Nice. LGTM. |
Implemented condition that only admin or owner of the template can change its permissions ..... using updateTemplatePermissions API Consider this scenario : In a domain, there are three User Accounts UA1, UA2,UA3 A private template is registered by UA1 Through the updateTemplatePermissions API, UA1 gives permission to both UA2 and UA3 Now, UA2, having been shared the template, can remove the permission of UA3(or add permissions to another account). EXPECTED BEHAVIOR : UA2 should not be able to to add/remove permissions of other accounts. * pr/658: Implemented condition that only admin or owner of the template can change its permissions using updateTemplatePermissions API Signed-off-by: Remi Bergsma <github@remi.nl>
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
..... using updateTemplatePermissions API
Consider this scenario :
In a domain, there are three User Accounts UA1, UA2,UA3
A private template is registered by UA1
Through the updateTemplatePermissions API, UA1 gives permission to both UA2 and UA3
Now, UA2, having been shared the template, can remove the permission of UA3(or add permissions to another account).
EXPECTED BEHAVIOR :
UA2 should not be able to to add/remove permissions of other accounts.