raisingthefloor / morphic-api-server

Other
2 stars 0 forks source link

Rate limiting of APIs #40

Open jvilhuber opened 4 years ago

jvilhuber commented 4 years ago

Specific focus on auth-stuff (logins, password reset, etc). But we should rate limit all (probably in the kube ingress. Verify the existing 20requests/second config we currently have)

jvilhuber commented 4 years ago

Some links: https://github.com/stefanprodan/AspNetCoreRateLimit/wiki/IpRateLimitMiddleware#setup https://www.nginx.com/blog/rate-limiting-nginx/ https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#limit-rate https://www.nginx.com/blog/mitigating-ddos-attacks-with-nginx-and-nginx-plus https://github.com/stefanprodan/WebApiThrottle

jvilhuber commented 4 years ago

recaptcha? https://stackoverflow.com/questions/53590011/how-to-implement-recaptcha-v3-in-asp-net https://developers.google.com/recaptcha/docs/v3 https://developers.google.com/recaptcha/docs/verify