From dcda096b5d8e5a359129199a33599496339e725f Mon Sep 17 00:00:00 2001 From: Hass_SEA Date: Thu, 18 Jan 2018 12:36:16 -0800 Subject: [PATCH] Update Rules Document with scalr-signature Updated Rules Document with scalr-signature information --- docs/Hook-Rules.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/Hook-Rules.md b/docs/Hook-Rules.md index 32d35d3..274a0b5 100644 --- a/docs/Hook-Rules.md +++ b/docs/Hook-Rules.md @@ -198,4 +198,20 @@ The IP can be IPv4- or IPv6-formatted, using [CIDR notation](https://en.wikipedi "ip-range": "192.168.0.1/24" } } +``` + +### 5. Match scalr-signature + +The trigger rule checks the scalr signature and checks that the request was signed less than 5 minutes before it was received. +A unqiue signing key is generated for each webhook end point URL you register in Scalr +Given the time check make sure that NTP is enabled on both your Scalr and webhook server to prevent any issues + +```json +{ + "match": + { + "type": "scalr-signature", + "secret": "Scalr-provided signing key" + } +} ``` \ No newline at end of file