-
-
Notifications
You must be signed in to change notification settings - Fork 88
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
I recently added new tests in my backend directly using the connection string (with pooling) to:
- Create new databases
- Apply migrations with Django
- Create db roles and check if the right permissions have been granted. This includes tests with unauthorized SQL statements for some roles.
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:
- Such tests should not inherently trigger security measures leading to an IP ban.
- I don't even understand what this IP is, it's not mine and not the one of a Github runner.
System information
This occurs both when running tests locally and in my CI environment.