Redact sensitive data

Ensure secure remote screen viewing using the redaction API to automatically block sensitive data such as credit card details, social security numbers and more.

When remotely viewing a user's screen, there may be certain sensitive data that should not be viewable by the agent.

For this purpose, we provide a redaction API that automatically blocks out on device all sensitive data sources such as credit cards, social security numbers, etc. When certain data is redacted, it will never leave the user's device.

Cobrowse provides two methods for redacting sensitive data in your applications:

This is the recommended method as it will make sure your redactions are tied to application or websites code version.

Redactions are defined as CSS selectors, passed as an array to the Cobrowse SDK. We recommend using a simple css class to signify redaction where possible, although more complex selectors will also work.

CobrowseIO.redactedViews = ['.redacted', ...some other selectors...]

Selectors can also be scoped by URL or glob pattern by providing an Object where the key is the URL or glob pattern and the value is the array of String CSS Selectors to redact when viewing that page.

The example below will always redact any element with the redacted class but will only redact all input elements when viewing any example.com page.

CobrowseIO.redactedViews = [ 
    '.redacted',
    { 'example.com*' : [ 'input' ] }
]

Unredaction aka Private by Default

Our web SDK also supports an un-redaction mechanism, where by you can define sub-elements inside of a redacted element that should be visible to the agent. You can specify un-redaction selectors like this:

CobrowseIO.unredactedViews = ['.unredacted', ...some other selectors...]

2. Selector based redaction

You can use CSS like selectors to identify what elements / views should be redacted. These selectors can be defined within your application using our SDK or via the Cobrowse dashboard.

Adding selectors via the dashboard can be useful if your app is already in production and you need to redact a field retrospectively, either due to a missed redaction entry in the app build or changing requirements.

Via SDK

CobrowseIO.redactedViews = ['.redacted', ...some other selectors...]

The full CSS selector standard is supported with nesting and complex comparators.

Via dashboard

Visit https://cobrowse.io/dashboard/settings/redaction and enter your selectors into the Web redaction / unredaction configuration.

Last updated

Was this helpful?