Repository navigation
ref(aws-lambda): Drop send_default_pii support - #7636
Conversation
Codecov Results 📊✅ 64968 passed | ❌ 2 failed | ⏭️ 2971 skipped | Total: 67941 | Pass Rate: 95.62% | Execution Time: 189m 33s 📊 Comparison with Base Branch
➕ New Tests (2)View new tests
❌ Failed Tests
|
| File | Patch % | Lines |
|---|---|---|
| sentry_sdk/integrations/aws_lambda.py | 26.32% |
Coverage diff
@@ Coverage Diff @@
## master #PR +/-##
==========================================
- Coverage 90.22% 90.18% -0.04%
==========================================
Files 194 180 -14
Lines 25997 21084 -4913
Branches 9662 7600 -2062
==========================================
+ Hits 23454 19014 -4440
- Misses 2543 2070 -473
- Partials 1451 1198 -253Generated by Codecov Action
232e4b9 to
7fbc174
Compare
|
pretty sure the low coverage is because it doesn't take into account the tests ran in the SAM containers |
alexander-alderman-webb
left a comment
There was a problem hiding this comment.
Looks good to me
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 7fbc174. Configure here.
| for key, value in extracted_user.items(): | ||
| user_info.setdefault(key, value) | ||
|
|
||
| if "incoming_request" in data_collection["http_bodies"]: |
There was a problem hiding this comment.
Default config now sends request bodies
High Severity
Dropping the send_default_pii fallback makes raw request bodies attach whenever http_bodies includes incoming_request. The mapped default always includes that type, so layer and other unset-data_collection users now send unstructured bodies that the previous path marked as removed. Those payloads can contain credentials and other PII.
Reviewed by Cursor Bugbot for commit 7fbc174. Configure here.
There was a problem hiding this comment.
I think that's intended on the major
There was a problem hiding this comment.
ok, I was a bit confused. It's also flagging this on the other PR's: #7637 (comment)


Description
send_default_piisupport from aws-lambda integration.data_collection: {}insentry_init(...)to fallback to default config.Issues
Resolves #7585