sentry-security-basics

Featured

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".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Sentry Security Basics ## Overview Configure Sentry's security posture: PII scrubbing with `beforeSend`, built-in data scrubbing, IP anonymization, browser SDK URL filtering, DSN vs auth token handling, CSP reporting, and GDPR data deletion. Covers both client-side (SDK) and server-side (dashboard) controls. ## Prerequisites - Sentry project created with Owner or Admin role - `@sentry/node` >= 8.x or `@sentry/browser` >= 8.x installed (or `sentry-sdk` >= 2.x for Python) - Compliance requirements identified (GDPR, SOC 2, HIPAA, CCPA) - List of sensitive data patterns for your domain (PII fields, API keys, tokens) ## Instructions ### Step 1 — Understand DSN vs Auth Token Security The DSN (Data Source Name) is a **client-facing identifier** — it tells the SDK where to send events. It is NOT a secret. ``` https://<public-key>@o<org-id>.ingest.us.sentry.io/<project-id> ``` - The DSN **cannot** read data, delete events, or modify settings - It is safe to ship in client-side JavaScript bundles - Restrict abuse via **Allowed Domains** (Project Settings > Client Keys > Configure) Auth tokens **ARE secrets** — they grant API access to read/write/delete data: ```bash # NEVER commit auth tokens — store in CI secrets or vault # GitHub Actions: Settings > Secrets > SENTRY_AUTH_TOKEN # GitLab CI: Settings > CI/CD > Variables (protected + masked) # Generate tokens with MINIMAL scopes: # CI releases: project:releases, org:read # Issue triage: project:read, event:read # ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category