Skip to content

Conversation

@lynnagara
Copy link
Member

No description provided.

@lynnagara lynnagara requested review from a team as code owners December 3, 2025 02:37
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 3, 2025
# TODO(cells): This endpoint is moving to control
@all_silo_endpoint
@control_silo_endpoint
class UptimeIpsEndpoint(Endpoint):
Copy link
Member Author

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?

Copy link
Member

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?

Copy link
Member Author

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/

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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

Copy link
Member Author

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?

Copy link
Member

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

Copy link
Member Author

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
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

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            

lynnagara added a commit to getsentry/sentry-docs that referenced this pull request Dec 3, 2025
lynnagara added a commit to getsentry/sentry-docs that referenced this pull request Dec 3, 2025
from sentry.testutils.silo import control_silo_test


@control_silo_test
Copy link
Contributor

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.

Fix in Cursor Fix in Web

Copy link
Member Author

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

@lynnagara lynnagara changed the title feat(cells): make tempest and uptime ips control only feat(cells): make tempest ips control only Dec 4, 2025
@lynnagara lynnagara merged commit 3696aba into master Dec 4, 2025
67 checks passed
@lynnagara lynnagara deleted the tempest-uptime-ips-control-only branch December 4, 2025 21:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants