Webhook bodies should carry the upstream event ID as eventId
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Go
- Stelle
- 1
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di coder/faucet
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
Tutte le issue di coder/faucet
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown idsForse già presa @0z5a l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
JuliusBrussee/caveman#1567 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug postgresql
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno