Webhook bodies should carry the upstream event ID as eventId

Aberta
#86 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
62/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
go
Domínio
api, backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Go
Estrelas
1
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de coder/faucet

Todas as issues de coder/faucet

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.