Skip to content

Conversation

@szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Nov 11, 2025

Description

⚠️ Breaking change: Do not merge until ready to release in a major.

Removed support for the legacy API key authentication method. Users must now use auth tokens instead.

Specifically, users supplying an API key via any of the following options need to generate and use an auth token instead:

  • --api-key CLI flag
  • SENTRY_API_KEY environment variable
  • api_key configuration file field
  • apiKey option in the JavaScript API

Issues


BREAKING CHANGE: API-key based authentication is no longer supported. The --api-key CLI flag and apiKey JS option have been removed; the SENTRY_API_KEY environment variable and api_key configuration file field are no longer read.

@linear
Copy link

linear bot commented Nov 11, 2025

Copy link
Member Author

szokeasaurusrex commented Nov 11, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

szokeasaurusrex added a commit that referenced this pull request Nov 11, 2025
### Description
⚠️ **Breaking change:** Do not merge until ready to release in a major.

Removed support for the legacy API key authentication method. Users must now use auth tokens instead.

Specifically, users supplying an API key via any of the following options need to generate and use an auth token instead:

  - `--api-key` CLI flag
  - `SENTRY_API_KEY` environment variable
  - `api_key` configuration file field
  - `apiKey` option in the JavaScript API

### Issues
- Resolves #2873
- Resolves [CLI-199](https://linear.app/getsentry/issue/CLI-199/remove-api-key-authentication)

_____

BREAKING CHANGE: API-key based authentication is no longer supported. The `--api-key` CLI flag and `apiKey` JS option have been removed; the `SENTRY_API_KEY` environment variable and `api_key` configuration file field are no longer read.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-auth-key branch from 6a6e1d8 to f36d018 Compare November 11, 2025 10:19
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review November 11, 2025 10:20
@szokeasaurusrex szokeasaurusrex requested review from a team as code owners November 11, 2025 10:20
@szokeasaurusrex szokeasaurusrex requested review from Lms24 and removed request for a team and Lms24 November 11, 2025 10:20
@szokeasaurusrex
Copy link
Member Author

@andreiborza would appreciate if you could just check the JS API portion. I will be raising a PR to deprecate the options in 2.x so this removal doesn't come as a surprise to anyone

@szokeasaurusrex szokeasaurusrex added the v3.0 Breaking changes to include in version 3.0.0 of Sentry CLI label Nov 11, 2025
szokeasaurusrex added a commit that referenced this pull request Nov 11, 2025
⚠️ **Breaking change:** Do not merge until ready to release in a major.

Removed support for the legacy API key authentication method. Users must now use auth tokens instead.

Specifically, users supplying an API key via any of the following options need to generate and use an auth token instead:

  - `--api-key` CLI flag
  - `SENTRY_API_KEY` environment variable
  - `api_key` configuration file field
  - `apiKey` option in the JavaScript API

- Resolves #2873
- Resolves [CLI-199](https://linear.app/getsentry/issue/CLI-199/remove-api-key-authentication)

_____

BREAKING CHANGE: API-key based authentication is no longer supported. The `--api-key` CLI flag and `apiKey` JS option have been removed; the `SENTRY_API_KEY` environment variable and `api_key` configuration file field are no longer read.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-auth-key branch from f36d018 to d298164 Compare November 11, 2025 10:29
szokeasaurusrex added a commit that referenced this pull request Nov 11, 2025
### Description
⚠️ **Breaking change:** Do not merge until ready to release in a major.

Removed support for the legacy API key authentication method. Users must now use auth tokens instead.

Specifically, users supplying an API key via any of the following options need to generate and use an auth token instead:

  - `--api-key` CLI flag
  - `SENTRY_API_KEY` environment variable
  - `api_key` configuration file field
  - `apiKey` option in the JavaScript API

### Issues
- Resolves #2873
- Resolves [CLI-199](https://linear.app/getsentry/issue/CLI-199/remove-api-key-authentication)

_____

BREAKING CHANGE: API-key based authentication is no longer supported. The `--api-key` CLI flag and `apiKey` JS option have been removed; the `SENTRY_API_KEY` environment variable and `api_key` configuration file field are no longer read.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-auth-key branch from d298164 to 5e0f541 Compare November 11, 2025 10:29
szokeasaurusrex added a commit that referenced this pull request Nov 11, 2025
### Description
⚠️ **Breaking change:** Do not merge until ready to release in a major.

Removed support for the legacy API key authentication method. Users must now use auth tokens instead.

Specifically, users supplying an API key via any of the following options need to generate and use an auth token instead:

  - `--api-key` CLI flag
  - `SENTRY_API_KEY` environment variable
  - `api_key` configuration file field
  - `apiKey` option in the JavaScript API

### Issues
- Resolves #2873
- Resolves [CLI-199](https://linear.app/getsentry/issue/CLI-199/remove-api-key-authentication)

_____

BREAKING CHANGE: API-key based authentication is no longer supported. The `--api-key` CLI flag and `apiKey` JS option have been removed; the `SENTRY_API_KEY` environment variable and `api_key` configuration file field are no longer read.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-auth-key branch from 5e0f541 to 2b4adc9 Compare November 11, 2025 11:13
Copy link
Member

@andreiborza andreiborza left a comment

Choose a reason for hiding this comment

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

JS part is fine 👍

Copy link
Contributor

@loewenheim loewenheim left a comment

Choose a reason for hiding this comment

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

Are the test output changes in some way caused by this removal?

@szokeasaurusrex
Copy link
Member Author

Are the test output changes in some way caused by this removal?

It appears so; I suspect these changes, which remove the previously only hidden --api-key flag from the top-level command, are to blame. I have no idea why Clap reorders some of the arguments after this change. It indeed seems weird, but from what I can tell, it is only that stuff is being moved around, and I don't see any actual changes to the content.

szokeasaurusrex added a commit that referenced this pull request Nov 19, 2025
⚠️ **Breaking change:** Do not merge until ready to release in a major.

Removed support for the legacy API key authentication method. Users must now use auth tokens instead.

Specifically, users supplying an API key via any of the following options need to generate and use an auth token instead:

  - `--api-key` CLI flag
  - `SENTRY_API_KEY` environment variable
  - `api_key` configuration file field
  - `apiKey` option in the JavaScript API

- Resolves #2873
- Resolves [CLI-199](https://linear.app/getsentry/issue/CLI-199/remove-api-key-authentication)

_____

BREAKING CHANGE: API-key based authentication is no longer supported. The `--api-key` CLI flag and `apiKey` JS option have been removed; the `SENTRY_API_KEY` environment variable and `api_key` configuration file field are no longer read.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-auth-key branch from c26fb76 to aae5c95 Compare November 19, 2025 10:43
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/proguard-chunk-upload-default branch from 5eff8ca to 6f8b6b0 Compare November 19, 2025 10:43
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-auth-key branch from aae5c95 to c77da95 Compare November 24, 2025 15:15
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/proguard-chunk-upload-default branch from 6f8b6b0 to 07c4383 Compare November 24, 2025 15:15
szokeasaurusrex added a commit that referenced this pull request Dec 3, 2025
⚠️ **Breaking change:** Do not merge until ready to release in a major.

Removed support for the legacy API key authentication method. Users must now use auth tokens instead.

Specifically, users supplying an API key via any of the following options need to generate and use an auth token instead:

  - `--api-key` CLI flag
  - `SENTRY_API_KEY` environment variable
  - `api_key` configuration file field
  - `apiKey` option in the JavaScript API

- Resolves #2873
- Resolves [CLI-199](https://linear.app/getsentry/issue/CLI-199/remove-api-key-authentication)

_____

BREAKING CHANGE: API-key based authentication is no longer supported. The `--api-key` CLI flag and `apiKey` JS option have been removed; the `SENTRY_API_KEY` environment variable and `api_key` configuration file field are no longer read.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-auth-key branch from c77da95 to 76311ef Compare December 3, 2025 09:22
⚠️ **Breaking change:** Do not merge until ready to release in a major.

Removed support for the legacy API key authentication method. Users must now use auth tokens instead.

Specifically, users supplying an API key via any of the following options need to generate and use an auth token instead:

  - `--api-key` CLI flag
  - `SENTRY_API_KEY` environment variable
  - `api_key` configuration file field
  - `apiKey` option in the JavaScript API

- Resolves #2873
- Resolves [CLI-199](https://linear.app/getsentry/issue/CLI-199/remove-api-key-authentication)

_____

BREAKING CHANGE: API-key based authentication is no longer supported. The `--api-key` CLI flag and `apiKey` JS option have been removed; the `SENTRY_API_KEY` environment variable and `api_key` configuration file field are no longer read.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-auth-key branch from 76311ef to 60feea6 Compare December 3, 2025 09:24
@szokeasaurusrex szokeasaurusrex requested a review from a team as a code owner December 3, 2025 09:24
@szokeasaurusrex szokeasaurusrex changed the base branch from szokeasaurusrex/proguard-chunk-upload-default to graphite-base/2935 December 3, 2025 09:24
@szokeasaurusrex szokeasaurusrex changed the base branch from graphite-base/2935 to szokeasaurusrex/proguard-chunk-upload-default December 3, 2025 09:28
cursor[bot]

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v3.0 Breaking changes to include in version 3.0.0 of Sentry CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants