Validate that incoming webhooks are sent by DroneBundle.
Every webhook delivery is signed with your webhook’s secret using HMAC-SHA256. Always verify the signature before processing the payload to ensure the request is authentic.
DroneBundle computes an HMAC-SHA256 hash of the raw JSON request body using your webhook’s secret
The hash is sent in the x-dronebundle-signature header in the format sha256=<hex_digest>
Your server computes the same hash and compares the two values
Always use the raw request body for verification, not a parsed-and-re-serialized version. Re-serializing JSON can change key order or whitespace, which will produce a different hash.