Skip to content

Privacy and masking

Quameleon’s rule is that private data is removed on the device, before a frame is encoded or a signal leaves the process. The server never receives unmasked pixels.

A region of a replay frame or screenshot is painted solid black when the view is:

  1. marked sensitive by you, or a descendant of such a view:
    • React Native Quameleon.markSensitive(ref)
    • Android QuameleonAndroid.markSensitive(view)
    • iOS QuameleonPlatform.markSensitive(view) or SwiftUI .quameleonSensitive()
  2. a secure text field: Android password inputType, Compose password semantics, iOS isSecureTextEntry. Always, whatever the options;
  3. any text input (EditText, Compose editable text, UITextField, UITextView) while mask_all_inputs is on. It is forced on in production.

WebViews follow the same rules through qa-web: input rectangles are masked, and if the script is not present on a page the whole WebView is masked (fail-safe). Embedded frames (iframe, embed, object) are always masked whole, since hosted card fields, 3-D Secure and login pages live there. Inputs inside open shadow roots (web components) are masked too, and a custom element the script can’t see into (form-associated, or a closed shadow root) is masked as an input. Only the page’s main frame may report input rectangles or signals; scripts in iframes are ignored.

Production replay masks inputs, not displayed text: balances, names or messages on screen are recorded as shown. Mark such views sensitive (data-qa-sensitive on the web, the native sensitive-view APIs) to black them out. On Android that guarantee comes from androidx.webkit’s WebMessageListener (add androidx.webkit:webkit 1.3+); without it the WebView is always masked whole and page signals are dropped.

Tap labels never come from a text input (any input type), a password field, or a sensitive view. When a tapped element contains an input or a sensitive view anywhere inside it (for example a password row with an eye icon), its text is not used; only its test id, and on Android / the web its own content description / aria-label / title.

Session replay with masked fields

  • Taps and the hierarchy never carry the label of a text input or a sensitive view; such nodes are marked input: true or sensitive: true instead.
  • Network signals carry the method, scheme, host and path. Query strings, fragments, headers and bodies are never captured, unless you allowlist URL patterns in network_bodies. Even then, Authorization, Cookie, Set-Cookie, Proxy-Authorization, WWW-Authenticate, X-Api-Key and any header containing token, secret, password or session are always dropped, and bodies are limited to text or JSON up to 16 KB.
  • Body values: inside captured JSON and k=v&… form bodies, values of sensitive keys become <redacted> at any depth before truncation: the prop list below (no exemptions, so a body session_id is redacted too, as are access_token, refresh_token, apiKey, X-Api-Key) plus the words card, cvv, cvc, otp, pin, passcode, iban, ssn (creditCard, otpCode). A JSON body that can’t be parsed (or is over 1 MB) and mentions any of them is dropped whole.
  • Prop and context redaction: values of keys containing password, passwd, secret, token, authorization, cookie, session, api_key, apikey, credential, private_key, ssn, card_number or cvv become <redacted>, and user:pass@ is removed from URLs.
  • Push signals carry the id and source; title and body only with push_content.
  • Console capture is off in production unless your app turns it on with configure(), and then only warn and error by default.

In production, remote config can switch network_bodies, push_content, console, screenshots, layout, hierarchy, shake and replay off, never on. Only your app’s own code enables them, and a remote “off” wins for the rest of the launch. Replay additionally needs your start-config opt-in. A compromised or misconfigured dashboard can therefore never start collecting bodies, push content, console output or screen captures your app did not ask for.

No advertising id, IMEI, MAC address, phone number, contacts, location or clipboard. device_id is a random UUID per install (see Devices).

Every capture category can be switched off in the app or from remote config (turning a privacy-sensitive one back on is up to the app):

Quameleon.configure({ network: false, console: false, replay: false });

A disabled category is never captured. See Configuration options.