sentry-data-handling
Handle sensitive data properly in Sentry.Use when configuring PII scrubbing, data retention,GDPR compliance, or data security settings.Trigger with phrases like "sentry pii", "sentry gdpr","sentry data privacy", "scrub sensitive data sentry".
When & Why to Use This Skill
The Sentry Data Handling skill is a specialized utility designed to automate and manage data privacy and compliance within Sentry environments. It streamlines the configuration of PII (Personally Identifiable Information) scrubbing, GDPR compliance, and data retention policies, ensuring that sensitive information like credit card numbers, SSNs, and emails are handled securely and in accordance with global data protection standards.
Use Cases
- 1. GDPR and Regulatory Compliance: Automate the setup of data retention periods, user consent handling, and right-to-erasure documentation to meet strict legal requirements such as GDPR, HIPAA, and PCI-DSS.
- 2. Automated PII Scrubbing: Configure advanced server-side and client-side scrubbing rules to identify and mask sensitive data patterns before they reach Sentry's storage, preventing accidental data leaks.
- 3. Privacy-First Error Monitoring: Implement IP address anonymization and disable default PII collection in SDKs to maintain high-quality debugging capabilities while prioritizing user privacy and security.
- 4. Security Auditing and Hardening: Use the skill to verify that sensitive data is properly scrubbed and that security settings align with organizational data protection checklists.
| name | sentry-data-handling |
|---|---|
| description | | |
| allowed-tools | Read, Write, Edit, Grep |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
Sentry Data Handling
Prerequisites
- Sentry project with admin access
- Compliance requirements documented (GDPR, HIPAA, PCI-DSS)
- List of sensitive data patterns to scrub
- Understanding of data retention requirements
Instructions
- Enable server-side data scrubbing in Project Settings > Security & Privacy
- Configure client-side scrubbing in beforeSend hook for PII fields
- Add custom scrubbing rules for credit cards, SSNs, and email patterns
- Disable sendDefaultPii in SDK configuration
- Configure IP address anonymization or disable IP collection
- Set appropriate data retention period in organization settings
- Implement user consent handling for GDPR compliance
- Document right to erasure process with API deletion endpoint
- Run tests to verify sensitive data is properly scrubbed
- Complete compliance checklist for applicable regulations
Output
- PII scrubbing rules configured
- GDPR compliance documentation
- Data retention policies implemented
- User consent handling code
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.