Skip to content

Commit 407427d

Browse files
committed
Merge branch 'test' of github.com:flashcatcloud/knowledge-base into test
2 parents 26b9e6c + 1cf4947 commit 407427d

7 files changed

Lines changed: 12 additions & 6 deletions

File tree

flashduty/en/1. On-call/8. Integrations/8.1 Alerts integration/8.1.54 Label Mapping API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ To prevent security bypasses, request smuggling, IP spoofing, and cache poisonin
175175
### Header Best Practices
176176

177177
1. **Allowlist Mode**: It is recommended to only allow custom Headers prefixed with `X-Custom-` or `X-Enrich-`
178-
2. **Length Limits**: The Key or Value length of a single Header should not exceed 1024 bytes
178+
2. **Length Limits**: The Key length of a single Header should not exceed 1024 bytes, the Value length of a single Header should not exceed 4096 bytes
179179
3. **Format Validation**: Header Values must not contain line breaks (`\r`, `\n`) to prevent Header injection attacks
180180

181181
## V. Best Practices

flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.5.1 Alert webhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ curl -X POST 'https://example.com/alert/webhook?a=a' \
152152

153153
2. **Will failed pushes continue to be pushed?**
154154

155-
For specific network errors, retries will be attempted up to a maximum of 2 times:
155+
For specific network errors, retries will be attempted up to a maximum of 1 times:
156156
- context deadline exceeded (excluding cases involving "awaiting headers")
157157
- i/o timeout
158158
- eof

flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.5.2 Incident webhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ curl -X POST 'https://example.com/incident/webhook?a=a' \
196196

197197
2. **Will failed pushes continue to be pushed?**
198198

199-
For specific network errors, retries will be attempted up to a maximum of 2 times:
199+
For specific network errors, retries will be attempted up to a maximum of 1 times:
200200
- context deadline exceeded (excluding cases involving "awaiting headers")
201201
- i/o timeout
202202
- eof

flashduty/zh/1. On-call/5. 集成引导/8.1 告警集成/8.1.54 标签映射API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ POST, Content-Type:"application/json"
175175
### Header 最佳实践
176176

177177
1. **白名单模式**:建议仅允许以 `X-Custom-``X-Enrich-` 为前缀的自定义 Header
178-
2. **长度限制**:单个 Header 的 Key Value 长度不应超过 1024 字节
178+
2. **长度限制**:单个 Header 的 Key 长度不应超过 1024 字节, Value 长度不应超过 4096 字节
179179
3. **格式校验**:Header 的 Value 严禁包含换行符(`\r``\n`),以防止 Header 注入攻击
180180

181181
## 五、最佳实践

flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.1 告警 webhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ curl -X POST 'https://example.com/alert/webhook?a=a' \
151151

152152
2. **推送失败后是否会持续推送?**
153153

154-
针对特定的网络错误,会进行重试,最多重试2次:
154+
针对特定的网络错误,会进行重试,最多重试1次:
155155
- context deadline exceeded (排除 awaiting headers)
156156
- i/o timeout
157157
- eof

flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.2 故障 webhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ curl -X POST 'https://example.com/incident/webhook?a=a' \
197197

198198
2. **推送失败后是否会持续推送?**
199199

200-
针对特定的网络错误,会进行重试,最多重试2次:
200+
针对特定的网络错误,会进行重试,最多重试1次:
201201
- context deadline exceeded (排除 awaiting headers)
202202
- i/o timeout
203203
- eof

flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.3 自定义操作.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ curl -X POST 'https://example.com/incident/action?a=a' \
247247

248248
- 服务需要在 2 秒内返回响应,超过 2 秒则认为响应失败
249249

250+
2. **推送失败后是否会持续推送?**
251+
252+
针对特定的网络错误,会进行重试,最多重试1次:
253+
- context deadline exceeded (排除 awaiting headers)
254+
- i/o timeout
255+
- eof
250256

251257
2. **推送来源可信 IP 白名单?**
252258
- {ip_whitelist}

0 commit comments

Comments
 (0)