Skip to content

Commit

Permalink
Add reply attack clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
christos chatzifountas committed Nov 13, 2024
1 parent 93329e3 commit 1eff63b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/How-to guides/How to create and use webhooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ Where the string following t= is a timestamp and the one following `v1=` is the
* The actual alarm payload in JSON (the body of the POST request)

And then generating an HMAC-SHA256 hash of the concatenation using the webhook secret key.
For extra security and to prevent replay attacks, the client should also compare the provided timestamp with the timestamp when they received the webhook.
It is advisable to accept the webhook only within a specified time window.

0 comments on commit 1eff63b

Please sign in to comment.