Skip to content

Implemented condition that only admin or owner of the template can change its permissions - #658

Merged
asfgit merged 1 commit into
apache:masterfrom
maneesha-p:pull-11
Aug 11, 2015
Merged

asfgit merged 1 commit into
apache:masterfrom
maneesha-p:pull-11

Conversation

@maneesha-p

Copy link
Copy Markdown

..... 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.

@asfbot

asfbot commented Aug 5, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #208 ABORTED

@asfbot

asfbot commented Aug 5, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #905 ABORTED

@asfbot

asfbot commented Aug 5, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #209 ABORTED

@asfbot

asfbot commented Aug 5, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #906 ABORTED

@asfbot

asfbot commented Aug 6, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #914 FAILURE
Looks like there's a problem with this pull request

@asfbot

asfbot commented Aug 6, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #217 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 6, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #150 UNSTABLE
Looks like there's a problem with this pull request

@wido

wido commented Aug 7, 2015

Copy link
Copy Markdown
Contributor

Code LGTM, but is it the case right now that anybody can change a template?

@maneesha-p

Copy link
Copy Markdown
Author

@wido Ya I checked it.Any user was able to change permissions of the template.Updated the description with a case i tried.

@remibergsma

Copy link
Copy Markdown
Contributor

@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!

@asfbot

asfbot commented Aug 10, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #236 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 10, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #933 SUCCESS
This pull request looks good

@maneesha-p

Copy link
Copy Markdown
Author

@remibergsma I used it for debugging purpose as a build failed.Removed it now.Thanks.

@asfbot

asfbot commented Aug 10, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #169 SUCCESS
This pull request looks good

@remibergsma

Copy link
Copy Markdown
Contributor

@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
@asfbot

asfbot commented Aug 11, 2015

Copy link
Copy Markdown

cloudstack-pull-rats #251 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 11, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #948 SUCCESS
This pull request looks good

@asfbot

asfbot commented Aug 11, 2015

Copy link
Copy Markdown

cloudstack-pull-analysis #184 SUCCESS
This pull request looks good

@remibergsma

Copy link
Copy Markdown
Contributor

@manuiiit Nice. LGTM.

@asfgit
asfgit merged commit f7e8d44 into apache:master Aug 11, 2015
asfgit pushed a commit that referenced this pull request Aug 11, 2015
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>
yadvr pushed a commit that referenced this pull request Jan 20, 2021
Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants