In light of the recent outage I had a look at the rate-limiting configuration and - as far as I can see - there are no stricter rate-limits for search endpoints present.
If I read the configuration correctly it's currently possible to perform 4000 searches within 30 minutes per IP (that's 2.22 searches per second).
That sounds quite risky considering that searches are usually quite expensive to perform.
For example GitHub has implement very hard rate limits on searches when you are not authenticated (Code searches are not allowed at all and other searches are usually capped to ~10 per minute).
### Comment
In light of the recent outage I had a look at the [rate-limiting configuration](https://codeberg.org/Codeberg-Infrastructure/scripted-configuration/src/commit/e4aaceeb434a82d2b8c610284006d3d0a3cbe665/hosts/_reverseproxy/etc/caddy/forgejo-prod.site) and - as far as I can see - there are no stricter rate-limits for search endpoints present.
If I read the configuration correctly it's currently possible to perform 4000 searches within 30 minutes per IP (that's 2.22 searches per second).
That sounds quite risky considering that searches are usually quite expensive to perform.
For example GitHub has implement very hard rate limits on searches when you are not authenticated (Code searches are not allowed at all and other searches are usually capped to ~10 per minute).