BotNetwork

How to choose and rotate a webhook signing secret

A short memorable passphrase is not a signing secret.

Published 1 min read

Generate

Use the secret strength tool or openssl rand -hex 32.

Store

Environment variable or secret manager. Never commit.

Rotate

  1. Add the new secret as accepted.
  2. Switch the sender to the new secret.
  3. Remove the old secret after the retry window.

Verify

HMAC verifier and Slack signature helper.