sentry-policy-guardrails

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Sentry Policy Guardrails

Sentry 策略护栏

Prerequisites

前提条件

  • Organization-wide standards documented
  • Team structure defined
  • Compliance requirements identified
  • Shared configuration package repository
  • 已记录全组织范围内的标准
  • 已定义团队架构
  • 已识别合规要求
  • 已具备共享配置包仓库

Instructions

操作步骤

  1. Create shared Sentry configuration package with organization defaults
  2. Define enforced settings that cannot be overridden (sendDefaultPii, sample rates)
  3. Implement mandatory PII scrubbing in beforeSend hook
  4. Add environment enforcement to block test data in production
  5. Create standard alert policy templates with required rules
  6. Implement project naming validation following team-service-environment pattern
  7. Build configuration audit script to check compliance across projects
  8. Set up compliance dashboard with metrics reporting
  9. Document policy requirements and share with all teams
  10. Enforce shared config package usage in CI/CD pipelines
  1. 创建包含组织默认配置的共享Sentry配置包
  2. 定义不可被覆盖的强制设置(sendDefaultPii、采样率)
  3. 在beforeSend钩子中实现强制PII数据清理
  4. 添加环境校验,阻止测试数据进入生产环境
  5. 创建包含必要规则的标准告警策略模板
  6. 遵循“团队-服务-环境”模式实现项目命名验证
  7. 构建配置审计脚本,检查所有项目的合规性
  8. 搭建包含指标报告的合规仪表盘
  9. 记录策略要求并同步给所有团队
  10. 在CI/CD流水线中强制使用共享配置包

Output

输出成果

  • Shared Sentry configuration package
  • Enforced organization defaults
  • Alert policy templates
  • Project naming validation
  • Compliance audit reports
  • 共享Sentry配置包
  • 强制执行的组织默认配置
  • 告警策略模板
  • 项目命名验证机制
  • 合规审计报告

Error Handling

错误处理

See
{baseDir}/references/errors.md
for comprehensive error handling.
详见
{baseDir}/references/errors.md
获取全面的错误处理指南。

Examples

示例

See
{baseDir}/references/examples.md
for detailed examples.
详见
{baseDir}/references/examples.md
获取详细示例。

Resources

参考资源