Repository navigation
Closed
Labels
Description
The CLI still calls two Sentry API routes that are deprecated for cell routing. Since CELL_API_DEPRECATION_DATE (2026-05-15) they can return 410 Gone on SaaS during brownout windows, which breaks the commands that hit them.
Unscoped issue details: GET/PUT /api/0/issues/{id}/
getIssue()(packages/cli/src/lib/api/issues.ts:330ond0ae06c) handles bare numeric issue IDs with no org context (issue view 123456789,explain,plan,events,tags,resolve…).updateIssueStatus()withoutorgSlugsends the legacyPUT(issues.ts:634).mergeIssues()also invalidates cached responses for that legacy URL (issues.ts:703). It makes no request.- Sentry marks
GET/PUT/DELETEonsentry-api-0-group-detailsas@deprecated(CELL_API_DEPRECATION_DATE, …)(group_details.py:239, since getsentry/sentry@7fc78c73388).
DSN project lookup: GET /api/0/projects/?query=dsn:<key>
findProjectByDsnKey()(packages/cli/src/lib/api/projects.ts:578and:593) resolves DSNs that don't carryo<id>in the host, such as legacysentry.ioDSNs and self-hosted DSNs. It's used by DSN auto-detection (lib/dsn/resolver.ts,lib/resolve-target.ts).ProjectIndexEndpoint.getis@deprecated(CELL_API_DEPRECATION_DATE, suggested_api="sentry-api-0-organization-projects")(project_index.py:34, since getsentry/sentry@f7d342f5f55).
Brownout behavior
CELL_API_DEPRECATION_DATEis defined atconstants.py:1036.- The
@deprecateddecorator does nothing on self-hosted. On SaaS, after the deprecation date, it returns 410 inside the brownout window (api/helpers/deprecation.py:200-212). - The configured window is
api.deprecation.brownout-cron: 0 12 * * *with a 60 s duration, so 60 s daily at 12:00 UTC. That's the sentry default and the getsentry value in sentry-options-automator. I only checked the configuration, not live production behavior.
Related
- Remove all non-org-scoped API endpoints from the API client #1145 covers other non-org-scoped routes (project-scoped alerts, releases, monitors). It doesn't include these two.
- Sentry CLI calls endpoints that aren't in the public API schema: publish or keep private? sentry#130351 lists
/organizations/{org}/dsn-lookup/among the endpoints the CLI needs published.
via @BYK.
--
Activity
linear-code commentedon Nov 7, 2026
MCP-1199
fix(cli): Use org-scoped issue routes and dsn-lookup instead of depre…
ref(cli): Validate tokens with the org list instead of /users/me/regi…
ref(cli): Validate tokens with the org list instead of /users/me/regi…