You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(auth): Remove API key authentication (#2935)
⚠️ **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.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,19 @@ we should rename this section to "Unreleased" -->
12
12
13
13
### Breaking Changes
14
14
15
+
- Removed support for the legacy API key authentication method ([#2935](https://github.com/getsentry/sentry-cli/pull/2935)). Sentry CLI now only supports authenticating with Auth Tokens. If you are using API key authentication via any of the following methods, you need to generate and use an [Auth Token](https://docs.sentry.io/account/auth-tokens/), instead:
16
+
- `--api-key` CLI flag
17
+
- `SENTRY_API_KEY` environment variable
18
+
- `api_key` configuration file field
19
+
- `apiKey` option in the JavaScript API
15
20
- Removed the `upload-proguard` subcommand's `--app-id`, `--version`, and `--version-code` arguments ([#2876](https://github.com/getsentry/sentry-cli/pull/2876)). Users using these arguments should stop using them, as they are unnecessary. The information passed to these arguments is no longer visible in Sentry.
16
21
22
+
#### Node.js Wrapper Breakages
23
+
24
+
The following changes only apply when using `sentry-cli` via the npm package [`@sentry/cli`](https://www.npmjs.com/package/@sentry/cli):
25
+
26
+
- Removed the `apiKey` option from `SentryCliOptions` ([#2935](https://github.com/getsentry/sentry-cli/pull/2935)). If you are using `apiKey`, you need to generate and use an [Auth Token](https://docs.sentry.io/account/auth-tokens/) via the `authToken` option, instead.
27
+
17
28
### Improvements
18
29
19
30
- The `sentry-cli upload-proguard` command now uses chunked uploading by default ([#2918](https://github.com/getsentry/sentry-cli/pull/2918)). Users who previously set the `SENTRY_EXPERIMENTAL_PROGUARD_CHUNK_UPLOAD` environment variable to opt into this behavior no longer need to set the variable.
0 commit comments