-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(crons): Use appropriate email for notifying users of broken detections/auto-mutes #69595
feat(crons): Use appropriate email for notifying users of broken detections/auto-mutes #69595
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: src/sentry/monitors/tasks/detect_broken_monitor_envs.py
Did you find this useful? React with a 👍 or 👎 |
0ffbc22
to
1282828
Compare
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.
Can we only send these emails to those that are verified email addresses? This has potential to be abused to spam accounts not under the user's control.
Ahh yes we could check to make sure the email is verified, but could you elaborate more here? The user will be the one picking which email address they want communications to, so just want to understand how it might not be in their control. |
An attacker could make a bunch of accounts for users using emails they don't own, then sentry would send them a bunch of spam. We've actually had this happen before from what I remember. I wonder if the function you're calling should just be getting validated emails, since |
Ahh I see now ty @wedamija @mdtro for the headsup, yea we should definitely guard against this. Reached out to hybrid cloud but they don't seem to have opinions about this since they just ported the code over to make it silo-safe. Will probably add a parameter to |
1282828
to
22cd79c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #69595 +/- ##
==========================================
+ Coverage 79.82% 79.89% +0.06%
==========================================
Files 6495 6499 +4
Lines 288943 289669 +726
Branches 49759 49877 +118
==========================================
+ Hits 230661 231436 +775
+ Misses 57886 57837 -49
Partials 396 396
|
22cd79c
to
64bf5ca
Compare
64bf5ca
to
0de2e66
Compare
0de2e66
to
55f5eb5
Compare
If the user set up alternative email routing for the given project of a monitor via settings like this:
Then respect it when sending the broken monitor emails.