From 916421c033815ff8684bac38179a77b15b01a529 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Tue, 28 May 2024 16:00:21 -0700 Subject: [PATCH] activitypub authz logging, preserve original keyId, including fragment for #566 --- activitypub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activitypub.py b/activitypub.py index 178b692..5e56058 100644 --- a/activitypub.py +++ b/activitypub.py @@ -505,7 +505,7 @@ class ActivityPub(User, Protocol): # can't use request.full_path because it includes a trailing ? even if # it wasn't in the request. https://github.com/pallets/flask/issues/2867 path_query = request.url.removeprefix(request.host_url.rstrip('/')) - logger.info(f'Verifying signature for {path_query} with key {key_id}') + logger.info(f'Verifying signature for {path_query} with key {sig_fields["keyid"]}') try: verified = HeaderVerifier(headers, key, required_headers=['Digest'],