Skip to content
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

Linux fix: Search with schemas fails in cold keyrings #621

Merged

Conversation

inetic
Copy link
Contributor

@inetic inetic commented Sep 26, 2023

When the keyring is cold (e.g. after restart without a login or after running gnome-keyring-daemon --replace on the command line), lookup using schemas would return null entries without prompting the user for their passwords.

This is especially dangerrous in situations where the user wants to write an entry to the keyring. In such case, if there were previously stored secrets in the FlutterSecretStorage entry, those would be ignored and only the new entry would be stored. Effectively erasing all previously stored secrets.

The issue is explained here:
https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/89

However, the solution used in this commit is the one used in the chromium browser: http://crbug.com/660005

When the keyring is cold (e.g. after restart without a login or after
running `gnome-keyring-daemon --replace` on the command line), lookup
using schemas would return null entries without prompting the user for
their passwords.

This is especially dangerrous in situations where the user wants to
write an entry to the keyring. In such case, if there were previously
stored secrets in the FlutterSecretStorage entry, those would be ignored
and only the new entry would be stored. Effectively erasing all
previously stored passwords.

The issue is explained here:
https://gitlab.gnome.org/GNOME/gnome-keyring/-/issues/89

However, the solution used in this commit is the one used in
the chromium browser: http://crbug.com/660005
@inetic
Copy link
Contributor Author

inetic commented Sep 26, 2023

Fixes #618

@juliansteenbakker
Copy link
Owner

Thank you for your contribution!

@juliansteenbakker juliansteenbakker merged commit a9a7100 into juliansteenbakker:develop Oct 3, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants