Skip to content

Commit

Permalink
added logging for signature verirification
Browse files Browse the repository at this point in the history
  • Loading branch information
lampwins committed Nov 30, 2018
1 parent 37c8d4c commit 3ea90eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sensors/netbox_webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def event():
if request.headers.get('X-Hook-Signature') != hmac_prep.hexdigest():
self._log.warning("Failed to verify request signature.")
return "Nope", 400
else:
self._log.info("Request passed signature verification.")

payload = request.get_json(force=True)

Expand Down

0 comments on commit 3ea90eb

Please sign in to comment.