sentry-security-basics
Configure Sentry security settings and data protection.Use when setting up data scrubbing, managing sensitive data,or configuring security policies.Trigger with phrases like "sentry security", "sentry PII","sentry data scrubbing", "secure sentry".
When & Why to Use This Skill
This Claude skill automates the configuration of Sentry security settings and data protection protocols. It helps developers and security teams implement robust data scrubbing, manage sensitive PII (Personally Identifiable Information), and enforce security policies to ensure compliance with global standards such as GDPR, HIPAA, and SOC 2.
Use Cases
- Compliance Readiness: Automating the setup of data scrubbing and PII protection to meet strict regulatory and audit requirements.
- Sensitive Data Management: Configuring server-side and client-side scrubbing patterns to prevent passwords, tokens, and API keys from being leaked into error logs.
- Access Control Enforcement: Implementing the principle of least privilege by managing team permissions, creating scoped API tokens, and rotating DSN keys.
- Secure SDK Configuration: Ensuring best practices like using environment variables for DSNs and disabling default PII collection in SDK settings.
| name | sentry-security-basics |
|---|---|
| description | | |
| allowed-tools | Read, Write, Edit, Grep |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
Sentry Security Basics
Prerequisites
- Security requirements documented
- Compliance standards identified (GDPR, SOC 2, HIPAA)
- Sensitive data patterns known
- Access control needs defined
Instructions
- Enable server-side data scrubbing in project settings
- Configure client-side scrubbing in beforeSend for user data and request bodies
- Add sensitive field patterns for passwords, tokens, and API keys
- Store DSN in environment variables, never hardcode
- Set sendDefaultPii to false in SDK configuration
- Configure team permissions with principle of least privilege
- Create API tokens with minimal required scopes
- Rotate DSN keys and disable old ones after deployment
- Enable audit logging for compliance tracking
- Complete security checklist and document compliance status
Output
- Data scrubbing configured
- DSN secured in environment variables
- Access controls implemented
- Security checklist completed
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.