chore(deps): update dependency sentry-sdk to v1.45.1 [security] #236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.39.1→==1.45.1GitHub Vulnerability Alerts
CVE-2024-40647
Impact
The bug in Sentry's Python SDK <2.8.0 results in the unintentional exposure of environment variables to subprocesses despite the
env={}setting.Details
In Python's
subprocesscalls, all environment variables are passed to subprocesses by default. However, if you specifically do not want them to be passed to subprocesses, you may useenvargument insubprocesscalls, like in this example:If you'd want to not pass any variables, you can set an empty dict:
However, the bug in Sentry SDK <2.8.0 causes all environment variables to be passed to the subprocesses when
env={}is set, unless the Sentry SDK's Stdlib integration is disabled. The Stdlib integration is enabled by default.Patches
The issue has been patched in https://github.com/getsentry/sentry-python/pull/3251 and the fix released in sentry-sdk==2.8.0. The fix was also backported to sentry-sdk==1.45.1.
Workarounds
We strongly recommend upgrading to the latest SDK version. However, if it's not possible, and if passing environment variables to child processes poses a security risk for you, there are two options:
env={}with the minimal dictenv={"EMPTY_ENV":"1"}or similar.OR
References
Release Notes
getsentry/sentry-python (sentry-sdk)
v1.45.1Compare Source
This is a security backport release.
Don't send full env to subprocess (
892dd80) by @kmichel-aivenSee also GHSA-g92j-qhmh-64v2
v1.45.0Compare Source
This is the final 1.x release for the forseeable future. Development will continue on the 2.x release line. The first 2.x version will be available in the next few weeks.
Various fixes & improvements
Allow to upsert monitors (#2929) by @sentrivana
It's now possible to provide
monitor_configto themonitordecorator/context manager directly:Check out the cron docs for details.
Add Django
signals_denylistto filter signals that are attached to bysignals_spans(#2758) by @lieryanIf you want to exclude some Django signals from performance tracking, you can use the new
signals_denylistDjango option:incrementfor metrics (#2588) by @mitsuhikoincrementandincare equivalent, so you can pick whichever you like more.Add
value,unittobefore_emit_metric(#2958) by @sentrivanaIf you add a custom
before_emit_metric, it'll now accept 4 arguments (thekey,value,unitandtags) instead of justkeyandtags.Remove experimental metric summary options (#2957) by @sentrivana
The
_experimentsoptionsmetrics_summary_sample_rateandshould_summarize_metrichave been removed.New normalization rules for metric keys, names, units, tags (#2946) by @sentrivana
Change
data_categoryfromstatsdtometric_bucket(#2954) by @cleptricAccessing
__mro__might throw aValueError(#2952) by @sentrivanaSuppress prompt spawned by subprocess when using
pythonw(#2936) by @collinbankoHandle
Nonein GraphQL query #2715 (#2762) by @czyberDo not send "quiet" Sanic exceptions to Sentry (#2821) by @hamedsh
Implement
metric_bucketrate limits (#2933) by @cleptricFix type hints for
monitordecorator (#2944) by @szokeasaurusrexRemove deprecated
typingimports in crons (#2945) by @szokeasaurusrexMake
monitor_configaTypedDict(#2931) by @sentrivanaAdd
devenv-requirements.txtand update env setup instructions (#2761) by @arr-eeBump
types-protobuffrom4.24.0.20240311to4.24.0.20240408(#2941) by @dependabotDisable Codecov check run annotations (#2537) by @eliatcodecov
v1.44.1Compare Source
Various fixes & improvements
Make
monitorasync friendly (#2912) by @sentrivanaYou can now decorate your async functions with the
monitordecorator and they will correctly report their duration
and completion status.
Fixed
Event | NoneruntimeTypeError(#2928) by @szokeasaurusrexv1.44.0Compare Source
Various fixes & improvements
v1.43.0Compare Source
Various fixes & improvements
Add optional
keep_alive(#2842) by @sentrivanaIf you're experiencing frequent network issues between the SDK and Sentry,
you can try turning on TCP keep-alive:
Add support for Celery Redbeat cron tasks (#2643) by @kwigley
The SDK now supports the Redbeat scheduler in addition to the default
Celery Beat scheduler for auto instrumenting crons. See
the docs
for more information about how to set this up.
aws_eventcan be an empty list (#2849) by @sentrivanaRe-export
Eventintypes.py(#2829) by @szokeasaurusrexSmall API docs improvement (#2828) by @antonpirker
Fixed OpenAI tests (#2834) by @antonpirker
Bump
checkouts/data-schemasfromed078edto8232f17(#2832) by @dependabotv1.42.0Compare Source
Various fixes & improvements
New integration: OpenAI integration (#2791) by @colin-sentry
We added an integration for OpenAI to capture errors and also performance data when using the OpenAI Python SDK.
Useage:
This integrations is auto-enabling, so if you have the
openaipackage in your project it will be enabled. Just initialize Sentry before you create your OpenAI client.For more information, see the documentation for OpenAI integration.
Discard open OpenTelemetry spans after 10 minutes (#2801) by @antonpirker
Propagate sentry-trace and baggage headers to Huey tasks (#2792) by @cnschn
Added Event type (#2753) by @szokeasaurusrex
Improve scrub_dict typing (#2768) by @szokeasaurusrex
Dependencies: bump types-protobuf from 4.24.0.20240302 to 4.24.0.20240311 (#2797) by @dependabot
v1.41.0Compare Source
Various fixes & improvements
Add recursive scrubbing to
EventScrubber(#2755) by @Cheapshot003By default, the
EventScrubberwill not search your events for potentialPII recursively. With this release, you can enable this behavior with:
Expose
socket_options(#2786) by @sentrivanaIf the SDK is experiencing connection issues (connection resets, server
closing connection without response, etc.) while sending events to Sentry,
tweaking the default
urllib3socket options to the following can help:Allow to configure merge target for releases (#2777) by @sentrivana
Allow empty character in metric tags values (#2775) by @viglia
Replace invalid tag values with an empty string instead of _ (#2773) by @markushi
Add documentation comment to
scrub_list(#2769) by @szokeasaurusrexFixed regex to parse version in lambda package file (#2767) by @antonpirker
xfail broken AWS Lambda tests for now (#2794) by @sentrivana
Removed print statements because it messes with the tests (#2789) by @antonpirker
Bump
types-protobuffrom 4.24.0.20240129 to 4.24.0.20240302 (#2782) by @dependabotBump
checkouts/data-schemasfromeb941c2toed078ed(#2781) by @dependabotv1.40.6Compare Source
Various fixes & improvements
greenlet/gevent(#2756) by @sentrivanaclickhouse-driver==0.2.7(#2752) by @sentrivanacheckouts/data-schemasfrom6121fd3toeb941c2(#2747) by @dependabotv1.40.5Compare Source
Various fixes & improvements
Deprecate
last_event_id(). (#2749) by @antonpirkerWarn if uWSGI is set up without proper thread support (#2738) by @sentrivana
uWSGI has to be run in threaded mode for the SDK to run properly. If this is
not the case, the consequences could range from features not working unexpectedly
to uWSGI workers crashing.
Please make sure to run uWSGI with both
--enable-threadsand--py-call-uwsgi-fork-hooks.parsed_urlcan beNone(#2734) by @sentrivanaPython 3.7 is not supported anymore by Lambda, so removed it and added 3.12 (#2729) by @antonpirker
v1.40.4Compare Source
Various fixes & improvements
aa7058cto6121fd3(#2724) by @dependabotv1.40.3Compare Source
Various fixes & improvements
v1.40.2Compare Source
Various fixes & improvements
pytesterror (#2712) by @szokeasaurusrexv1.40.1Compare Source
Various fixes & improvements
gevent(#2694) by @sentrivanaengine.urlbeingNone(#2708) by @sentrivanasentry_sdk.utils._generate_installed_modules(#2703) by @GlenWalkercodecov/codecov-actionfrom 3 to 4 (#2706) by @dependabotactions/cachefrom 3 to 4 (#2661) by @dependabotactions/checkoutfrom 3.1.0 to 4.1.1 (#2561) by @dependabotgithub/codeql-actionfrom 2 to 3 (#2603) by @dependabotactions/setup-pythonfrom 4 to 5 (#2577) by @dependabotv1.40.0Compare Source
Various fixes & improvements
UnicodeDecodeErroron Python 2 (#2657) by @sentrivanablack==24.1.0(#2680) by @sentrivanasentry_sdk.tracetype hints (#2633) by @szokeasaurusrexcheckouts/data-schemasfrome9f7d58toaa7058c(#2639) by @dependabotv1.39.2Compare Source
Various fixes & improvements
TypeErrorfor static and class methods (#2559) by @szokeasaurusrexctxin Arq integration (#2600) by @ivanovartdata_categoryfromcheck_intomonitor(#2598) by @sentrivanaConfiguration
📅 Schedule: Branch creation - "" in timezone Europe/Oslo, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.