From 5fcdfbd596aec2b3b5af1cf50c16b6b2413e649c Mon Sep 17 00:00:00 2001 From: kaniini Date: Wed, 31 Oct 2018 02:14:01 +0000 Subject: [PATCH] http signatures: log when http signature validation fails --- relay/http_signatures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/relay/http_signatures.py b/relay/http_signatures.py index 6ccdd65..5322d57 100644 --- a/relay/http_signatures.py +++ b/relay/http_signatures.py @@ -112,6 +112,7 @@ async def http_signatures_middleware(app, handler): actor = data["actor"] if not (await validate(actor, request)): + logging.info('Signature validation failed for: %r', actor) raise aiohttp.web.HTTPUnauthorized(body='signature check failed, signature did not match key') return (await handler(request))