refactor(integrations): verify resend webhooks with the shared standard webhooks check
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Start by reading src/lib/webhooks/standard-webhooks.ts and the Resend verifier in src/lib/adapters/resend/index.ts; this issue is blocked until #515 and #525 are on main. Then review the existing Resend tests and move scheme-level cases to src/lib/webhooks/standard-webhooks.test.ts, keeping Resend header and documented Svix example coverage. Done when Resend delegates verification to the shared check and its unit tests, Playwright spec, lint, and typecheck pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
Raised by the Fable review of #525 (Polar webhooks, #429), comment 4591332936.
#525 adds src/lib/webhooks/standard-webhooks.ts (verifyStandardWebhook, standardWebhookKey, standardWebhookSignature), the Standard Webhooks check Polar signs with. Resend signs the same way through Svix, only under the svix-id, svix-timestamp, and svix-signature header names. #515 (Resend webhooks, #427) carries its own copy in src/lib/adapters/resend/index.ts (signingKey, svixSignature, verifyWebhook): the same key decoding, signature, and compare-every-entry loop. Once both merge there are two copies of one signature check, which can drift.
The Resend worker asked that the move wait until #515 merges, so this is its own issue rather than part of #525.
Blocked by #515 and #525 (both must be on main).
Plan
- In
src/lib/adapters/resend/index.ts, verify withverifyStandardWebhook(request, key === null ? [] : [key], RESEND_WEBHOOK_HEADERS, now), withkeyfromstandardWebhookKey(secret). - Replace
signingKeyandsvixSignaturewithstandardWebhookKeyandstandardWebhookSignatureinresendWebhookSignatureandcreateWebhook. KeepRESEND_WEBHOOK_HEADERSas Resend's header names, typedStandardWebhookHeaders. - Delete what becomes unused. Keep
RESEND_WEBHOOK_TOLERANCE_SECONDSonly if a caller still needs it, otherwise useSTANDARD_WEBHOOK_TOLERANCE_SECONDS. - Move any scheme-level tests left in
resend/index.test.tstosrc/lib/webhooks/standard-webhooks.test.ts. Keep Resend's own: its header names and the Svix documented example.
Acceptance criteria
- Resend's
verifycallsverifyStandardWebhook; no second HMAC or compare loop remains inresend/index.ts. - Every existing Resend webhook unit test passes unchanged in outcome.
- Playwright:
e2e/webhook-setup-resend.spec.tspasses unchanged. No new e2e is needed, because behavior does not change.
Files and areas
src/lib/adapters/resend/index.ts,src/lib/adapters/resend/index.test.ts,src/lib/webhooks/standard-webhooks.test.ts.- Non-goals: changing Resend's subscriptions, mapping, tolerance, or setup.
Verification
npx vitest run src/lib/adapters/resend src/lib/webhooksnpm run lint,npm run typecheck
Branch: <issue-number>-resend-shared-verifier
Closes with a Closes #<issue-number> footer on the commit or pull request.
Model: anthropic/claude-opus-5-5 | Reasoning effort: not reported by the harness
- Lenguaje dominante
- TypeScript
- Estrellas
- 13
- Forks
- 2
- Merge medio
- 5 h 20 min
- PR fusionados (30 d)
- 287
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eddiejaoude/StackDash
-
area: integrations documentation priority: P2 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eddiejaoude/StackDash#798 ·
Los mantenedores suelen responder en 1 día
-
area: ops documentation priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
eddiejaoude/StackDash#796 ·
Los mantenedores suelen responder en 1 día
-
area: docs documentation impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eddiejaoude/StackDash#790 ·
Los mantenedores suelen responder en 1 día
-
area: ops bug impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
eddiejaoude/StackDash#785 ·
Los mantenedores suelen responder en 1 día
-
area: connections enhancement impact: low priority: P3 size: XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
eddiejaoude/StackDash#768 ·
Los mantenedores suelen responder en 1 día
Todos los issues de eddiejaoude/StackDash
Issues similares
-
bot:ai-assisted component:midnight-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
midnightntwrk/midnight-js#1790 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
area:vscode bug has repro platform:macos platform:vscode regression
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDAbiertocheck:passed streams:add
Dificultad 1/5 Menos de una hora Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
effort/l priority/p1 risk/high triage/core
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
iflytek/skillhub#1188 · 1 comentario ·
Los mantenedores suelen responder en 1 día