-
Notifications
You must be signed in to change notification settings - Fork 642
feat(integrations): apply data_collection cookie filtering to wsgi, starlette, litestar, starlite #6797
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
Merged
Merged
feat(integrations): apply data_collection cookie filtering to wsgi, starlette, litestar, starlite #6797
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
7541460
ref(integrations): route HTTP header filtering through data collectio…
ericapisani 5e9f610
Merge branch 'master' into py-2584-update-wsgi-filter-headers
ericapisani a590c8e
Make changes to adjust to the data collection option being within the…
ericapisani 16ed0c8
fix test
ericapisani 486f0bc
make sure host header is not filtered when being added to the url
ericapisani 7d14a81
add test coverage for edge case around host header being dropped but …
ericapisani bb98334
add aws lambda test coverage
ericapisani 61d1618
fix(aws-lambda): Remove vendored deps from new embedded-sdk test fixt…
ericapisani 951c408
add test coverage within the wsgi test file
ericapisani a19be39
feat(integrations): apply data_collection cookie filtering to wsgi, s…
ericapisani 620e222
fix(integrations): omit cookies field when data_collection cookies mo…
ericapisani ec6f520
update tornado test
ericapisani 4dd3ba6
ref(integrations): route HTTP header filtering through data collectio…
ericapisani d0bae90
Make changes to adjust to the data collection option being within the…
ericapisani a6c4688
fix test
ericapisani d7b378b
make sure host header is not filtered when being added to the url
ericapisani 52c2da1
add test coverage for edge case around host header being dropped but …
ericapisani aa645d7
add aws lambda test coverage
ericapisani 8b6e3ad
fix(aws-lambda): Remove vendored deps from new embedded-sdk test fixt…
ericapisani d717172
add test coverage within the wsgi test file
ericapisani c7f590f
Merge branch 'py-2584-update-wsgi-filter-headers' of github.com:getse…
ericapisani 293a291
feat(integrations): apply data_collection cookie filtering to wsgi, s…
ericapisani 530e83c
fix(integrations): omit cookies field when data_collection cookies mo…
ericapisani 326d796
update tornado test
ericapisani e9f0e20
Merge branch 'master' into py-2584-update-wsgi-filter-headers
ericapisani 48f7c7b
Merge branch 'py-2581-cookies' of github.com:getsentry/sentry-python …
ericapisani 621d79b
Merge branch 'py-2584-update-wsgi-filter-headers' into py-2581-cookies
ericapisani 3d7bddb
test(aiohttp): Expect single span in streaming passthrough test
ericapisani fad2292
Merge branch 'py-2584-update-wsgi-filter-headers' into py-2581-cookies
ericapisani 19d0b12
test(integrations): Replace NO_COOKIES sentinel with None
ericapisani 45c77f9
Merge branch 'master' into py-2581-cookies
ericapisani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
should_send_default_piicheck here is no longer needed since this check happens withinStarletteRequestExtractorThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Been some time since I last looked at the extractor code -- so the Starlette extractor runs after this and overwrites the cookies?
Just wanted to double-check that we have the precedence right (and that the cookies are really missing if
should_send_default_pii=Falseafter this change)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It runs before this, and then, yes, overwrites the cookies.
If
should_send_default_piiis false or if the data collection configuration filters out cookies, then thecookieskey/value doesn't get set oninfowithin the Starlette extractor'sextract_request_info(and line 121 doesn't run).