Skip to content

feat(webhooks): add signing secret rotation endpoint - #238

Merged
gabrielmfern merged 3 commits into
mainfrom
feat/webhook-signing-secret-rotation
Sep 10, 2026
Merged

gabrielmfern merged 3 commits into
mainfrom
feat/webhook-signing-secret-rotation

Conversation

@gabrielmfern

@gabrielmfern gabrielmfern commented Sep 9, 2026

Copy link
Copy Markdown
Member

Adds Resend::Webhooks.rotate_signing_secret(webhook_id) for POST /webhooks/{webhook_id}/signing-secret/rotate, returning the same { object, id, signing_secret } hash as create. Same layout as the event replay method: one method in lib, one spec asserting path, verb, and response, and a step in examples/webhooks.rb.

Ran the branch against staging: rotating a fresh webhook returned a new whsec_ secret, a deleted webhook raised Resend::Error::NotFoundError, and a non-uuid id raised Resend::Error::InvalidRequestError.

Spec: resend/resend-openapi#113
Linear: https://linear.app/resend/issue/DEV-2074

🤖 Generated with Claude Code


Summary by cubic

Adds Resend::Webhooks.rotate_signing_secret(webhook_id) to generate a new signing secret for a webhook. The previous secret keeps working for 24 hours after rotation, so you can swap credentials without an immediate break. Bumps the gem version to 1.15.0.

Written for commit ef2ecbe. Summary will update on new commits.

Review in cubic

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread lib/resend/webhooks.rb
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 2 files (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: Auto-approval blocked by 1 unresolved issue from previous reviews.

Re-trigger cubic

Comment thread lib/resend/webhooks.rb Outdated
…ing secret

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 3 files (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: Auto-approval blocked by 1 unresolved issue from previous reviews.

Re-trigger cubic

@gabrielmfern
gabrielmfern merged commit ba7b54e into main Sep 10, 2026
8 checks passed
@gabrielmfern
gabrielmfern deleted the feat/webhook-signing-secret-rotation branch September 10, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants