horahoradev / PrometheusTube

Steal fire (videos) from the Gods (other video sites)
https://prometheus.tube
BSD 2-Clause "Simplified" License
81 stars 4 forks source link

Rate Limiting for POSTs #2

Open horahoradev opened 1 year ago

horahoradev commented 1 year ago

Context and Motivation

We need rate limiting to ensure untrusted users don't spam requests (e.g. new comments over and over).

We currently use echo on front_api; https://echo.labstack.com/docs/middleware/rate-limiter is a promising option, but we primarily want to limit POST requests, not GET requests. Cloudflare should handle GET request concerns.

Prerequisites

I'd recommend learning about the following topics before approaching this:

Sanket-Arekar commented 12 months ago

Hey @horahoradev I would like to work on this issue. Can you Please assign me this issue?

horahoradev commented 12 months ago

@Sanket-Arekar sure, are you in the Discord?

horahoradev commented 12 months ago

although, I think https://github.com/ravihidayat wanted this as well (can't seem to ping him)