andrewmusselman commented on code in PR #922:
URL:
https://github.com/apache/tooling-trusted-releases/pull/922#discussion_r3065539086
##########
atr/ssh.py:
##########
@@ -147,25 +147,29 @@ async def validate_public_key(self, username: str, key:
asyncssh.SSHKey) -> bool
return False
fingerprint = key.get_fingerprint()
-
async with db.session() as data:
workflow_key = await
data.workflow_ssh_key(fingerprint=fingerprint).get()
+
if workflow_key is None:
return False
- # In some cases this will be a service account
- self._github_asf_uid = workflow_key.asf_uid
- log.set_asf_uid(self._github_asf_uid)
+ if workflow_key.revoked:
+ log.failed_authentication("workflow_key_revoked")
Review Comment:
No prob, thanks @alitheg
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]