Rotate a webhook signing secret

Roll a webhook signing secret, copy the one-time replacement immediately, update the receiver, and verify new signatures after the old key stops.

Last reviewed

Webhook secret rotation is an immediate cutover. Dosya does not overlap old and new secrets: the previous value stops verifying as soon as Roll secret succeeds, and the replacement is shown once.

Four panels show reviewing the immediate cutover warning, rolling and copying the one-time replacement, deploying the new secret, and verifying a newly signed test.
Four panels show reviewing the immediate cutover warning, rolling and copying the one-time replacement, deploying the new secret, and verifying a newly signed test. Open full-size screenshot.

Steps

  1. Prepare access to the receiver’s secret store and deployment path before changing Dosya. Pause unrelated receiver changes and choose a low-traffic window because the replacement cannot be known in advance.
  2. Open Integrations → Webhooks, match the endpoint URL, and select Roll secret. Confirm your workspace role includes manage_settings; an API credential needs Full access.
  3. In Roll signing secret, read The old secret stops working immediately - update your receiver before rolling. Choose Roll secret only when you can perform the cutover now.
  4. In Signing secret, copy the new whsec_… value and store it securely. Dosya reports Store it securely - you won't see it again. and does not offer retrieval after the dialog closes.
  5. Update and deploy the receiver, then remove the old value from its configuration. Pending retries read the endpoint’s current secret on their next attempt, so they will also arrive signed with the replacement.
  6. Choose Send test event, open Deliveries, and require Success plus a valid new signature at the receiver. Investigate any requests that arrived during the short rotation window before resuming normal operations.

Secret rolling is limited to ten requests per user per hour. The audit trail and integration notification identify the endpoint and actor but never store either secret.

Reference for “Rotate a webhook signing secret”: Dosya REST API overview page with Get API Key and View SDKs links.
Reference for “Rotate a webhook signing secret”: Dosya REST API overview page with Get API Key and View SDKs links. Open full-size screenshot.

Expected result

The receiver accepts deliveries signed with the one-time replacement and rejects the retired secret. New tests and later retries use the current secret, with no unsupported dual-secret period implied.

Roll secret failed means no confirmed replacement was returned. Keep the current receiver configuration, reload the endpoint, and retry only after checking the rate limit.

The dialog closed before copying. The value cannot be recovered. Roll again, copy the newly issued secret, and update the receiver promptly; the intermediate secret is already obsolete.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.