Apply patch from perallamint on github

Temporary fix: allow signing bypass for 410 gone actors
DIRTY FIX: implement sigcheck_bypass for 410'ing actors
This commit is contained in:
asonix
2022-12-19 09:44:04 -06:00
parent 178d23bcbd
commit 886c7d0ac6
3 changed files with 33 additions and 7 deletions
+14 -4
View File
@@ -65,11 +65,21 @@ impl MyVerify {
actor_id
} else {
self.0
match self
.0
.fetch::<PublicKeyResponse>(public_key_id.as_str())
.await?
.actor_id()
.ok_or(ErrorKind::MissingId)?
.await
{
Ok(res) => res.actor_id().ok_or(ErrorKind::MissingId),
Err(e) => {
if e.is_gone() {
tracing::warn!("Actor gone: {}, trusting it for now.", public_key_id);
return Ok(true);
} else {
return Err(e);
}
}
}?
};
// Previously we verified the sig from an actor's local cache