Title: webhook-gateway-payloads: no retention — R2 payload bucket grows unboundedly (~+9k objects/day) · Issue #3858 · developing-today/code · GitHub
Open Graph Title: webhook-gateway-payloads: no retention — R2 payload bucket grows unboundedly (~+9k objects/day) · Issue #3858 · developing-today/code
X Title: webhook-gateway-payloads: no retention — R2 payload bucket grows unboundedly (~+9k objects/day) · Issue #3858 · developing-today/code
Description: Finding (R2 review, 2026-11-01) The webhook-gateway-payloads bucket (raw GitHub webhook payloads written by the webhook-gateway Worker, github/
Open Graph Description: Finding (R2 review, 2026-11-01) The webhook-gateway-payloads bucket (raw GitHub webhook payloads written by the webhook-gateway Worker, github/
X Description: Finding (R2 review, 2026-11-01) The webhook-gateway-payloads bucket (raw GitHub webhook payloads written by the webhook-gateway Worker, github/<delivery-id>.json) has no retention anywhere: n...
Opengraph URL: https://github.com/developing-today/code/issues/3858
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"webhook-gateway-payloads: no retention — R2 payload bucket grows unboundedly (~+9k objects/day)","articleBody":"## Finding (R2 review, 2026-11-01)\n\nThe `webhook-gateway-payloads` bucket (raw GitHub webhook payloads written by the webhook-gateway Worker, `github/\u003cdelivery-id>.json`) has **no retention anywhere**: no delete/expiry logic in the Worker code (`~/workspace/webhook-gateway/`), and no bucket lifecycle rule. Every payload since the bucket was created (2026-10-23) is still present.\n\nMeasured 2026-11-01 (S3 listing + Cloudflare r2StorageAdaptiveGroups):\n\n- 49,815 objects / 862 MB and growing ~+8,000–9,000 objects/day — the rate tracks this repo's GitHub issues-event volume, including the fleet's own automation bursts.\n- Daily max object count: Oct 26: 2,297 → Oct 28: 15,922 → Oct 30: 30,289 → Nov 1: 49,566. Nothing has ever been deleted.\n- Storage bytes are still small, but the object count is unbounded: at the current rate this is ~250k objects/month, ~3M objects/year, with matching Class A/B operation and listing costs, and an ever-growing replay/audit surface nobody reads.\n\nThe D1 `webhook-gateway` deliveries ledger is the queryable record; the R2 payload bodies are needed for replay of recent/pending deliveries, not forever.\n\n## Ask\n\nDeclare and implement a retention for delivered payloads, e.g.:\n\n- Worker-side: delete the R2 payload N days after its ledger row reaches `delivered` (keep payloads for pending/failed deliveries indefinitely), or\n- Bucket lifecycle rule expiring `github/` objects after N days.\n\nPick N (30 days suggested) and note the choice on the Worker README. If payloads are intentionally kept forever as an audit archive, say so in the README instead and close this — the problem is that the growth is currently *undeclared*, not that it exists.\n\n## Acceptance criteria\n- A retention period for delivered webhook payloads is declared (30 days suggested) and written into the webhook-gateway Worker README — or, if payloads are intentionally kept forever as an audit archive, that decision is declared in the README instead and this issue closes on that declaration.\n- The retention is implemented (Worker-side deletion N days after the D1 ledger row reaches `delivered`, or an R2 lifecycle rule expiring `github/` objects after N days) and verified: the bucket's object count stops growing unboundedly and delivered payloads older than N are gone.\n- Payloads for pending/failed deliveries are retained (not expired) so replay stays possible for the deliveries that still need it.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-01T17:08:47Z","url":"https://github.com/developing-today/code/issues/3858"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b3bac06a-15c1-c4ae-b2b7-9d5fa164c68a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFA0:3CF71B:30CA95:419223:6B061827 |
| html-safe-nonce | d37739d00f5a82fae06cdae15fc285bb1a00447335071b61df586b26d3f45e87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkEwOjNDRjcxQjozMENBOTU6NDE5MjIzOjZCMDYxODI3IiwidmlzaXRvcl9pZCI6IjU5NTU1OTk0NTQ4NTMwMTE0OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 00142080476e4516dc3dfca6b77e1b82fda1ea78d8b6c2347a1dfbf509ce3874 |
| hovercard-subject-tag | issue:6149700658 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/3858/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cde37c735b1d50e4fa3bc21739646cb9ee4b73fb54156915a93daa763abd142a/developing-today/code/issues/3858 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cde37c735b1d50e4fa3bc21739646cb9ee4b73fb54156915a93daa763abd142a/developing-today/code/issues/3858 |
| og:image:alt | Finding (R2 review, 2026-11-01) The webhook-gateway-payloads bucket (raw GitHub webhook payloads written by the webhook-gateway Worker, github/ |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width