feat(webhooks): add signing secret rotation endpoint - #141
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
klotty
left a comment
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Auto-approved: Adds a new webhook signing-secret rotation endpoint and response model, mirroring the existing replay method, with a test covering the new call.
Re-trigger cubic
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds a new webhook signing-secret rotation method and response model, expanding the SDK's public API surface with a new endpoint that needs human contract review.
Re-trigger cubic
| } | ||
|
|
||
| /** | ||
| * Rotates the signing secret of a webhook. The previous secret stops verifying immediately. |
There was a problem hiding this comment.
They aren't invalidated immediately, there's a 24-hour grace
…ing secret Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Adds a new public webhook signing-secret rotation endpoint and response model, expanding the SDK's API surface; a human should review the endpoint design and response shape before release.
Re-trigger cubic
This adds
resend.webhooks().rotateSigningSecret(webhookId)forPOST /webhooks/{webhook_id}/signing-secret/rotate, mirroring the event replay method. The response model carriesobject,id, andsigning_secret, the same shape create webhook already returns.Spec: resend/resend-openapi#113
Linear: https://linear.app/resend/issue/DEV-2079
🤖 Generated with Claude Code
Summary by cubic
Adds a new endpoint to rotate a webhook's signing secret. This lets users replace a compromised secret without recreating the webhook; the previous secret keeps working for 24 hours after rotation.
Written for commit c4faa31. Summary will update on new commits.