-
Notifications
You must be signed in to change notification settings - Fork 665
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
Fail to load system keyring on Mac OS version 8.1 #7076
Comments
Hi @martinrm77 , I am unable to reproduce the issue with the upgrade and normal installation, can you please provide the steps or a short video recording? |
I have the exact same issue. I simply downloaded and installed the pgadmin4-8.1-arm64.dmg. From that moment on it is unusable. I had to:
...then it worked again. |
As someone else with the same issue, I upgraded to 8.1 and saw the issue immediately. At this point, I downgraded back to 8.0, got the pop-up a single time with 8.0, and then access to my Keychain remained (including across closing/reopening pgadmin). This is using both the arm64 and x86-64 builds. |
I also saw this opn Mac OS Sonoma 14.2.1 and rolled back to pgadmin4 8.0 😞 |
I have the same issue, 8.1 (via brew), asks for my keychain password in an loop, no matter how many times I enter it. |
I saw the same issue on macOS Sonoma 14.2.1 with pgAdmin 4 v8.1. Downgrading to v8.0 resolved the issue for me as well. |
Same issue. I installed 8.1 via the ARM EDIT: resolved by downgrading to pgAdmin 4 8.0 via |
Same issue here. To reproduce, try installing 8.0 (ARM), then add some servers with saved passwords, then upgrade to 8.1 (ARM). Keep getting a popup that says:
Have to roll back to 8.0 in order to use the application. |
Same issue here. |
@nikhil-mohite I'm having the same issue and I have a screen recording of it below: pgAdmin4_keychainIssue.movMacOS Ventura 13.5.1 (M2) Downloaded pgadmin4-8.2-arm64.dmg My steps to replicate:
|
This is an issue while accessing the keychain in macOS, A Similar issue is already logged in Python's |
Hi @thestelz, |
@adityatoshniwal I have 10 servers all with saved passwords. I took a look at the keyring issue above and read that it isn't a loop, but asks each time for each saved password. After I read that I reinstalled 8.2 and entered my password 10 times and clicked allow all each time. After I did that everything appears to be working as expected now. |
If it's an issue with keychain in macOS, how come downgrading to v8.0 fixes it? |
I tested this on new version 8.2 (ARM) that just came out on Jan 9, 2024. (Upgraded from 8.0 to 8.2) Now, if you hit "Deny" on the keychain popup, it then asks you for your master password. When you enter this, another popup immediately asks you for your Pgadmin master password. When you enter this, it seems to work. When you reboot the application, the keychain popup comes back, and you have to hit deny again and enter your master password again. At least you don't have to roll it back now, but it's still not working correctly... |
If pgAdmin is unable to use the KeyChain on macOS (When you click on the |
The issue is when the Python binary updates (or a new virtual environment is created), You will receive a popup asking for a login/keychain password. It will ask for permission per record it will try to access from KeyChain. If you have 3 records it will ask 3 times to allow you to access the keychain each per record. You can check the access in |
I'm having this same issue with version 8.2 today and downgraded back to 8.0. |
It will ask to enter the correct password for each saved server. You must enter the correct password as many times as your saved password. I had 15 saved servers before updating the software. I had to enter the password 30 times, and now it is working fine. |
This is behaviour enforced by Mac itself. For every saved server, once it will ask for password. |
@yogeshmahajan-1903 can pgAdmin project provide the option to disable the usage of MacOS Keychain at least? This is a UX issue and will happen every time pgAdmin upgrades the python binary in future releases. It's not even just having to enter the password dozens of times, but also losing your data if you don't have admin access to the keychain (can easily happen if you don't have high privileges on your MacOS). |
@yogeshmahajan-1903 - Are you sure this issue cannot be addressed? It is not an issue for 8.0. It only started happening in 8.1. That implies something changed in 8.1 that caused it to start happening. |
Same here |
Issue tested and verified on snapshot build: https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2024-09-10/ |
Could you share some summary of what you guys implemented as a fix? Storing a master password in keychain instead of storing individual server passwords? |
We have followed way described here - #7076 (comment) |
same here v8.12... |
@OneideLuizSchneider |
As I said, the same issue everyone is having here, I just downgraded to 8.0 and now it is working again.. Basically the same as this comment: #7076 (comment) |
@OneideLuizSchneider |
Same issue here!
|
@cyberelfo |
@yogeshmahajan-1903 |
As @OneideLuizSchneider mentioned, even after clicking Also downgraded to 8.0. |
How many times did pop up shown. Can you please share the logs? If you have upgraded from version before 8.11 to 8.13, it will show the pop 2 * number of servers with saved password.(E.g. if you have 2 servers with saved password , then it will ask you 4 times. Once this done in 8.12/8.13, it should show you pop up 2 times.) Kindly try by clicking always allow for all such pop up. Kindly let me know number of times pop up shown.
|
I am confused by the following:
But if it just storing the encryption password, then why is it asking more than once for access to the keychain? |
Before 8.13 all passwords used to get save in keychain. From 8.13 pgadmin now stores only encryption key in keychain. But to migrates existing saved password with keychain, it will ask 2 * number of servers with saved password. Also its Mac behaviour which asks you 2 times password to retrieve single entry from keychain. |
Thank you for the answer. |
Is your issue resolved? |
Yes. |
Open Keychain Access and search for pgAdmin 4 under the All Items section. Click on it, then navigate to the Access Control tab, and select Allow all applications to access this item. |
Please note that security bugs or issues should be reported to [email protected].
Describe the bug
After upgrading to version 8.1 it will not load my system keyring. It keeps asking for password, and asking for password, again and again. If I type wrong password it says failed password, if I type correct password it asks again.
To Reproduce
Install pgAdmin 4 v8.0 on Mac OS.
Create server connetions.
Upgrade to v8.1
Try to start pgAdmin 4 and enter login password to open system keyring
Steps to reproduce the behavior:
Expected behavior
Should just open up pgadmin 4 without a prompt for password as I am already logged in and the system keyring is available.
Error message
No error message, just a repeating password prompt.
Screenshots
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: