Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency sentry-sdk to v1.14.0 [SECURITY] #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 21, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sentry-sdk (changelog) ==1.4.3 -> ==1.14.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2023-28117

Impact

When using the Django integration of the Sentry SDK in a specific configuration it is possible to leak sensitive cookies values, including the session cookie to Sentry. These sensitive cookies could then be used by someone with access to your Sentry issues to impersonate or escalate their privileges within your application.

The below must be true in order for these sensitive values to be leaked:

  1. Your Sentry SDK configuration has sendDefaultPII set to True
  2. You are using a custom name for either of the cookies below in your Django settings.
  1. You are not configured in your organization or project settings to use our data scrubbing features to account for the custom cookie names

Patches

As of version 1.14.0, the Django integration of the sentry-sdk will detect the custom cookie names based on your Django settings and will remove the values from the payload before sending the data to Sentry.

Workarounds

If you can not update your sentry-sdk to a patched version than you can use the SDKs filtering mechanism to remove the cookies from the payload that is sent to Sentry. For error events this can be done with the before_send callback method and for performance related events (transactions) you can use the before_send_transaction callback method.

If you'd like to handle filtering of these values on the server-side, you can also use our advanced data scrubbing feature to account for the custom cookie names. Look for the $http.cookies, $http.headers, $request.cookies, or $request.headers fields to target with your scrubbing rule.

References

Credits


Release Notes

getsentry/sentry-python (sentry-sdk)

v1.14.0

Compare Source

Various fixes & improvements
  • Add before_send_transaction (#​1840) by @​antonpirker

    Adds a hook (similar to before_send) that is called for all transaction events (performance releated data).

    Usage:

      import sentry_sdk
    
      def strip_sensitive_data(event, hint):

modify event here (or return None if you want to drop the event entirely)

    return event

sentry_sdk.init(

...

    before_send_transaction=strip_sensitive_data,
)

See also: https://docs.sentry.io/platforms/python/configuration/filtering/#using-platformidentifier-namebefore-send-transaction-

- Django: Always remove values of Django session related cookies. (#​1842) by @​antonpirker
- Profiling: Enable profiling for ASGI frameworks (#​1824) by @​Zylphrex
- Profiling: Better gevent support (#​1822) by @​Zylphrex
- Profiling: Add profile context to transaction (#​1860) by @​Zylphrex
- Profiling: Use co_qualname in python 3.11 (#​1831) by @​Zylphrex
- OpenTelemetry: fix Use dict for sentry-trace context instead of tuple (#​1847) by @​AbhiPrasad
- OpenTelemetry: fix extra dependency (#​1825) by @​bernardotorres
- OpenTelemetry: fix NoOpSpan updates scope (#​1834) by @​Zylphrex
- OpenTelemetry: Make sure to noop when there is no DSN (#​1852) by @​antonpirker
- FastAPI: Fix middleware being patched multiple times (#​1841) by @​JohnnyDeuss
- Starlette: Avoid import of pkg_resource with Starlette integration (#​1836) by @​mgu
- Removed code coverage target (#​1862) by @​antonpirker

v1.13.0

Compare Source

Various fixes & improvements

v1.12.1

Compare Source

Various fixes & improvements

v1.12.0

Compare Source

Basic OTel support

This adds support to automatically integrate OpenTelemetry performance tracing with Sentry.

See the documentation on how to set it up:
https://docs.sentry.io/platforms/python/performance/instrumentation/opentelemetry/

Give it a try and let us know if you have any feedback or problems with using it.

By: @​antonpirker (#​1772, #​1766, #​1765)

Various fixes & improvements

v1.11.1

Compare Source

Various fixes & improvements

v1.11.0

Compare Source

Various fixes & improvements

v1.10.1

Compare Source

Various fixes & improvements

v1.10.0

Compare Source

Various fixes & improvements

v1.9.10

Compare Source

Various fixes & improvements

v1.9.9

Compare Source

Django update (ongoing)
  • Instrument Django Signals so they show up in "Performance" view (#​1526) by @​BeryJu
  • include other Django enhancements brought up by the community
Various fixes & improvements

v1.9.8

Compare Source

Various fixes & improvements
  • Baggage creation for head of trace (#​1589) by @​sl0thentr0py
    • The SDK now also generates new baggage entries for dynamic sampling when it is the first (head) SDK in the pipeline.

v1.9.7

Compare Source

Various fixes & improvements

Note: The last version 1.9.6 introduced a breaking change where projects that used Starlette or FastAPI
and had manually setup SentryAsgiMiddleware could not start. This versions fixes this behaviour.
With this version if you have a manual SentryAsgiMiddleware setup and are using Starlette or FastAPI
everything just works out of the box.

Sorry for any inconveniences the last version might have brought to you.

We can do better and in the future we will do our best to not break your code again.

v1.9.6

Compare Source

Various fixes & improvements

v1.9.5

Compare Source

Various fixes & improvements

v1.9.4

Compare Source

Various fixes & improvements

v1.9.3

Compare Source

Various fixes & improvements

v1.9.2

Compare Source

Various fixes & improvements

v1.9.1

Compare Source

Various fixes & improvements

v1.9.0

Compare Source

Various fixes & improvements

v1.8.0

Compare Source

Various fixes & improvements
  • feat(starlette): add Starlette integration (#​1441) by @​sl0thentr0py
    Important: Remove manual usage of SentryAsgiMiddleware! This is now done by the Starlette integration.
    Usage:

    from starlette.applications import Starlette
    
    from sentry_sdk.integrations.starlette import StarletteIntegration
    
    sentry_sdk.init(
        dsn="...",
        integrations=[StarletteIntegration()],
    )
    
    app = Starlette(debug=True, routes=[...])
  • feat(fastapi): add FastAPI integration (#​829) by @​antonpirker

    Important: Remove manual usage of SentryAsgiMiddleware! This is now done by the FastAPI integration.

    Usage:

    from fastapi import FastAPI
    
    from sentry_sdk.integrations.starlette import StarletteIntegration
    from sentry_sdk.integrations.fastapi import FastApiIntegration
    
    sentry_sdk.init(
        dsn="...",
        integrations=[StarletteIntegration(), FastApiIntegration()],
    )
    
    app = FastAPI()

    Yes, you have to add both, the StarletteIntegration AND the FastApiIntegration!

  • fix: avoid sending empty Baggage header (#​1507) by @​intgr

  • fix: properly freeze Baggage object (#​1508) by @​intgr

  • docs: fix simple typo, collecter | collector (#​1505) by @​timgates42

v1.7.2

Compare Source

Various fixes & improvements

v1.7.1

Compare Source

Various fixes & improvements

v1.7.0

Compare Source

Various fixes & improvements
  • feat(tracing): Dynamic Sampling Context / Baggage continuation (#​1485) by @​sl0thentr0py

    The SDK now propagates the W3C Baggage Header from
    incoming transactions to outgoing requests.
    It also extracts Sentry specific sampling information
    and adds it to the transaction headers to enable Dynamic Sampling in the product.

v1.6.0

Compare Source

Various fixes & improvements

v1.5.12

Compare Source

Various fixes & improvements

v1.5.11

Compare Source

Various fixes & improvements

v1.5.10

Compare Source

Various fixes & improvements

v1.5.9

Compare Source

Various fixes & improvements

v1.5.8

Compare Source

Various fixes & improvements

v1.5.7

Compare Source

Various fixes & improvements

v1.5.6

Compare Source

Various fixes & improvements

v1.5.5

Compare Source

  • Add session tracking to ASGI integration (#​1329)
  • Pinning test requirements versions (#​1330)
  • Allow classes to short circuit serializer with sentry_repr (#​1322)
  • Set default on json.dumps in compute_tracestate_value to ensure string conversion (#​1318)

Work in this release contributed by @​tomchuk. Thank you for your contribution!

v1.5.4

Compare Source

  • Add Python 3.10 to test suite (#​1309)
  • Capture only 5xx HTTP errors in Falcon Integration (#​1314)
  • Attempt custom urlconf resolve in got_request_exception as well (#​1317)

v1.5.3

Compare Source

  • Pick up custom urlconf set by Django middlewares from request if any (#​1308)

v1.5.2

Compare Source

Work in this release contributed by @​johnzeringue, @​pgjones and @​ahopkins. Thank you for your contribution!

v1.5.1

Compare Source

Various fixes & improvements

v1.5.0

Compare Source

  • Also record client outcomes for before send #​1211
  • Add support for implicitly sized envelope items #​1229
  • Fix integration with Apache Beam 2.32, 2.33 #​1233
  • Remove Python 2.7 support for AWS Lambda layers in craft config #​1241
  • Refactor Sanic integration for v21.9 support #​1212
  • AWS Lambda Python 3.9 runtime support #​1239
  • Fix "shutdown_timeout" typing #​1256

Work in this release contributed by @​galuszkak, @​kianmeng, @​ahopkins, @​razumeiko, @​tomscytale, and @​seedofjoy. Thank you for your contribution!


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title Update dependency sentry-sdk to v1.17.0 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Mar 22, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 9bcb318 to 75745a5 Compare May 29, 2023 17:50
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.24.0 [SECURITY] May 29, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 75745a5 to af3d563 Compare June 1, 2023 16:13
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.24.0 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Jun 1, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from af3d563 to 3c5481d Compare June 18, 2023 14:56
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.25.1 [SECURITY] Jun 18, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 3c5481d to ed716cf Compare June 23, 2023 05:10
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.25.1 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Jun 23, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from ed716cf to 1df8073 Compare July 11, 2023 02:51
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.28.0 [SECURITY] Jul 11, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 1df8073 to 95c84c0 Compare July 12, 2023 20:43
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.28.0 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Jul 12, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 95c84c0 to 770ec37 Compare August 23, 2023 05:38
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.29.2 [SECURITY] Aug 23, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 770ec37 to e85ebb8 Compare August 26, 2023 12:00
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.29.2 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Aug 26, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from e85ebb8 to 444a677 Compare September 20, 2023 02:44
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.31.0 [SECURITY] Sep 20, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 444a677 to d52aa2b Compare September 21, 2023 05:43
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.31.0 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Sep 21, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from d52aa2b to 569f9c3 Compare September 26, 2023 11:48
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.31.0 [SECURITY] Sep 26, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 569f9c3 to 9dbe66f Compare September 27, 2023 05:17
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.31.0 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Sep 27, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 9dbe66f to 09e9a2d Compare November 17, 2023 12:03
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.35.0 [SECURITY] Nov 17, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 09e9a2d to b189974 Compare November 18, 2023 11:15
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.35.0 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Nov 18, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from b189974 to 4159cb2 Compare December 5, 2023 02:20
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.38.0 [SECURITY] Dec 5, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 4159cb2 to cff3b94 Compare December 6, 2023 08:26
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.38.0 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Dec 6, 2023
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from cff3b94 to 06b839d Compare January 5, 2024 05:12
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.39.1 [SECURITY] Jan 5, 2024
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 06b839d to 2c87031 Compare January 6, 2024 11:54
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.39.1 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Jan 6, 2024
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 2c87031 to dd3313e Compare January 9, 2024 08:50
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.39.1 [SECURITY] Jan 9, 2024
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from dd3313e to 1b71458 Compare January 10, 2024 05:48
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.39.1 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Jan 10, 2024
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 1b71458 to 1583d78 Compare January 18, 2024 05:27
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.14.0 [SECURITY] Update dependency sentry-sdk to v1.39.2 [SECURITY] Jan 18, 2024
@renovate renovate bot force-pushed the renovate/pypi-sentry-sdk-vulnerability branch from 1583d78 to 68db562 Compare January 19, 2024 20:39
@renovate renovate bot changed the title Update dependency sentry-sdk to v1.39.2 [SECURITY] Update dependency sentry-sdk to v1.14.0 [SECURITY] Jan 19, 2024
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.

None yet

0 participants