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,266 stars 315 forks Updated today 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
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

sentry-data-handling

Configure GDPR-compliant data handling, PII scrubbing, and data retention policies in Sentry. Use when implementing beforeSend filters, server-side data scrubbing rules, IP anonymization, data subject deletion requests, or SOC 2 audit controls. Trigger with phrases like "sentry pii scrubbing", "sentry gdpr", "sentry data privacy", "scrub sensitive data sentry", "sentry data retention", "sentry compliance".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-install-auth

Install and configure Sentry SDK authentication with DSN setup. Use when setting up Sentry error tracking, configuring DSN, or initializing Sentry in a Node.js or Python project. Trigger with "install sentry", "setup sentry", "sentry auth", "configure sentry DSN".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-policy-guardrails

Enforce organizational governance and policy guardrails for Sentry usage. Use when standardizing Sentry configuration across services, enforcing PII scrubbing, building shared config packages, or auditing drift. Trigger with phrases like "sentry governance", "sentry policy", "sentry standards", "enforce sentry config", "sentry compliance".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-known-pitfalls

Identify and fix common Sentry SDK pitfalls that cause silent data loss, cost overruns, and missed alerts. Covers 10 anti-patterns with fix code. Use when auditing Sentry config, debugging missing events, or reviewing SDK setup. Trigger: "sentry pitfalls", "sentry anti-patterns", "sentry mistakes", "why are sentry events missing".

2,266 Updated today
jeremylongshore
AI & Automation Featured

sentry-common-errors

Troubleshoot common Sentry integration issues and fixes. Use when encountering Sentry errors, missing events, source map failures, rate limits, or configuration problems. Trigger: "sentry not working", "sentry errors missing", "fix sentry", "sentry troubleshoot", "sentry 429", "source maps not resolving", "sentry events not showing", "sentry flush", "sentry CORS".

2,266 Updated today
jeremylongshore