From fa1ebbc319b8684619b40fc5178af36c94b4b1fe Mon Sep 17 00:00:00 2001 From: Nikki <17799906+nikki-t@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:08:39 -0400 Subject: [PATCH] Also log whether API key is in trusted list --- hydrocron/api/controllers/authorizer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hydrocron/api/controllers/authorizer.py b/hydrocron/api/controllers/authorizer.py index 0be67b3..2bb7468 100644 --- a/hydrocron/api/controllers/authorizer.py +++ b/hydrocron/api/controllers/authorizer.py @@ -31,6 +31,7 @@ def authorization_handler(event, context): trusted_key_list = json.loads(STORED_API_KEY_TRUSTED) logging.info("x-hydrocron-key: %s", api_key_trusted) logging.info("trusted_key_list: %s", trusted_key_list) + logging.info("api_key_trusted in trusted_key_list: %s", api_key_trusted in trusted_key_list) if api_key_trusted and api_key_trusted in trusted_key_list: response_policy = create_policy("trusted_partner", "Allow", event["methodArn"], api_key_trusted)