Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/sentry-security-basics

@0d57af8
Run it yourself

Configure Sentry security settings and data protection. Use when setting up PII scrubbing, managing sensitive data, configuring data scrubbing rules, or hardening Sentry for compliance. Trigger with phrases like "sentry security", "sentry PII", "sentry data scrubbing", "secure sentry", "sentry GDPR".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/sentry-security-basics

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdata-scrubbing.md

≈338 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Data Scrubbing

Data Scrubbing

1. Built-in Scrubbing (Server-Side)

Enable in Sentry Dashboard:

  1. Project Settings > Security & Privacy
  2. Enable "Data Scrubber"
  3. Configure sensitive fields

2. Client-Side Scrubbing

Sentry.init({
  dsn: process.env.SENTRY_DSN,

  beforeSend(event) {
    // Scrub user data
    if (event.user) {
      delete event.user.email;
      delete event.user.ip_address;
    }

    // Scrub request body
    if (event.request?.data) {
      const data = JSON.parse(event.request.data);
      delete data.password;
      delete data.creditCard;
      delete data.ssn;
      event.request.data = JSON.stringify(data);
    }

    // Scrub cookies
    if (event.request?.cookies) {
      delete event.request.cookies.session;
      delete event.request.cookies.auth;
    }

    return event;
  },
});

3. Sensitive Fields Configuration

Sentry.init({
  dsn: process.env.SENTRY_DSN,

  // Don't send specific data
  sendDefaultPii: false, // Disable automatic PII collection

  beforeBreadcrumb(breadcrumb, hint) {
    // Scrub sensitive data from breadcrumbs
    if (breadcrumb.category === 'xhr') {
      const url = breadcrumb.data?.url;
      if (url?.includes('password') || url?.includes('token')) {
        return null;
      }
    }
    return breadcrumb;
  },
});

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides best-practice security guidance for configuring Sentry, focusing on PII redaction, secure credential management, and GDPR compliance. It correctly identifies Sentry's official domains and recommended SDKs without introducing any malicious patterns.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.51.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "sentry",
  "security",
  "pii",
  "data-scrubbing",
  "gdpr"
]
All 6 allowed tools
ReadWriteEditGrepBash(grep:*)Bash(curl:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-security-basics