From ada8e01414c11ccb82b593b61499568c1fe53123 Mon Sep 17 00:00:00 2001 From: Rob Kooper Date: Wed, 1 May 2024 10:52:10 -0500 Subject: [PATCH] use correct header --- cdrhook/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdrhook/server.py b/cdrhook/server.py index 204c3fa..21fbbb3 100644 --- a/cdrhook/server.py +++ b/cdrhook/server.py @@ -171,7 +171,7 @@ def hook(): # 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"]) - elif not request.headers.get("x-cdr-signature-256") == config["callback_secret"]: + elif not request.headers.get("x-ncsa-secret") == config["callback_secret"]: abort(403, "Request signatures didn't match!") send_message(request.get_json(), f'{config["prefix"]}cdrhook')