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
Package gir1.2-secret-1 changes behaviour #558
Comments
It seems that something about installing When you remove that library, Keyring detects that you have no viable backends, so falls back to the "fail" keyring, meaning it should fail when queried.
I'm not sure your expectation can be met. Keyring specifically aims to infer from the user's environment the best set of backends to offer. If that library is changing the environment, making the As for without libsecret, the behavior is also working as intended:
(ignore the pip warning; it's just noise) As you can see, it's expected that attempting to retrieve a password when no backends are present is meant to cause an error. You can work around this error by disabling keyring or by supplying a working backend. |
Is there any other way to tell if the backend is actually viable, other than trying the imports? I believe that could be enough. I guess that the
I can't deny that. Keyring library is as deep as I can debug the problem. Hope you can pass the bug to the
Actually I have multiple backends, but I can't use them. The |
You can test if a given backend is viable by accessing that attribute:
The viable property merely reflects if |
I was also able to replicate the issue using the Dockerfile provided:
|
I was able to replicate the issue using this command, not involving keyring:
Now we just need someone to figure out what it is about |
With libsecret backend, just like with Secret Service backend, you need to have gnome-keyring or another Secret Service server implementation installed and running. Libsecret has a special mode when it works without server process, but it applies only to Flatpak applications. |
Is this fixed by #603 ? |
Describe the bug
I ran into an error which prevented me from using
devpi
, cause by the presence ofgir1.2-secret-1
package.devpi
ended up in erroralthough the
gnome-keyring
is not installed and there is no backend for the keyring available (that I'm aware of). Anyway the uninstallation ofgir1.2-secret-1
resolved the problem. The issue may be related to #19.To Reproduce
I wan able to reproduce the issue using docker:
Dockerfile
This produces the error same as above
but a different output if
gir1.2-secret-1
is not installed:Expected behavior
Same behavior for cases when
gir1.2-secret-1
is installed and when it isn't. In case ofdevpi login
, it should result in devpi asking for password directly.Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: