You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "winterhazel (via GitHub)" <gi...@apache.org> on 2023/08/15 17:55:41 UTC
[GitHub] [cloudstack] winterhazel opened a new pull request, #7870: Allow admins to disable the 2FA of users in subdomains
winterhazel opened a new pull request, #7870:
URL: https://github.com/apache/cloudstack/pull/7870
### Description
Admins should be able to disable the 2FA of users that lost their second factor; however, the `setupUserTwoFactorAuthentication` API only allows them to disable the 2FA of users in the same domain. This means that, if the root admin wants to disable the 2FA of a user in ROOT/test, he must create a domain admin account in ROOT/test and log into that account to do this.
This PR addresses this issue by allowing admins to disable the 2FA of users in their subdomains.
### Types of changes
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] Enhancement (improves an existing feature and functionality)
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
### Feature/Enhancement Scale or Bug Severity
#### Feature/Enhancement Scale
- [ ] Major
- [X] Minor
#### Bug Severity
- [ ] BLOCKER
- [ ] Critical
- [ ] Major
- [ ] Minor
- [ ] Trivial
### Screenshots (if appropriate):
### How Has This Been Tested?
I did the following tests in a local lab:
| Number | Test | Previous result | New result | New result was expected (Y/N)? |
| - | - | - | - | - |
| 1 | Disable your own 2FA as the root admin | Success | Success | Y |
| 2 | Disable the 2FA of a user in ROOT as the root admin | Success | Success | Y |
| 3 | Disable the 2FA of a user in ROOT/test as the root admin | Exception | Success | Y |
| 4 | Disable your own 2FA as the domain admin of ROOT/test | Success | Success | Y |
| 5 | Disable the 2FA of a user in ROOT/test as the domain admin of ROOT/test | Success | Success | Y |
| 6 | Disable the 2FA of a user in ROOT/test/test2 as the domain admin of ROOT/test | Exception | Success | Y |
| 7 | Disable the 2FA of a domain admin of ROOT/test as another domain admin of ROOT/test | Success | Success | Y |
| 8 | Disable the 2FA of a domain admin of ROOT/test/test2 as the domain admin of ROOT/test | Exception | Success | Y |
| 9 | Disable the 2FA of a domain admin of ROOT as the domain admin of ROOT/test | Exception | Exception | Y |
| 10 | Disable the 2FA of a domain admin of ROOT/test3 as the domain admin of ROOT/test | Exception | Exception | Y |
| 11 | Disable your own 2FA as a non-administrator user | Success | Success | Y |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] harikrishna-patnala commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "harikrishna-patnala (via GitHub)" <gi...@apache.org>.
harikrishna-patnala commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1681979389
> > > In addition to @harikrishna-patnala 's comment, I wonder if scenario 11 is really what we want? As an operator I want to force my users to use f2a. scenario 11 negates that. what do you think @winterhazel ?
> >
> >
> > good point @DaanHoogland
> > @winterhazel can you test if `mandate.user.2fa` is set to `true` ?
>
> @DaanHoogland @weizhouapache
>
> You can force users to use 2FA by enabling the global setting `mandate.user.2fa`. If this setting is set to `true`, when a user disables his 2FA through the `setupUserTwoFactorAuthentication` API, he will need to reconfigure it next time he logins in order to proceed. I have tested it.
>
> However, I think we can reconsider the behavior of this API to not allow users to disable their 2FA in the first place when this setting is enabled and return a message saying that 2FA is mandatory, since users may think the current behavior is a bug.
I would say we can still allow disabling the 2FA just in case user wants to reset the 2FA settings to use other provider. To provide more visibility to the user we can pop up a warning message when user tries to disable 2FA saying something like "2FA needs to setup again since it is mandated by the admin"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] codecov[bot] commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1680046813
## [Codecov](https://app.codecov.io/gh/apache/cloudstack/pull/7870?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
> Merging [#7870](https://app.codecov.io/gh/apache/cloudstack/pull/7870?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (776dd8e) into [4.18](https://app.codecov.io/gh/apache/cloudstack/commit/19aacad46bb0d58e5d42e56067eddf1f07e0016e?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (19aacad) will **decrease** coverage by `0.01%`.
> Report is 1 commits behind head on 4.18.
> The diff coverage is `100.00%`.
```diff
@@ Coverage Diff @@
## 4.18 #7870 +/- ##
============================================
- Coverage 13.02% 13.02% -0.01%
+ Complexity 9040 9039 -1
============================================
Files 2720 2720
Lines 257094 257092 -2
Branches 40092 40091 -1
============================================
- Hits 33491 33489 -2
- Misses 219398 219400 +2
+ Partials 4205 4203 -2
```
| [Files Changed](https://app.codecov.io/gh/apache/cloudstack/pull/7870?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [...c/main/java/com/cloud/user/AccountManagerImpl.java](https://app.codecov.io/gh/apache/cloudstack/pull/7870?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c2VydmVyL3NyYy9tYWluL2phdmEvY29tL2Nsb3VkL3VzZXIvQWNjb3VudE1hbmFnZXJJbXBsLmphdmE=) | `20.47% <100.00%> (+0.02%)` | :arrow_up: |
... and [1 file with indirect coverage changes](https://app.codecov.io/gh/apache/cloudstack/pull/7870/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] blueorangutan commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1683521649
@weizhouapache a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1683494956
> > > > In addition to @harikrishna-patnala 's comment, I wonder if scenario 11 is really what we want? As an operator I want to force my users to use f2a. scenario 11 negates that. what do you think @winterhazel ?
> > >
> > >
> > > good point @DaanHoogland
> > > @winterhazel can you test if `mandate.user.2fa` is set to `true` ?
> >
> >
> > @DaanHoogland @weizhouapache
> > You can force users to use 2FA by enabling the global setting `mandate.user.2fa`. If this setting is set to `true`, when a user disables his 2FA through the `setupUserTwoFactorAuthentication` API, he will need to reconfigure it next time he logins in order to proceed. I have tested it.
> > However, I think we can reconsider the behavior of this API to not allow users to disable their 2FA in the first place when this setting is enabled and return a message saying that 2FA is mandatory, since users may think the current behavior is a bug.
>
> I would say we can still allow disabling the 2FA just in case user wants to reset the 2FA settings to use other provider. To provide more visibility to the user we can pop up a warning message when user tries to disable 2FA saying something like "2FA needs to setup again since it is mandated by the admin"
This makes sense @harikrishna-patnala , but would not have to be included in this PR. It seems like a separate improvement.
cc @weizhouapache @winterhazel ??
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1683519362
@blueorangutan package
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] blueorangutan commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1683594020
@weizhouapache a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] harikrishna-patnala commented on a diff in pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "harikrishna-patnala (via GitHub)" <gi...@apache.org>.
harikrishna-patnala commented on code in PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#discussion_r1295592071
##########
server/src/main/java/com/cloud/user/AccountManagerImpl.java:
##########
@@ -3349,16 +3349,13 @@ protected UserTwoFactorAuthenticationSetupResponse disableTwoFactorAuthenticatio
return response;
}
- private UserVO validateUser(Long userId, Long domainId) {
+ private UserVO validateUser(Long userId) {
UserVO user = null;
if (userId != null) {
user = _userDao.findById(userId);
if (user == null) {
throw new InvalidParameterValueException("Invalid user ID provided");
}
- if (_accountDao.findById(user.getAccountId()).getDomainId() != domainId) {
Review Comment:
@winterhazel I agree with you that this is an issue. But instead of completely taking out the domain check, we need to check if the user domain is part of the caller domain ? Otherwise, any root admin under any domain could disable 2FA of any user. what do you say?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] winterhazel commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "winterhazel (via GitHub)" <gi...@apache.org>.
winterhazel commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1684232759
> > > > > In addition to @harikrishna-patnala 's comment, I wonder if scenario 11 is really what we want? As an operator I want to force my users to use f2a. scenario 11 negates that. what do you think @winterhazel ?
> > > >
> > > >
> > > > good point @DaanHoogland
> > > > @winterhazel can you test if `mandate.user.2fa` is set to `true` ?
> > >
> > >
> > > @DaanHoogland @weizhouapache
> > > You can force users to use 2FA by enabling the global setting `mandate.user.2fa`. If this setting is set to `true`, when a user disables his 2FA through the `setupUserTwoFactorAuthentication` API, he will need to reconfigure it next time he logins in order to proceed. I have tested it.
> > > However, I think we can reconsider the behavior of this API to not allow users to disable their 2FA in the first place when this setting is enabled and return a message saying that 2FA is mandatory, since users may think the current behavior is a bug.
> >
> >
> > I would say we can still allow disabling the 2FA just in case user wants to reset the 2FA settings to use other provider. To provide more visibility to the user we can pop up a warning message when user tries to disable 2FA saying something like "2FA needs to setup again since it is mandated by the admin"
>
> This makes sense @harikrishna-patnala , but would not have to be included in this PR. It seems like a separate improvement.
>
> cc @weizhouapache @winterhazel ??
This is a valid reason to allow users to disable their 2FA. I think @harikrishna-patnala's suggestion of providing more information to the user is great. We can handle it in a separate PR, though.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] blueorangutan commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1683590051
Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 6826
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1680748429
> In addition to @harikrishna-patnala 's comment, I wonder if scenario 11 is really what we want? As an operator I want to force my users to use f2a. scenario 11 negates that. what do you think @winterhazel ?
good point @DaanHoogland
@winterhazel can you test if `mandate.user.2fa` is set to `true` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1683518470
> > > > > In addition to @harikrishna-patnala 's comment, I wonder if scenario 11 is really what we want? As an operator I want to force my users to use f2a. scenario 11 negates that. what do you think @winterhazel ?
> > > >
> > > >
> > > > good point @DaanHoogland
> > > > @winterhazel can you test if `mandate.user.2fa` is set to `true` ?
> > >
> > >
> > > @DaanHoogland @weizhouapache
> > > You can force users to use 2FA by enabling the global setting `mandate.user.2fa`. If this setting is set to `true`, when a user disables his 2FA through the `setupUserTwoFactorAuthentication` API, he will need to reconfigure it next time he logins in order to proceed. I have tested it.
> > > However, I think we can reconsider the behavior of this API to not allow users to disable their 2FA in the first place when this setting is enabled and return a message saying that 2FA is mandatory, since users may think the current behavior is a bug.
> >
> >
> > I would say we can still allow disabling the 2FA just in case user wants to reset the 2FA settings to use other provider. To provide more visibility to the user we can pop up a warning message when user tries to disable 2FA saying something like "2FA needs to setup again since it is mandated by the admin"
>
> This makes sense @harikrishna-patnala , but would not have to be included in this PR. It seems like a separate improvement.
>
> cc @weizhouapache @winterhazel ??
agree with @DaanHoogland
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1686366840
tested ok
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] winterhazel commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "winterhazel (via GitHub)" <gi...@apache.org>.
winterhazel commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1681094732
> > In addition to @harikrishna-patnala 's comment, I wonder if scenario 11 is really what we want? As an operator I want to force my users to use f2a. scenario 11 negates that. what do you think @winterhazel ?
>
> good point @DaanHoogland
>
> @winterhazel can you test if `mandate.user.2fa` is set to `true` ?
@DaanHoogland @weizhouapache
You can force users to use 2FA by enabling the global setting `mandate.user.2fa`. If this setting is set to `true`, when a user disables his 2FA through the `setupUserTwoFactorAuthentication` API, he will need to reconfigure it next time he logins in order to proceed. I have tested it.
However, I think we can reconsider the behavior of this API to not allow users to disable their 2FA in the first place when this setting is enabled and return a message saying that 2FA is mandatory, since users may think the current behavior is a bug.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache commented on a diff in pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on code in PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#discussion_r1296016081
##########
server/src/main/java/com/cloud/user/AccountManagerImpl.java:
##########
@@ -3349,16 +3349,13 @@ protected UserTwoFactorAuthenticationSetupResponse disableTwoFactorAuthenticatio
return response;
}
- private UserVO validateUser(Long userId, Long domainId) {
+ private UserVO validateUser(Long userId) {
UserVO user = null;
if (userId != null) {
user = _userDao.findById(userId);
if (user == null) {
throw new InvalidParameterValueException("Invalid user ID provided");
}
- if (_accountDao.findById(user.getAccountId()).getDomainId() != domainId) {
Review Comment:
@harikrishna-patnala
line 3336 will do the trick I think.
```
checkAccess(caller, null, true, owner);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1683591588
@blueorangutan test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] weizhouapache merged pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache merged PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1680253854
In addition to @harikrishna-patnala 's comment, I wonder if scenario 11 is really what we want?
As an operator I want to force my users to use f2a.
scenario 11 negates that.
what do you think @winterhazel ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] winterhazel commented on a diff in pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "winterhazel (via GitHub)" <gi...@apache.org>.
winterhazel commented on code in PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#discussion_r1296288735
##########
server/src/main/java/com/cloud/user/AccountManagerImpl.java:
##########
@@ -3349,16 +3349,13 @@ protected UserTwoFactorAuthenticationSetupResponse disableTwoFactorAuthenticatio
return response;
}
- private UserVO validateUser(Long userId, Long domainId) {
+ private UserVO validateUser(Long userId) {
UserVO user = null;
if (userId != null) {
user = _userDao.findById(userId);
if (user == null) {
throw new InvalidParameterValueException("Invalid user ID provided");
}
- if (_accountDao.findById(user.getAccountId()).getDomainId() != domainId) {
Review Comment:
> @harikrishna-patnala line 3336 will do the trick I think.
>
> ```
> checkAccess(caller, null, true, owner);
> ```
@harikrishna-patnala @weizhouapache Exactly, after this method, the code checks if the admin has access to the user. This was tested in scenarios 9 and 10: when the admin does not have access to the domain of the user, a PermisisonDeniedException is thrown.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] blueorangutan commented on pull request #7870: Allow admins to disable the 2FA of users in subdomains
Posted by "blueorangutan (via GitHub)" <gi...@apache.org>.
blueorangutan commented on PR #7870:
URL: https://github.com/apache/cloudstack/pull/7870#issuecomment-1684474783
<b>[SF] Trillian test result (tid-7478)</b>
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45243 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7870-t7478-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:
Test | Result | Time (s) | Test File
--- | --- | --- | ---
test_08_upgrade_kubernetes_ha_cluster | `Failure` | 691.06 | test_kubernetes_clusters.py
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org