mercedes-benz / sechub

SecHub provides a central API to test software with different security tools.
https://mercedes-benz.github.io/sechub/
MIT License
259 stars 63 forks source link

Introduce rate limit for REST api #3288

Open de-jcup opened 1 month ago

de-jcup commented 1 month ago

Situation

Currently we have no rate limit for SecHub API

Wanted

A configurable rate limit for REST api calls.

Solution

Spring way

Spring Boot seems to have an embedded support for token based quota. Maybe we should use this to restrict?

https://www.baeldung.com/spring-bucket4j#token-bucket

de-jcup commented 1 month ago

We will close #2845 in favor of this one.

de-jcup commented 1 month ago

We close #2843 in favor of this one

hamidonos commented 1 month ago

Bucket4J is a good solution for rate limiting.

We should also keep in mind: