Skip to content

Commit

Permalink
always check signature
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed May 1, 2024
1 parent 1eb4746 commit c9b7476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdrhook/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ def hook():
Our main entry point for CDR calls
"""
# check the signature
if request.headers.get("x-cdr-signature-256"):
validate_request(request.data, request.headers.get("x-cdr-signature-256"), config["callback_secret"])
#if request.headers.get("x-cdr-signature-256"):
validate_request(request.data, request.headers.get("x-cdr-signature-256"), config["callback_secret"])

send_message(request.get_json(), f'{config["prefix"]}cdrhook')
return {"ok": "success"}
Expand Down

0 comments on commit c9b7476

Please sign in to comment.