Rate limit Gitea repo archives #32

Closed
opened 2024-05-03 12:36:00 +02:00 by lukas · 3 comments
Owner

Repo archives have the ability to consume a lot of server resources. If multiple large archives, that have to be built on demand, are requested at the same time, the server will run out of memory.

A kind of rate limit for this has to be implemented, either by watching the container resource usage or simply by limit download requests to about 1 request per 5minutes per IP.

Repo archives have the ability to consume a lot of server resources. If multiple large archives, that have to be built on demand, are requested at the same time, the server will run out of memory. A kind of rate limit for this has to be implemented, either by watching the container resource usage or simply by limit download requests to about 1 request per 5minutes per IP.
lukas added the
Involves
Testing
Priority
Low
Service
Gitea
Domain
libre.moe
labels 2024-05-03 12:36:00 +02:00
lukas self-assigned this 2024-05-03 12:36:00 +02:00
lukas added this to the Issue Board project 2024-05-03 12:36:00 +02:00
lukas added spent time 2024-05-22 20:33:53 +02:00
15 minutes
lukas deleted spent time 2024-05-22 20:34:57 +02:00
- 15 minutes
lukas added spent time 2024-05-22 20:35:19 +02:00
10 minutes
Author
Owner

This has now been implemented.
Up to 3 downloads per minute are allowed per IP.

This has now been implemented. Up to 3 downloads per minute are allowed per IP.
lukas closed this issue 2024-07-25 21:20:19 +02:00
lukas reopened this issue 2024-08-29 15:42:26 +02:00
lukas added the
Kind
Bug
label 2024-08-29 15:42:43 +02:00
Author
Owner

There is currently a bug, making every request to Gitea (or maybe even in general) count towards the limit, meaning fast navigation through Gitea will make any downloads fail, not just more than 3.

There is currently a bug, making every request to Gitea (or maybe even in general) count towards the limit, meaning fast navigation through Gitea will make any downloads fail, not just more than 3.
Author
Owner

Due to the new infrastructure, rate limits have been removed again.

Due to the new infrastructure, rate limits have been removed again.
lukas closed this issue 2024-10-13 13:38:06 +02:00
lukas removed this from the Issue Board project 2024-12-17 12:28:56 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 10 minutes
lukas
10 minutes
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: KomuSolutions/igot99issues#32
No description provided.