Neither the API server nor webhook server has a body size limit. Attackers can POST arbitrarily large payloads causing OOM. Fix: Add DefaultBodyLimit (2MB API, 64KB webhooks).
Neither the API server nor webhook server has a body size limit. Attackers can POST arbitrarily large payloads causing OOM. Fix: Add DefaultBodyLimit (2MB API, 64KB webhooks).
Covered on main. axum applies a 2 MB DefaultBodyLimit to the Bytes/Json extractors by default, and every API and webhook handler reads its body through them (the webhook handlers take Bytes for the HMAC). Routes that need more set it explicitly: artifact upload and findings import (api/routes.rs) and Werkbank runner results (api/server.rs). A tighter webhook cap than 2 MB is not useful: Gitea push payloads with many commits exceed 64 KB.
Covered on main. axum applies a 2 MB `DefaultBodyLimit` to the `Bytes`/`Json` extractors by default, and every API and webhook handler reads its body through them (the webhook handlers take `Bytes` for the HMAC). Routes that need more set it explicitly: artifact upload and findings import (`api/routes.rs`) and Werkbank runner results (`api/server.rs`). A tighter webhook cap than 2 MB is not useful: Gitea push payloads with many commits exceed 64 KB.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Neither the API server nor webhook server has a body size limit. Attackers can POST arbitrarily large payloads causing OOM. Fix: Add DefaultBodyLimit (2MB API, 64KB webhooks).
Covered on main. axum applies a 2 MB
DefaultBodyLimitto theBytes/Jsonextractors by default, and every API and webhook handler reads its body through them (the webhook handlers takeBytesfor the HMAC). Routes that need more set it explicitly: artifact upload and findings import (api/routes.rs) and Werkbank runner results (api/server.rs). A tighter webhook cap than 2 MB is not useful: Gitea push payloads with many commits exceed 64 KB.