Webhook bodies should carry the upstream event ID as eventId

Đang mở
#86 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của coder/faucet

Tất cả issue của coder/faucet

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.