Skip to content

Unable to Whitelist Log Messages in Advanced Data Scrubbing #100284

@finexusCriss

Description

@finexusCriss

Environment

SaaS (https://sentry.io/)

What are you trying to accomplish?

I am using Sentry Relay in Managed Mode with a whitelisting approach to PII scrubbing.
My current rule looks like this:
$string && !exception.values.*.value && !$breadcrumb.data && !$breadcrumb.data.__span && …

This allows me to scrub every string except the ones explicitly whitelisted (e.g. exception.values.*.value, breadcrumb.data, breadcrumb.data.__span).
This works as expected for exceptions and breadcrumbs and many more.

I want to be able to whitelist the log messages (coming from Sentry.logger)

How are you getting stuck?

I tried the following rules:
$string && !$message && !$logentry.formatted

But the logs are still being scrubbed by $string.

Is there a supported way to whitelist log messages (the actual log message string from Sentry.logger) in Relay Managed Mode?
If yes, could you share an example of the correct PII selector to use?

Thanks in advance!

Where in the product are you?

Settings - Security & Privacy

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions