fix(crowdsec): 优化限速相关配置

这个提交包含在:
2024-10-31 19:00:59 +08:00 未验证
父节点 bd0d68d4c4
当前提交 ce2da582e6
修改 2 个文件,包含 12 行新增5 行删除
+4 -1
查看文件
@@ -76,7 +76,10 @@ spec:
profiles.yaml: |
name: captcha_remediation
filters:
- Alert.Remediation == true && Alert.GetScope() == "Ip" && Alert.GetScenario() contains "http" && GetDecisionsSinceCount(Alert.GetValue(), "24h") <= 3
# 规则过滤条件 1.范围为Ip 2.触发场景为http或nginx 3.24小时内决策次数小于等于3
- Alert.Remediation == true && Alert.GetScope() == "Ip" &&
(Alert.GetScenario() contains "http" || Alert.GetScenario() contains "nginx") &&
GetDecisionsSinceCount(Alert.GetValue(), "24h") <= 3
decisions:
- type: captcha
duration: 4h