Title: [Session Replay] Add ability to mask or suppress touch input over sensitive views and WebViews · Issue #5787 · getsentry/sentry-java · GitHub
Open Graph Title: [Session Replay] Add ability to mask or suppress touch input over sensitive views and WebViews · Issue #5787 · getsentry/sentry-java
X Title: [Session Replay] Add ability to mask or suppress touch input over sensitive views and WebViews · Issue #5787 · getsentry/sentry-java
Description: Problem Statement When Session Replay is enabled, raw touch coordinates (taps and swipes) are recorded globally across the screen, even when the user is interacting with visually masked elements like password fields, custom keypads, or s...
Open Graph Description: Problem Statement When Session Replay is enabled, raw touch coordinates (taps and swipes) are recorded globally across the screen, even when the user is interacting with visually masked elements li...
X Description: Problem Statement When Session Replay is enabled, raw touch coordinates (taps and swipes) are recorded globally across the screen, even when the user is interacting with visually masked elements li...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/5787
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Session Replay] Add ability to mask or suppress touch input over sensitive views and WebViews","articleBody":"### Problem Statement\n\nWhen Session Replay is enabled, raw touch coordinates (taps and swipes) are recorded globally across the screen, even when the user is interacting with visually masked elements like password fields, custom keypads, or sensitive WebViews.\n\nThis creates a PII and security vulnerability. Observers can reconstruct user PINs and passwords simply by watching where the tap indicators land over a visually redacted WebView.\n\nToday, `sentry-java` provides no mechanism to suppress touch recording over visually masked view boundaries, nor does it offer a programmatic API (like `pauseTouchTracking()`) to temporarily disable gesture capture during sensitive user flows without completely shutting down the replay engine.\n\n### Impact\n\n- Enterprise customers are blocked from shipping because replays leak credential entry patterns.\n- Current view masking (screenshot redaction) is undermined by unfiltered touch events.\n\n### Possible Approaches\n\n1. **View-boundary filtering**: During touch dispatch or conversion, check whether the event coordinates fall inside a view that is configured to be masked (e.g., via `SentryMaskingOptions` or `sentry-mask` tags) and drop the event if so.\n2. **Programmatic pause**: Add a public API (e.g., `SentryReplayOptions` or `ReplayController`) to pause/resume only gesture recording without stopping screenshot capture.","author":{"url":"https://github.com/bengineerdavis","@type":"Person","name":"bengineerdavis"},"datePublished":"2026-07-17T23:51:52Z","url":"https://github.com/getsentry/sentry-java/issues/5787"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9a176df1-3ec1-b5bb-acac-7d413dbc5b4a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82EE:2B0ADD:446AB3:5E543C:6B0451B0 |
| html-safe-nonce | 7fd00b16156d361fc5264e5000dc53368584a4103d37d46343c18f3795d8b887 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkVFOjJCMEFERDo0NDZBQjM6NUU1NDNDOjZCMDQ1MUIwIiwidmlzaXRvcl9pZCI6IjY2ODUwMjQ2NTEzNTk1NzI0MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1c33cc008a0d12b58eaed3948c2111cfdb2a53763d093bec81233c0cf4d3b728 |
| hovercard-subject-tag | issue:4915659334 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/5787/issue_layout |
| twitter:image | https://opengraph.githubassets.com/adb1bc7ec1193deccb63ae81c9e477b5c8e48fa706f3d4fb57f378ecb89dc626/getsentry/sentry-java/issues/5787 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/adb1bc7ec1193deccb63ae81c9e477b5c8e48fa706f3d4fb57f378ecb89dc626/getsentry/sentry-java/issues/5787 |
| og:image:alt | Problem Statement When Session Replay is enabled, raw touch coordinates (taps and swipes) are recorded globally across the screen, even when the user is interacting with visually masked elements li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bengineerdavis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width