-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supabase IP Ban Issue with Connection Pooling #331
Comments
@encima thanks for looking at it! |
Let me check internally first and see if we can find anything odd. Will come back to you soon :) |
You say that this IP ban prevents you from running subsequent queries but it is not yours or the runner, so it is related to your infra (or ours) somehow. First, are you connecting to the DB via Supavisor or directly? |
Thanks for the additional info, this looks to be an issue with Supavisor (the connection pooler); logic is in place for this not to get banned but there may be some of your tests that are an edge case. The unauthorized statements that you try, are they unauthorized actions based on your schema or are there also tests for items that may not exist? |
Bug report
Describe the bug
I recently added new tests in my backend directly using the connection string (with pooling) to:
When running tests, I frequently observe an IP address being banned in Network Restrictions. It's always the same:
2600:1f18:2e13:9d01:19c9:c8a9:9833:652d
This occurs both when running tests locally and in my CI environment and prevent any subsequent query to run against the db.
If I remove this IP from Network Restrictions it just reappears few seconds later.
But if I wait around 30 minutes, I can run my tests 1 or 2 times before it starts happening again.
What is this IP? It seems it's located in Virginia, next to my Supabase instance.
Does it have something to do with pooling?
Expected behavior
I expect to execute the operations outlined in my test suite without experiencing repeated bans of this IP:
System information
This occurs both when running tests locally and in my CI environment.
The text was updated successfully, but these errors were encountered: