amplitude / amplitude/Amplitude-TypeScript

Request: Set light, medium, conservative masking with selectors

Open
#865 0 comments 0 reactions 0 assignees View on GitHub
enhancement sessionreplay
Dominant language
TypeScript
Stars
180
Forks
68
Avg merge
3d 1h
Merged PRs (30d)
29

Description

## Summary
We'd like the ability to apply a selector like `amp-medium` to a parent component and have it unmask non-sensitive elements (keeping emails, phone numbers and inputs masked).

From what I understand of the docs, we can have default masking levels globally that apply smart masking mechanics, but the selectors available are pretty black and white. If I want to apply a global level as conservative, but apply a medium level of masking to a single page, thats not possible. I'd have to add masking/unmasking to every element, including applying masking to inputs (parents with amp-unmask unmask every child).

## Motivations
We require a high level of security on our app and have applied the conservative level, and we have implemented additional guardrails like excluding all routes except those specifically allowed to be recorded, and limiting the recordability to a time window. While a route is included, a team owns it to ensure that sessions are recorded securely, so we'd like to apply a less strict masking level to it, and not require cleaning up a bunch of classes at the end of the recording period.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.