Skip to content

fix: Ensure URL and Auth Token come from same source#3378

Merged
szokeasaurusrex merged 10 commits into
masterfrom
szokeasaurusrex/sdk-1233
Jul 22, 2026
Merged

fix: Ensure URL and Auth Token come from same source#3378
szokeasaurusrex merged 10 commits into
masterfrom
szokeasaurusrex/sdk-1233

Conversation

@szokeasaurusrex

Copy link
Copy Markdown
Member

Fixes SDK-1233

@linear-code

linear-code Bot commented Jul 22, 2026

Copy link
Copy Markdown

SDK-1233

Comment thread src/commands/login.rs Outdated
Clear a more narrow set of env vars
The integration tests depend on UNIX platform specific behavior. We already cover these cases in the
unit tests added, so I think this can be deleted safely
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review July 22, 2026 12:47
@szokeasaurusrex
szokeasaurusrex requested review from a team as code owners July 22, 2026 12:47
@szokeasaurusrex
szokeasaurusrex requested review from loewenheim, msonnb and stephanie-anderson and removed request for msonnb and stephanie-anderson July 22, 2026 12:47
cursor[bot]

This comment was marked as resolved.

Comment thread src/config.rs
cursor[bot]

This comment was marked as resolved.

Comment thread src/config.rs
Comment thread src/config.rs Outdated
Comment thread src/config.rs Outdated
@szokeasaurusrex
szokeasaurusrex merged commit cf9235e into master Jul 22, 2026
30 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/sdk-1233 branch July 22, 2026 15:55
@sysmat

sysmat commented Jul 23, 2026

Copy link
Copy Markdown
  • this is breaking and you bump patch version
  • most modern software support configuration file and env variables, this is very bad design

runningcode added a commit to getsentry/sentry-android-gradle-plugin that referenced this pull request Jul 23, 2026
sentry-cli 3.6.2 discards a non-embedded auth token when the URL is resolved from a different configuration source (getsentry/sentry-cli#3378). The sentry-cli integration test job supplies the URL via the SENTRY_URL environment variable while the tests wrote the auth token into sentry.properties, so the token would now be ignored and the uploads would fail with "Auth token is required".

Provide the token via SENTRY_AUTH_TOKEN in the same CI job so the URL and token share a single runtime source, and drop the now-obsolete auth.token writes from the integration tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@szokeasaurusrex

Copy link
Copy Markdown
Member Author
  • this is breaking and you bump patch version
  • most modern software support configuration file and env variables, this is very bad design

The changes are intentional. Please see #3380 (comment).

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.

3 participants