S
Supabase2mo ago
Lauful

My supabase api is being DDOS'd

So I had a website was using supabase as backend, but another guy is trying to DDOS my api and managed to rate limit it, and now I only get 429 errors, what should I do in my end? Because if I activate the website now it will just feed into the ip calling too.
13 Replies
silentworks
silentworks2mo ago
Open a support ticket with Supabase support and state what you've stated here.
Lauful
LaufulOP2mo ago
I sent it Do you know what else I can do?
garyaustin
garyaustin2mo ago
What API is being DDOS? What call? How do you know someone is attacking it?
Lauful
LaufulOP2mo ago
My website stopped working giving the error 429, the spikes at Cloudflare are indicating lots of unsual requests
No description
Lauful
LaufulOP2mo ago
My public is directed to only hispanic users but it reports from other countries that shouldn't even know about the website
garyaustin
garyaustin2mo ago
You sounded like you know of an attacker. What API is being hit with the 429 error? Auth? Storage? In the dashboard reports what calls are occurring the most? Are you using edge functions to call supabase? You have your own Cloudflare around the Supabase calls? How are you seeing spikes at Cloudflare?
Lauful
LaufulOP2mo ago
Yes, I have tunneled the api through api.lapregunta.net, and then directed to the supabase api, but I think my api key got leaked with my supabase url too
garyaustin
garyaustin2mo ago
Those can be public normally. Is the 429 from supabase?
Lauful
LaufulOP2mo ago
it's from the tunneled api but shouldn-t it be just the same response as supabase? Also i tried with a previous version that used the supabase api, and it still got the same error
garyaustin
garyaustin2mo ago
You have not said yet what is getting the 429. The dashboard should have errors in the API Gateway logs and the API Gateway report should have more info on main calls for errors. The database does not have rate limit errors. You can certainly rotate your JWT secret to stop everything from accessing the API.
Lauful
LaufulOP2mo ago
I understand, I did tried to restart the project and change api key from legacy to the new ones, and now i get 401, with any of the keys
garyaustin
garyaustin2mo ago
I meant just rotate the old JWT secret to get a new anon key. The new keys may involve changes to your code depending on what you are doing.
Lauful
LaufulOP2mo ago
Thanks, it is back and working, I'm sorry if I was a bad experience to support, me but I appreciate your effort and patience with me.

Did you find this page helpful?