Skip to content

Fix send_default_pii handling in rails controller spans#2443

Merged
sl0thentr0py merged 1 commit intomasterfrom
neel/fix-rails-pii-params
Oct 22, 2024
Merged

Fix send_default_pii handling in rails controller spans#2443
sl0thentr0py merged 1 commit intomasterfrom
neel/fix-rails-pii-params

Conversation

@sl0thentr0py
Copy link
Copy Markdown
Member

@sl0thentr0py sl0thentr0py commented Oct 22, 2024

The change in #1973 accidentally exposed params always in the controller action span. This change now respects both Rails.config.filter_parameters and Sentry.configuration.send_default_pii together to decide what to send.

fixes #2438

@sl0thentr0py sl0thentr0py requested a review from solnic October 22, 2024 15:10
@sl0thentr0py sl0thentr0py force-pushed the neel/fix-rails-pii-params branch from 7c1c4f8 to e062dfa Compare October 22, 2024 15:11
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.18%. Comparing base (957c8d6) to head (a566efb).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2443      +/-   ##
==========================================
- Coverage   98.34%   98.18%   -0.17%     
==========================================
  Files         126      126              
  Lines        4705     4726      +21     
==========================================
+ Hits         4627     4640      +13     
- Misses         78       86       +8     
Components Coverage Δ
sentry-ruby 98.51% <ø> (-0.14%) ⬇️
sentry-rails 97.20% <100.00%> (-0.75%) ⬇️
sentry-sidekiq 97.47% <ø> (+1.51%) ⬆️
sentry-resque 92.85% <ø> (+0.21%) ⬆️
sentry-delayed_job 95.65% <ø> (ø)
sentry-opentelemetry 99.31% <ø> (-0.69%) ⬇️
Files with missing lines Coverage Δ
...y-rails/lib/sentry/rails/controller_transaction.rb 95.83% <100.00%> (+0.18%) ⬆️

... and 17 files with indirect coverage changes

The change in #1793 accidentally exposed params always in the controller action span.
This change now respects both `Rails.config.filter_parameters` and `Sentry.coniguration.send_default_pii`
together to decide what to send.
@sl0thentr0py sl0thentr0py force-pushed the neel/fix-rails-pii-params branch from e062dfa to a566efb Compare October 22, 2024 15:14
@sl0thentr0py sl0thentr0py merged commit 9bba2ef into master Oct 22, 2024
@sl0thentr0py sl0thentr0py deleted the neel/fix-rails-pii-params branch October 22, 2024 15:27
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.

Some concerns about PII: send_default_pii not being completely used, silent update on transactions capture with potential PII

2 participants