Repository navigation
Expand file tree
/
Copy pathrelease-manifest.json
More file actions
541 lines (541 loc) · 16.2 KB
/
Copy pathrelease-manifest.json
File metadata and controls
541 lines (541 loc) · 16.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
{
"version": "2.48.0",
"minPreviousVersion": "1.0.0",
"renderer": {
"version": 3,
"eagerRerender": true
},
"secrets": [
{
"name": "JWT_SECRET",
"required": true,
"addedIn": "1.0.0"
},
{
"name": "IP_HASH_SECRET",
"required": true,
"addedIn": "1.0.0"
},
{
"name": "TURNSTILE_SITE_KEY",
"required": true,
"addedIn": "1.0.0"
},
{
"name": "TURNSTILE_SECRET",
"required": true,
"addedIn": "1.0.0"
},
{
"name": "GH_CLIENT_ID",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "GH_CLIENT_SECRET",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "GOOGLE_CLIENT_ID",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "GOOGLE_CLIENT_SECRET",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "FACEBOOK_CLIENT_ID",
"required": false,
"addedIn": "1.13.0"
},
{
"name": "FACEBOOK_CLIENT_SECRET",
"required": false,
"addedIn": "1.13.0"
},
{
"name": "TWITTER_CLIENT_ID",
"required": false,
"addedIn": "1.13.0"
},
{
"name": "TWITTER_CLIENT_SECRET",
"required": false,
"addedIn": "1.13.0"
},
{
"name": "DISCORD_CLIENT_ID",
"required": false,
"addedIn": "1.13.0"
},
{
"name": "DISCORD_CLIENT_SECRET",
"required": false,
"addedIn": "1.13.0"
},
{
"name": "RESEND_API_KEY",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "WEBHOOK_URL",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "TELEGRAM_BOT_TOKEN",
"required": false,
"addedIn": "1.17.0"
},
{
"name": "TELEGRAM_WEBHOOK_SECRET",
"required": false,
"addedIn": "1.17.0"
},
{
"name": "DISCORD_BOT_TOKEN",
"required": false,
"addedIn": "2.44.0"
},
{
"name": "AKISMET_API_KEY",
"required": false,
"addedIn": "1.1.1"
},
{
"name": "AKISMET_SITE_URL",
"required": false,
"addedIn": "1.1.1"
},
{
"name": "SPAM_DECISIONS_API_KEY",
"required": false,
"addedIn": "2.41.0"
},
{
"name": "SPAM_FORM_TS_SECRET",
"required": false,
"addedIn": "1.1.1"
},
{
"name": "CF_API_TOKEN",
"required": false,
"addedIn": "1.8.0"
},
{
"name": "GITHUB_TOKEN",
"required": false,
"addedIn": "1.21.0"
}
],
"vars": [
{
"name": "ENV",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "ALLOWED_ORIGINS",
"required": false,
"addedIn": "1.0.0",
"placeholder": "https://yourblog.example.com"
},
{
"name": "ADMIN_EMAILS",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "EDIT_WINDOW_MINUTES",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "PUBLIC_BASE_URL",
"required": false,
"addedIn": "1.0.0",
"placeholder": "https://comments.example.com"
},
{
"name": "CANONICAL_URL",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "SECURITY_CONTACT",
"required": false,
"addedIn": "2.19.0"
},
{
"name": "OAUTH_CALLBACK_BASE",
"required": false,
"addedIn": "1.0.0",
"placeholder": "https://comments.example.com"
},
{
"name": "BRANDING_HIDDEN",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "TURNSTILE_ALWAYS",
"required": false,
"addedIn": "2.13.0"
},
{
"name": "EMAIL_PROVIDER",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "EMAIL_FROM",
"required": false,
"addedIn": "1.0.0"
},
{
"name": "CONFIRM_SEND_BURST_MAX",
"required": false,
"addedIn": "2.8.0"
},
{
"name": "CONFIRM_SEND_DAILY_MAX",
"required": false,
"addedIn": "2.8.0"
},
{
"name": "TELEGRAM_BOT_USERNAME",
"required": false,
"addedIn": "1.17.0"
},
{
"name": "DISCORD_PUBLIC_KEY",
"required": false,
"addedIn": "2.44.0"
},
{
"name": "SPAM_PROVIDER",
"required": false,
"addedIn": "1.1.1"
},
{
"name": "SPAM_DECISIONS_MODEL",
"required": false,
"addedIn": "2.41.0"
},
{
"name": "SPAM_DECISIONS_URL",
"required": false,
"addedIn": "2.41.0"
},
{
"name": "SPAM_BLOCKLIST",
"required": false,
"addedIn": "2.12.0"
},
{
"name": "SPAM_LINK_THRESHOLD",
"required": false,
"addedIn": "1.1.1"
},
{
"name": "SPAM_HONEYPOT_MIN_MS",
"required": false,
"addedIn": "1.1.1"
},
{
"name": "SPAM_AI_THRESHOLD",
"required": false,
"addedIn": "2.38.0"
},
{
"name": "SPAM_AI_MODEL",
"required": false,
"addedIn": "2.41.0"
},
{
"name": "SPAM_FIRST_COMMENT_MODERATE",
"required": false,
"addedIn": "1.1.1"
},
{
"name": "CF_ACCOUNT_ID",
"required": false,
"addedIn": "1.8.0"
},
{
"name": "COMMENTS_ENABLED",
"required": false,
"addedIn": "1.10.0"
},
{
"name": "REACTIONS_ENABLED",
"required": false,
"addedIn": "1.10.0"
},
{
"name": "VOTING_ENABLED",
"required": false,
"addedIn": "1.8.0"
},
{
"name": "DOWNVOTES_ENABLED",
"required": false,
"addedIn": "1.8.0"
},
{
"name": "MODERATOR_EMAIL_ENABLED",
"required": false,
"addedIn": "2.9.0"
},
{
"name": "MODERATOR_NOTIFY_EMAILS",
"required": false,
"addedIn": "2.9.0"
},
{
"name": "PAGE_REACTIONS_ENABLED",
"required": false,
"addedIn": "1.10.0"
},
{
"name": "PAGE_VOTES_ENABLED",
"required": false,
"addedIn": "1.10.0"
},
{
"name": "SHOW_DELETED_PLACEHOLDERS",
"required": false,
"addedIn": "1.15.0"
},
{
"name": "COMMENTS_PER_PAGE",
"required": false,
"addedIn": "1.10.0"
},
{
"name": "REPLIES_PER_THREAD",
"required": false,
"addedIn": "1.10.0"
},
{
"name": "DEFAULT_LOCALE",
"required": false,
"addedIn": "2.7.0"
},
{
"name": "DEFAULT_SORT",
"required": false,
"addedIn": "2.16.0"
},
{
"name": "AUTO_COLLAPSE_DEPTH",
"required": false,
"addedIn": "1.10.0"
},
{
"name": "AUTO_CLOSE_DAYS",
"required": false,
"addedIn": "1.17.0"
},
{
"name": "AUTO_CLOSE_AT",
"required": false,
"addedIn": "1.17.0"
},
{
"name": "COMMUNITY_MIN_VOTES",
"required": false,
"addedIn": "1.17.0"
},
{
"name": "COMMUNITY_COLLAPSE_RATIO",
"required": false,
"addedIn": "1.17.0"
},
{
"name": "IP_HASH_RETENTION_DAYS",
"required": false,
"addedIn": "2.1.0"
},
{
"name": "AUDIT_LOG_RETENTION_DAYS",
"required": false,
"addedIn": "2.6.0"
}
],
"kvNamespaces": [
{
"binding": "RATE_LIMITS",
"required": true,
"addedIn": "1.0.0"
},
{
"binding": "OAUTH_STATE",
"required": true,
"addedIn": "1.0.0"
},
{
"binding": "SESSIONS",
"required": true,
"addedIn": "1.0.0"
},
{
"binding": "TREE_CACHE",
"required": true,
"addedIn": "1.0.0"
}
],
"d1Databases": [
{
"binding": "DB",
"databaseName": "garrul-db",
"required": true,
"addedIn": "1.0.0"
}
],
"analyticsDatasets": [
{
"binding": "ANALYTICS",
"dataset": "garrul_events",
"required": false,
"addedIn": "1.0.0"
}
],
"migrations": [
"0001_init.sql",
"0002_notifications.sql",
"0003_subscription_confirm.sql",
"0004_admin_observability.sql",
"0005_user_roles.sql",
"0006_webhook_endpoints.sql",
"0007_votes.sql",
"0008_saved_replies.sql",
"0009_import_tracking.sql",
"0010_settings.sql",
"0011_page_engagement.sql",
"0012_deleted_by.sql",
"0013_thread_lifecycle_reports.sql",
"0014_telegram.sql",
"0015_comment_depth.sql",
"0016_user_erasure.sql",
"0017_subscriptions_email_index.sql",
"0018_email_send_budget.sql",
"0019_audit_log_pii.sql",
"0020_subscriptions_locale.sql",
"0021_moderator_notifications.sql",
"0022_reaction_kind_fire.sql",
"0023_moderator_notes.sql",
"0024_subscriptions_token_index.sql",
"0025_comment_pins.sql",
"0026_staff_badge.sql",
"0027_oauth_email_names.sql",
"0028_user_name_key.sql",
"0029_owner_login.sql",
"0030_thread_and_retention_indexes.sql",
"0031_admin_list_indexes.sql",
"0032_page_engagement_totals.sql",
"0033_discord_links.sql"
],
"breakingChanges": [
{
"id": "node-24-minimum",
"summary": "Node.js 24 is now the minimum. Building or deploying on Node 22 fails at `npm ci`.",
"manualSteps": [
"Upgrade your build/deploy host to Node.js 24 (`nvm install 24 && nvm use 24` — the repo's .nvmrc now reads 24).",
"Re-run `npm ci` after switching; a stale node_modules built on Node 22 can carry incompatible native binaries.",
"Rollback is just redeploying the prior tag: the Node floor added no D1 migrations and no required secrets."
],
"addedIn": "1.20.0"
},
{
"id": "host-session-cookie",
"summary": "The session cookie is renamed to `__Host-garrul_sess`. Everyone signed in to your instance is signed out once, on deploy. No data is lost and nothing is left to clean up — the next sign-in issues the new cookie.",
"manualSteps": [
"Nothing to run. Expect a burst of re-logins right after the deploy, and tell moderators so they don't read it as an outage.",
"The `__Host-` prefix requires Secure, Path=/ and no Domain attribute, all of which already held. If you terminate TLS in front of the Worker, confirm it still reaches browsers over HTTPS or the cookie will be rejected outright.",
"Rolling back to the prior tag signs everyone out a second time."
],
"addedIn": "2.0.0"
},
{
"id": "ipv6-hash-64",
"summary": "IPv6 addresses are normalized to their /64 prefix before hashing. Every `ip_hash` derived from an IPv6 client changes once, so vote and report dedup rows written before the upgrade stop matching those clients. IPv4 is unaffected.",
"manualSteps": [
"Nothing to run. A returning anonymous IPv6 visitor gets a new ghost identity once, and could vote or report a second time on something they already acted on.",
"This is the fix for one household being able to mint 2^64 distinct hashes — before it, rate limiting, vote dedup and report dedup were all unenforceable over IPv6."
],
"addedIn": "2.0.0"
},
{
"id": "reply-depth-cap",
"summary": "Replies nested deeper than 8 are rejected with HTTP 400 and `err.parent.too_deep`. Existing deeper threads still render and can still be read, edited and moderated — only new replies under them are refused.",
"manualSteps": [
"Nothing to run. The widget already hides the reply button below depth 4, so normal use never reaches the cap; imported Disqus threads are the realistic source of deep chains.",
"The cap exists because an unbounded chain made the tree build O(N^2) and blow the Workers CPU limit, which returned Error 1102 to every reader of that page permanently."
],
"addedIn": "2.0.0"
},
{
"id": "iframe-parent-origin-allowlist",
"summary": "The iframe embed only posts messages to an origin listed in `ALLOWED_ORIGINS`, and the `document.referrer` fallback is gone. An iframe embed on a host that is not in the allowlist will stop auto-resizing and stop receiving auth handoffs.",
"manualSteps": [
"Add every site that iframe-embeds your instance to `ALLOWED_ORIGINS` in wrangler.toml, scheme and host, comma-separated (e.g. `https://blog.example.com,https://example.com`), then redeploy.",
"The script-tag embed is unaffected; this only changes `/embed/*`.",
"Check the browser console on a host page after upgrading: a blocked postMessage is the symptom."
],
"addedIn": "2.0.0"
},
{
"id": "required-secrets-enforced",
"summary": "If `IP_HASH_SECRET` or `JWT_SECRET` is unset, the Worker answers every route with 500 `server_misconfigured` and logs `config.missing_required_secrets`, instead of failing later as scattered anonymous 500s. `JWT_SECRET` is no longer reserved-for-future-use: the OAuth login flow signs its state with it.",
"manualSteps": [
"Confirm both secrets are set: `wrangler secret list`. `npm run upgrade` also reports them as missing before it deploys.",
"Set anything missing with `wrangler secret put IP_HASH_SECRET` / `wrangler secret put JWT_SECRET` (32+ random bytes each; `setup.sh` generates them).",
"Do not rotate `IP_HASH_SECRET` on an existing instance — it re-keys future writes only and silently breaks dedup against every stored hash. See issue #50."
],
"addedIn": "2.0.0"
},
{
"id": "client-ip-required",
"summary": "Outside `ENV=dev`, the write endpoints that identify a caller by IP — comment, vote, reaction, report, subscribe, preview and page-engagement — refuse a request with no `cf-connecting-ip` header, returning HTTP 400 `no_client_ip` rather than folding it into a shared bucket. Requests through Cloudflare always carry the header; direct-to-Worker traffic does not. Reads are unaffected.",
"manualSteps": [
"Nothing to run if your instance is reached through Cloudflare, which is the documented setup.",
"If you probe the Worker directly (health checks, synthetic monitors), point them at `/api/v1/health` — it is a GET and does not require the header."
],
"addedIn": "2.0.0"
},
{
"id": "operator-script-guards",
"summary": "Two operator scripts got stricter. `npm run import-disqus` exits 2 if `IP_HASH_SECRET` is unset instead of using a hard-coded fallback, and `npm run db:export` requires the output filename to match `garrul-backup-*.sql`.",
"manualSteps": [
"Export `IP_HASH_SECRET` in the shell before running `npm run import-disqus` — the same value the deployed Worker uses, or imported comments get hashes that never match live traffic.",
"Pass a `garrul-backup-*.sql` name to `npm run db:export`; that glob is what .gitignore covers, so a full dump of every email and comment can't land in a commit.",
"Also note: the CLI Disqus importer silently did nothing before this release — it reported DONE with zero counters. If a past import looked like a no-op, it was; re-run it."
],
"addedIn": "2.0.0"
},
{
"id": "renderer-2-rerender",
"summary": "The markdown sanitizer's emitted HTML changed, so `CURRENT_RENDERER_VERSION` is 2. `body_html` is rendered once at write and served verbatim, so existing comments keep their old HTML until they are re-rendered.",
"manualSteps": [
"Run `npm run rerender` after deploying, or use Rerender on /admin/operator.",
"Safe to defer — old comments render as before in the meantime — but they will not pick up the sanitizer hardening until you do."
],
"addedIn": "2.0.0"
},
{
"id": "like-reaction-alias-removed",
"summary": "The deprecated `like` reaction wire alias (kept since the v2.10.0 rename to `fire`) is removed. `POST /api/v1/reactions` and `POST /api/v1/page-engagement/reactions` now answer HTTP 400 `invalid_kind` to `kind: \"like\"`. The bundled widget has sent `fire` since v2.10.0, so only third-party scripts pinned to the old spelling are affected.",
"manualSteps": [
"Nothing to run for a standard install — cached pre-2.10.0 widget bundles expired long ago (embed.js caches for at most ~25 hours).",
"If any of your own scripts POST reactions with `kind: \"like\"` (the endpoints are documented in AGENTS.md), change them to send `fire` before upgrading.",
"Rollback is redeploying the prior tag: no migrations and no secrets are involved."
],
"addedIn": "2.24.0"
}
]
}