Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update stale comment

Manav Rathi10ac9f11006f
diff --git a/server/pkg/middleware/rate_limit.go b/server/pkg/middleware/rate_limit.go
index 0c82054fa8..cf6b5523d4 100644
--- a/server/pkg/middleware/rate_limit.go
+++ b/server/pkg/middleware/rate_limit.go
@@ -187,11 +187,6 @@ func isPublicCollectionUploadURLPath(reqPath string) bool {
reqPath == "/public-collection/multipart-upload-url"
}
-// isAuthenticatedUploadURLPath matches the authenticated presign endpoints.
-// Each request to /files/upload-urls can mint up to 50 URLs and reserve
-// MinIO multipart slots, so an unbounded loop by a logged-in user can
-// exhaust the bucket's pending-upload capacity. Cap at 250 req/min/user β€”
-// 12500 URLs/min, far above any human upload pattern.
func isAuthenticatedUploadURLPath(reqPath string) bool {
return reqPath == "/files/upload-urls" ||
reqPath == "/files/upload-url" ||