Webhook bodies should carry the upstream event ID as eventId
還沒有人認領這個 Issue。
評估
研究方向
Start at faucet/deliver.go around line 855, where the body's eventId is built from the webhook-id HMAC, and compare it with faucet/events.go around line 376, where events/poll returns the GitHub delivery GUID. Read docs/webhooks.md at line 87 and the spec's stable-identifier section to confirm which value belongs in the body. Done means the webhook body's eventId matches the poll GUID for the same upstream event, webhook-id still carries the HMAC, doc and both paths are updated, and a test covers the cross-path match.
由索引模型根據 Issue 內容生成。
描述
Problem
A webhook body's eventId is the webhook-id, an HMAC of the subscription key and the stored event ID (faucet/deliver.go, docs/webhooks.md). events/poll returns the GitHub delivery GUID as eventId instead (faucet/events.go).
The spec asks for one stable upstream ID on every path:
eventIdis the "stable identifier of the upstream event" (events.mdx L213). The server SHOULD use the upstream ID, naming a GitHub delivery GUID as an example, and the same upstream event reached by a webhook emit and a poll backfill carries the sameeventId(L220).webhook-idMUST NOT be derived fromeventId(L624). superblink-events meets this. The gap is only in the body field.
Effect
A client that falls back from webhook to poll for the same subscription, or backfills with events/poll after an outage, cannot deduplicate across the two paths, so one CI run can wake an agent twice.
Proposal
Put the GitHub delivery GUID (the value that events/poll returns) in the webhook body's eventId, and keep the HMAC only in webhook-id.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- 主要語言
- Go
- 星號
- 1
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
coder/faucet 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 28/100
-
難度 3/5 1-2 天 新手友好度 68/100
-
難度 4/5 3-5 天 新手友好度 30/100
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown ids可能已有人在做 @0z5a 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
-
bug
難度 2/5 1-3 小時 新手友好度 80/100
JuliusBrussee/caveman#1567 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
-
bug postgresql
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 1 天內回覆