sentry-policy-guardrails
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSentry Policy Guardrails
Sentry 策略护栏
Prerequisites
前提条件
- Organization-wide standards documented
- Team structure defined
- Compliance requirements identified
- Shared configuration package repository
- 已记录全组织范围内的标准
- 已定义团队架构
- 已识别合规要求
- 已具备共享配置包仓库
Instructions
操作步骤
- Create shared Sentry configuration package with organization defaults
- Define enforced settings that cannot be overridden (sendDefaultPii, sample rates)
- Implement mandatory PII scrubbing in beforeSend hook
- Add environment enforcement to block test data in production
- Create standard alert policy templates with required rules
- Implement project naming validation following team-service-environment pattern
- Build configuration audit script to check compliance across projects
- Set up compliance dashboard with metrics reporting
- Document policy requirements and share with all teams
- Enforce shared config package usage in CI/CD pipelines
- 创建包含组织默认配置的共享Sentry配置包
- 定义不可被覆盖的强制设置(sendDefaultPii、采样率)
- 在beforeSend钩子中实现强制PII数据清理
- 添加环境校验,阻止测试数据进入生产环境
- 创建包含必要规则的标准告警策略模板
- 遵循“团队-服务-环境”模式实现项目命名验证
- 构建配置审计脚本,检查所有项目的合规性
- 搭建包含指标报告的合规仪表盘
- 记录策略要求并同步给所有团队
- 在CI/CD流水线中强制使用共享配置包
Output
输出成果
- Shared Sentry configuration package
- Enforced organization defaults
- Alert policy templates
- Project naming validation
- Compliance audit reports
- 共享Sentry配置包
- 强制执行的组织默认配置
- 告警策略模板
- 项目命名验证机制
- 合规审计报告
Error Handling
错误处理
See for comprehensive error handling.
{baseDir}/references/errors.md详见获取全面的错误处理指南。
{baseDir}/references/errors.mdExamples
示例
See for detailed examples.
{baseDir}/references/examples.md详见获取详细示例。
{baseDir}/references/examples.md