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
pg_signal_backend check is too restrictive #7217
Comments
@pmpetit |
can't test on 8.3, app does not run as 7.8 did. Is there any breaking change between 7.8 & 8.3 ? |
7.8 i use to load my server connection using /venv/bin/python3 setup.py --load-servers |
i can not import user anymore The specified user ID (pierremarie.petit.partxxxxxxyyyzzzz) could not be found. in 7.8 I was using But now in 8.3 it seems to have changed (I use load-servers only , but to set username from authent not from inside db, I don't find |
@pmpetit
|
…on/query and let PostgreSQL take care of it. #7217
This is working fine. Verified in 8.4 candidate build. |
Hi,
Please note that security bugs or issues should be reported to security@pgadmin.org.
Describe the bug
If you want to kill a session using
then i have this error message
but using a query i can
i think it is because you check that
pgadmin4/web/pgadmin/utils/driver/psycopg3/connection.py
Line 627 in 3898964
the user has been granted with pg_signal_backend.
but in some case, you can kill a session if the user is granted with the connected user using 'with admin option'
for example i can kill if
grant the_user_to_kill to the_user_who_kill with admin option:
To Reproduce
Steps to reproduce the behavior:
create 2 psql sessions one with user 1 an other with user2
select pg_terminate_backend(the pid of user2);
check that you can kill the session.
version is
thanks
The text was updated successfully, but these errors were encountered: