Skip to content

fix(auth): use org token region_url as API base URL#3377

Closed
shayna-ch wants to merge 4 commits into
masterfrom
shayna-ch/region-url-issue
Closed

fix(auth): use org token region_url as API base URL#3377
shayna-ch wants to merge 4 commits into
masterfrom
shayna-ch/region-url-issue

Conversation

@shayna-ch

Copy link
Copy Markdown
Member

Org auth tokens embed both url (always the primary US URL) and region_url, but the CLI only read url. For orgs with non-default data residency (e.g. EU), uploads routed to the wrong region and failed with Invalid org token, ignoring SENTRY_URL/--url.

Now prefers region_url as the API base URL when present, falling back to url for older tokens.

@shayna-ch
shayna-ch requested review from a team and szokeasaurusrex as code owners July 21, 2026 21:50
@shayna-ch
shayna-ch marked this pull request as draft July 23, 2026 17:40
@shayna-ch
shayna-ch force-pushed the shayna-ch/region-url-issue branch from 92224cb to f553069 Compare July 23, 2026 17:40
@shayna-ch
shayna-ch marked this pull request as ready for review July 23, 2026 17:40

@szokeasaurusrex szokeasaurusrex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not all endpoints support region URLs as some of the endpoints are on the control silo (sentry.io), but all of the endpoints we call directly are reachable through sentry.io. I am not deeply familiar with the exact mechanisms for this, but essentially there is a reverse proxy from the control silo to the region silos.

This change should not be necessary at all. I'd appreciate more context about the problem so we can identify the root cause and find an acceptable solution

@shayna-ch shayna-ch closed this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants