harden federation: sanitize incoming AP content, fix error handling, tighten rate limits
Some checks failed
CI / Check / Test (push) Successful in 10m54s
CI / Release build (push) Failing after 1m20s

This commit is contained in:
2026-05-29 12:23:29 +02:00
parent d1f9f55d4f
commit 84ddf04d28
7 changed files with 188 additions and 9 deletions

View File

@@ -45,8 +45,8 @@ impl k_ap::EventPublisher for FederationEventBridge {
.await
.map_err(|e| anyhow::anyhow!(e.to_string()))
}
other => {
tracing::debug!("ignoring federation event: {:?}", other);
FederationEvent::DeliveryFailed { inbox, error, .. } => {
tracing::warn!(inbox = %inbox, error = %error, "federation delivery failed permanently");
Ok(())
}
}