Webhook
Webhook notifiers allow for integrations which subscribe to found secret notifications.
When a new secret is found, an HTTP POST payload will be sent to the webhook’s configured URL. Webhooks can be secured by using a token to generate and verify a signature of the payload.
Key | Description | Required |
---|---|---|
url | The webhook endpoint to send the notification to | Yes |
token | Token to generate signature for webhook | No |
notifyOnRotation | Set to true to send follow-up webhook notification when secret is rotated | No |
signatureMethod | sha256 or hmac-sha256. Default: sha256 | No |
base64EncodedToken | Set to true if provided token is base64 encoded | No |
The signature is sent using in the X-Hub-Signature header. To verify the signature matches the payload, generate a SHA256 hash of the payload body prefixed with the token string.