mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 05:52:55 +00:00
proxy: include client IP in ip deny message (#6854)
## Problem Debugging IP deny errors is difficult for our users ## Summary of changes Include the client IP in the deny message
This commit is contained in:
@@ -24,7 +24,7 @@ async def test_proxy_psql_allowed_ips(static_proxy: NeonProxy, vanilla_pg: Vanil
|
||||
with pytest.raises(psycopg2.Error) as exprinfo:
|
||||
static_proxy.safe_psql(**kwargs)
|
||||
text = str(exprinfo.value).strip()
|
||||
assert "This IP address is not allowed to connect" in text
|
||||
assert "not allowed to connect" in text
|
||||
|
||||
# no SNI, deprecated `options=project` syntax (before we had several endpoint in project)
|
||||
check_cannot_connect(query="select 1", sslsni=0, options="project=private-project")
|
||||
|
||||
Reference in New Issue
Block a user