User two factor authentication#6924
Conversation
8d684c2 to
4e9fabd
Compare
|
@blueorangutan package |
|
@harikrishna-patnala a 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. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 4654 |
Codecov Report
@@ Coverage Diff @@
## main #6924 +/- ##
============================================
+ Coverage 12.63% 12.67% +0.03%
- Complexity 8613 8640 +27
============================================
Files 2711 2716 +5
Lines 255752 256110 +358
Branches 39873 39924 +51
============================================
+ Hits 32325 32455 +130
- Misses 219320 219527 +207
- Partials 4107 4128 +21
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan package |
|
@harikrishna-patnala a 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. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 4656 |
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 4657 |
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✖️ el8 ✔️ debian ✔️ suse15. SL-JID 4654 |
|
@blueorangutan package |
|
@weizhouapache a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✔️ el8 ✖️ debian ✔️ suse15. SL-JID 4655 |
|
@blueorangutan package |
|
@weizhouapache a 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. |
api/src/main/java/org/apache/cloudstack/api/response/LoginCmdResponse.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/cloudstack/api/response/LoginCmdResponse.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/cloudstack/auth/UserTwoFactorAuthenticator.java
Outdated
Show resolved
Hide resolved
api/src/main/java/org/apache/cloudstack/auth/UserTwoFactorAuthenticator.java
Outdated
Show resolved
Hide resolved
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4656 |
|
@blueorangutan package |
|
@harikrishna-patnala a 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. |
|
Packaging result: ✔️ el7 ✖️ el8 ✔️ debian ✔️ suse15. SL-JID 4668 |
weizhouapache
left a comment
There was a problem hiding this comment.
@harikrishna-patnala
overall it looks good to me.
great job !
...static-pin/src/main/java/org/apache/cloudstack/auth/StaticPinUserTwoFactorAuthenticator.java
Outdated
Show resolved
Hide resolved
|
@BryanMLima @stephankruggg Github has its own mind, I was trying to click on the re-review icon to ask you both to help review this again. Thanks. |
|
cc @DaanHoogland I think this is ready for merge if smoketests passes and there are no regressions. Any additional testing and review is welcome. |
engine/schema/src/main/java/org/apache/cloudstack/resourcedetail/UserDetailVO.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/cloud/api/auth/SetupUserTwoFactorAuthenticationCmd.java
Outdated
Show resolved
Hide resolved
|
Trillian test result (tid-6163)
|
|
@harikrishna-patnala can you address/answer the comments? |
|
@blueorangutan package |
|
@harikrishna-patnala a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5564 |
|
SonarCloud Quality Gate failed. |
|
@blueorangutan test matrix |
|
@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests |
|
Trillian test result (tid-6166)
|
|
Trillian test result (tid-6168)
|
|
Trillian test result (tid-6167)
|
|
@harikrishna-patnala are the extraconfig errors related to this pr? |
|
No @rohityadavcloud these are failing on main as well. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5568 |









Description
This PR introduces a new feature to add support for Two Factor Authentication 2FA in CloudStack.
The corresponding documentation PR is at apache/cloudstack-documentation#293 having all the details about the feature and how to use it.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
Few sample screenshots are attached here
User login page to verify 2FA

User page to setup 2FA using google provider

User page to setup 2FA using staticpin provider

User login page to setup 2FA on the first login attempt

A new action button to enable/disable 2FA for user
