Webhook bodies should carry the upstream event ID as eventId

Offen
#86 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
62/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
go
Bereich
api, backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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:

  • eventId is 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 same eventId (L220).
  • webhook-id MUST NOT be derived from eventId (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

Vorherrschende Sprache
Go
Sterne
1
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus coder/faucet

Alle Issues in coder/faucet

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.