Uh oh!
There was an error while loading. Please reload this page.
Role escalation prevention - #5879
Conversation
yadvr
commented
Jan 20, 2022
Thanks @DaanHoogland, I'll review and get back in a few days. Meanwhile, do add/ask other devs. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
blueorangutan
commented
Jan 24, 2022
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Pearl1594
commented
Jan 24, 2022
Most / all test failures report the following error: |
DaanHoogland
commented
Jan 25, 2022
ok, that is not good: I removed the restriction to RoleTupe.User, which should do the trick. If not I'll add all role types. |
blueorangutan
commented
Feb 7, 2022
@sureshanaparti a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 7, 2022
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2495 |
sureshanaparti
commented
Feb 7, 2022
ping @rohityadavcloud can you test this changes. |
yadvr
commented
Feb 8, 2022
@sureshanaparti I'll review the code changes but not able to test it. Pl ask @borisstoyanov@vladimirpetrov or one of the 4.16.1 team. |
sureshanaparti
commented
Feb 8, 2022
sure @rohityadavcloud , please review the changes. thanks. |
yadvr
commented
Feb 8, 2022
@blueorangutan package |
blueorangutan
commented
Feb 8, 2022
@rohityadavcloud a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Feb 8, 2022
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2532 |
yadvr
commented
Feb 8, 2022
@blueorangutan test |
blueorangutan
commented
Feb 8, 2022
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Feb 9, 2022
Trillian test result (tid-3252) |
borisstoyanov
left a comment
There was a problem hiding this comment.
LGTM, manually tested, restricted domain admin cannot create a role with higher privileges
sureshanaparti
commented
Feb 9, 2022
@blueorangutan test |
blueorangutan
commented
Feb 9, 2022
@sureshanaparti a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
DaanHoogland
commented
Feb 9, 2022
Do we need this re-test
I think the one before showed no errors and we didn't re-build in between. |
sureshanaparti
commented
Feb 9, 2022
couldn't see the results here, let's wait for test results. |
blueorangutan
commented
Feb 9, 2022
Trillian test result (tid-3264)
|
Pearl1594
left a comment
There was a problem hiding this comment.
LGTM - verified behavior.
yadvr
left a comment
There was a problem hiding this comment.
FWIW - LGTM, read the critical code in checkRoleEscalation, will leave some remarks
yadvr
commented
Feb 10, 2022
@DaanHoogland one remark this doesn't fix/address if the issue already exists, we should update the doc (if not already done) to explain how roles work and precautions for non-admin roles that can create accounts. |
DaanHoogland
commented
Feb 10, 2022
I don't agree, there is a doc PR out. Please comment there if there is anything missing. |
sureshanaparti
commented
Feb 10, 2022
@rohityadavcloud Doc PR here, apache/cloudstack-documentation#260, please take a look and provide your feedback. @DaanHoogland can create a separate doc PR to include if any more details has to be added to the documentation. |
yadvr
commented
Feb 10, 2022
Cool thanks for the link @sureshanaparti@DaanHoogland - as I said my remark was only if you've not already done the doc PR - which you've. |
* prevent role access escallation * hierarchy issue fixed * create api list in account manager for checking new account access * full api list check * strange role restriction removed for BareMetal * add role check on upfdate account as well * more selective use of api checkers * error msg and var name Co-authored-by: Daan Hoogland <dahn@onecht.net>
Description
This PR...
Fixes: #5781
Doc PR: apache/cloudstack-documentation#260
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?