-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(cells): make tempest ips control only #104305
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
Conversation
| # TODO(cells): This endpoint is moving to control | ||
| @all_silo_endpoint | ||
| @control_silo_endpoint | ||
| class UptimeIpsEndpoint(Endpoint): |
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.
@evanpurkhiser where is this endpoint being used? it doesn't seem to be via our UI. anywhere else we need to update before turning it off on the region API?
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.
It’s a public endpoint documented in our docs for hosting providers like cloudflare and vercel to use in their system to automatically receive updates as we add more uptime checkers.
They’ll automatically add these ips to their whitelists so you they don’t accidentally mark our check traffic as a DoS.
Does this change change how this API is accessed?
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.
Yes -- it's accessed via http://sentry.io/api/0/uptime-ips/ only, and not http://us.sentry.io/api/0/uptime-ips/ and http://de.sentry.io/api/0/uptime-ips/
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.
OK that's no problem then
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.
guessing this needs to change then?
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.
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.
Is it going to be possible to keep this around as a 302. I think we're going to need to let high profile users of this endpoint know this is changing
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.
Yes, what date should i put down for the removal? Couple of months?
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.
Will leave it up to @gaprl
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.
reverted this part for now, we'll wait a "few months"
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #104305 +/- ##
=========================================
Coverage 80.60% 80.60%
=========================================
Files 9340 9340
Lines 399038 399396 +358
Branches 25560 25560
=========================================
+ Hits 321628 321937 +309
- Misses 76961 77010 +49
Partials 449 449 |
| from sentry.testutils.silo import control_silo_test | ||
|
|
||
|
|
||
| @control_silo_test |
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.
Bug: Uptime endpoint not changed to control silo
The test for UptimeIpsEndpoint was updated to use @control_silo_test, but the actual endpoint in src/sentry/uptime/endpoints/uptime_ips.py still uses @all_silo_endpoint and retains the TODO comment about moving to control. Based on the PR title "make tempest and uptime ips control only", the uptime endpoint implementation appears to have been accidentally omitted from this change, causing a mismatch between the test and implementation.
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.
leaving this as-is. the endpoint will eventually be control-only
No description provided.