Skip to content

Relay PII scrubbing not applied in static Relay #4990

@finexusCriss

Description

@finexusCriss

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. In Next.js project, log a string in info level:
import * as Sentry from '@sentry/nextjs';
const { logger } = Sentry;
...
logger.info('filter this: John Doe');
  1. In project configuration JSON file of a relay
{
  "slug": "my-project-slug",
  "publicKeys": [
    {
      "publicKey": "my-project-public-key",
      "isEnabled": true
    }
  ],
  "config": {
    "allowedDomains": ["*"],
    "piiConfig": {
      "version": 2,
      "rules": {
        "debug_rule": {
          "type": "pattern",
          "pattern": "(?i)john doe",
          "redaction": {
            "method": "replace",
            "text": "[Removed in relay]"
          }
        }
      },
      "applications": {
        "$string": ["debug_rule"],
        "logentry.formatted": ["debug_rule"]
      }
    }
  }
}

Expected Result

Expecting in the Logs, I will see "filter this: [Removed in relay]"

Actual Result

Still seeing John Doe in the logs

Image

The scrubbing on other area works

Image

But can't to get it worked for Logs, not sure is it because Logs is still in experimental phase? or I did not configure the selector for Logs correctly, many thanks in advance

Product Area

Settings - Relay

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions