[COMPASS-7059] libsecret 0.19.1 can store password, 0.20.5 cannot Created: 31/Jul/23  Updated: 23/Aug/23  Resolved: 23/Aug/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Bug Priority: Minor - P4
Reporter: Dominik Zogg Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: linux
node.js / npm versions: 18
Additional info: Tested with flatpak build


Issue Links:
Related
is related to COMPASS-6854 Move from keytar to Electron safeStorage Closed
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

I am one of the maintainers of the flatpak build of compass. (https://github.com/flathub/com.mongodb.Compass)

I've upgraded the base enviroment in runs on and also libsecret from 0.19.1 to 0.20.5. It seemed to work fine in the first place (existing connections can be used). But when adding a new connection the password not get saved (it works until a new start). With 0.19.1 is persist over a new start.

To be honest i can't tell yet if this is even an issue with compass of with the way flatpaks work. But i wanted to letting you know. Could be you have an idea why this could occur.

Steps to Reproduce

Compile and install "https://download.gnome.org/sources/libsecret/0.19/libsecret-0.19.1.tar.xz" and it should work

Compile and install https://download.gnome.org/sources/libsecret/0.20/libsecret-0.20.5.tar.xz and it should not work

Or if you are ok to test the flatpak use the current one vs this build with the downgraded dependency: https://github.com/flathub/com.mongodb.Compass/pull/40#issuecomment-1657637746

Expected Results

That is runs against both dependency versions.

Actual Results

Password do not persists.



 Comments   
Comment by Dominik Zogg [ 09/Aug/23 ]

Hi maurizio.casimirri@mongodb.com 

Thanks for the clarification.

I am a new maintainer of the flatpak (since two months). Otherwise it would be abandoned. And as a happy user of it (thank you and your team) i could not let that happen

Regards Dominik

Comment by Maurizio Casimirri [ 09/Aug/23 ]

Hi dominik.zogg@hotmail.com, unfortunately we weren't able to reproduce the issue with other linux builds of Compass.

However, this seems to be an issue with `keytar`, a third party dependency that we use to store secrets in the system keychain, including connection passwords. We planned to remove that dependency entirely in the upcoming months, that would hopefully solve the issue also for the flatpack build. Also thanks for maintaining that!

Comment by PM Bot [ 31/Jul/23 ]

Hello dominik.zogg@hotmail.com, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

Generated at Wed Feb 07 22:45:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.