From ee57a27bfc2b1cf6262be834bc78ee7c44906f6c Mon Sep 17 00:00:00 2001 From: Chris O'Hara Date: Tue, 16 Apr 2024 13:46:08 +1000 Subject: [PATCH] Don't print verification key warning when running under CLI --- src/dispatch/fastapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/fastapi.py b/src/dispatch/fastapi.py index abe4e825..5d32eaba 100644 --- a/src/dispatch/fastapi.py +++ b/src/dispatch/fastapi.py @@ -112,7 +112,7 @@ def __init__( if verification_key: base64_key = base64.b64encode(verification_key.public_bytes_raw()).decode() logger.info("verifying request signatures using key %s", base64_key) - else: + elif parsed_url.scheme != "bridge": logger.warning( "request verification is disabled because DISPATCH_VERIFICATION_KEY is not set" )