-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Environment
We are using @sentry/[email protected] in our web-app.
Expected Result
Only the releases we define in our use of the SDK or which we create in Sentry via the API or the GitHub action should be assigned to our projects.
Actual Result
We have observed that a large number of third-party release were created for our Sentry fall-back project, for which we deliberately never set or create a release. As it turned out, these releases are injected via the global SENTRY_RELEASE
or __SENTRY_RELEASE__
variables that your bundler plugins create for third-party scripts, such as browser extensions, and are then applied to our project during the run-time of the SDK.
Here is one example: The release 1.25.0-b91f378 assigned to our fallback-project comes from the lace browser extension. The version is generated here and added as a Sentry version by your Webpack plugin. If a user now visits our web app with this plugin being loaded, our SDK code will pick up the release from the global variable set by the plugin on the shared window object.
Workaround
Our current workaround is to explicitly clear the release field in our code before it is sent to your servers.
Long-term solution
I would expect the code that the plugin generates to be associated with the Sentry project it is injected for to be able to only assign this version at run-time if the project matches.
Metadata
Metadata
Assignees
Labels
Projects
Status