mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-12-22 19:21:08 +00:00
http signatures: immediately fail validation attempt if no actor keys can be found
This commit is contained in:
parent
b12fe63a36
commit
29c3bf4b5a
|
@ -74,6 +74,9 @@ async def fetch_actor_key(actor):
|
|||
|
||||
async def validate(actor, request):
|
||||
pubkey = await fetch_actor_key(actor)
|
||||
if not pubkey:
|
||||
return False
|
||||
|
||||
logging.debug('actor key: %r', pubkey)
|
||||
|
||||
headers = request.headers.copy()
|
||||
|
|
Loading…
Reference in a new issue