-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove Domain/IP from Password Reset Link to custom Global Setting #11379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Remove Domain/IP from Password Reset Link to custom Global Setting #11379
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11379 +/- ##
=========================================
Coverage 17.35% 17.35%
- Complexity 15230 15231 +1
=========================================
Files 5886 5886
Lines 525685 525686 +1
Branches 64159 64159
=========================================
+ Hits 91247 91249 +2
Misses 424138 424138
+ Partials 10300 10299 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
server/src/main/java/org/apache/cloudstack/user/UserPasswordResetManagerImpl.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
@blueorangutan package |
@kiranchavala a [SL] 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 [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14550 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM , tested with smtp docker image
https://github.com/mailhog/MailHog
We are not showing the IP address of Management server in the reset password mail
Global setting
user.password.reset.mail.template ="Hello {{username}}!
You have requested to reset your password. Please click the following link to reset your password:
http://kiranchavala.in{{{resetLink}}}
If you did not request a password reset, please ignore this email.
Regards,
The CloudStack Team
Before fix

After fix

@daviftorres what in case the config 'user.password.reset.mail.template' doesn't have any domain before the reset link (default value, has |
@sureshanaparti if global setting is only http://{{{resetLink}}} ![]() |
@sureshanaparti, you're absolutely right. At first, I considered using a placeholder like example.com in the global settings, but that might be risky since people could click on it. Then I thought of using your_domain_here, which doesn’t resolve and is therefore safer. Either way, whoever manages the cloud setup needs to customize this field. What do you suggest? This way, the string cannot be resolved and will not leak the password reset token if somebody clicks on it. Plus, I added the |
@blueorangutan package |
@DaanHoogland a [SL] 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. |
@daviftorres , all good to me. Do you want this on the next release only? It is now based off of main and I would think you want to base it off the 4.20 release branch? |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14565 |
@blueorangutan test |
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
hey @DaanHoogland , i honestly do not know how to procedure. Should i change it from |
@daviftorres it takes a little more effort, but this is part of it.
EDIT: I see you merged main back into your branch. I am not sure if that rebase-onto tactic still works after that. take care. |
[SF] Trillian test result (tid-14036)
|
0f276cc
to
f5e4f89
Compare
f5e4f89
to
ca37bdd
Compare
server/src/main/java/org/apache/cloudstack/user/UserPasswordResetManagerImpl.java
Outdated
Show resolved
Hide resolved
ManagementServerAddresses was removed.
…setManagerImpl.java Co-authored-by: Suresh Kumar Anaparti <[email protected]>
ab46129
to
919f1f8
Compare
Description
This PR is a minor change on the
resetLink
generated when users self-serve resetting passwords as described in issue #11378Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
It was not tested.
How did you try to break this feature and the system with this change?
I did not.