Skip to content
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
333f93a
Add sensitive content widget to default masking
buenaflor Jun 13, 2025
a240674
Add sensitive content widget to default masking
buenaflor Jun 13, 2025
6d1e35e
Merge branch 'main' into replay/add-sensitive-content
buenaflor Jun 13, 2025
74eb694
Update impl
buenaflor Jun 17, 2025
2e01b33
Merge branch 'main' into replay/add-sensitive-content
buenaflor Jul 11, 2025
132f050
Update rule
buenaflor Jul 11, 2025
591b9c3
Update doc
buenaflor Jul 11, 2025
5ce2839
Update
buenaflor Jul 11, 2025
dfce0e8
Update sentry_privacy_options.dart
buenaflor Jul 17, 2025
efa9362
Merge branch 'main' into replay/add-sensitive-content
buenaflor Jul 17, 2025
f76a31d
Update
buenaflor Jul 17, 2025
b928028
Merge branch 'main' into replay/add-sensitive-content
buenaflor Jul 24, 2025
f4c8e58
Update
buenaflor Jul 24, 2025
151a70d
Update impl
buenaflor Jul 24, 2025
c8596cd
Update
buenaflor Jul 28, 2025
dde1132
Update
buenaflor Jul 28, 2025
7c9f696
Update
buenaflor Jul 28, 2025
088cf62
Update
buenaflor Jul 28, 2025
4bbbded
Update
buenaflor Jul 28, 2025
20657ad
Update
buenaflor Jul 29, 2025
32e3fc4
Update
buenaflor Jul 29, 2025
0c59077
Merge branch 'main' into replay/add-sensitive-content
buenaflor Jul 29, 2025
686750f
Update CHANGELOG
buenaflor Jul 29, 2025
1f8bf63
Merge branch 'main' into replay/add-sensitive-content
buenaflor Aug 6, 2025
e38ab52
Merge branch 'main' into replay/add-sensitive-content
buenaflor Oct 7, 2025
33b5751
Merge branch 'main' into replay/add-sensitive-content
buenaflor Nov 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions flutter/lib/src/sentry_privacy_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ class SentryPrivacyOptions {
mask: false,
name: 'SentryUnmask',
));
// TODO: check for Flutter version and make this testable
rules.add(SentryMaskingCustomRule<Widget>(
callback: (Element element, Widget widget) {
dynamic dynWidget = widget;
try {
final sensitivity = dynWidget.sensitivity;
assert(sensitivity is Enum);
return SentryMaskingDecision.mask;
} catch (e) {
return SentryMaskingDecision.continueProcessing;
}
},
name: 'SensitiveContent',
description: 'Mask SensitiveContent'));

// Then, we apply apply rules based on the configuration.
if (maskAllImages) {
Expand Down Expand Up @@ -75,11 +89,6 @@ class SentryPrivacyOptions {
));
}

rules.add(const SentryMaskingConstantRule<SensitiveContent>(
mask: true,
name: 'SensitiveContent',
));

// In Debug mode, check if users explicitly mask (or unmask) widgets that
// look like they should be masked, e.g. Videos, WebViews, etc.
if (runtimeChecker.isDebugMode()) {
Expand Down
Loading