keepassxreboot / keepassxc

KeePassXC is a cross-platform community-driven port of the Windows application “Keepass Password Safe”.
https://keepassxc.org/
Other
20.07k stars 1.42k forks source link

keepassxc prompts to create a new database when a program tries to modify/access keyring entry. #11015

Closed siddhpant closed 6 days ago

siddhpant commented 6 days ago

Overview

When a program tries to modify (or maybe even access? I don't remember all the times it happened) an entry, keepassxc prompts to create a new database.

It does not happen always, so I don't know the reproduction steps.

It seems to happen when keepassxc is minimised to tray and I have the other tab opened (multiple dbs are opened). I fix this by opening and switching to the tab. (or maybe the tab is a red-herring)

Context

KeePassXC - Version 2.7.7 Revision: 68e2dd8

Operating System: Debian testing Desktop Env: Gnome Windowing System: Wayland

droidmonkey commented 6 days ago

This is normal behavior if you set KeePassXC as the secret service provider and you have not designated a default collection. You need to either disable KeePassXC as a provider or you need to establish a default collection in an existing database.

For reference the dbus call that does this is:

<method name="CreateCollection">
    <arg type="o" direction="out"/>
    <arg name="properties" type="a{sv}" direction="in"/>
    <annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="QVariantMap"/>
    <arg name="alias" type="s" direction="in"/>
    <arg name="prompt" type="o" direction="out"/>
</method>
siddhpant commented 5 days ago

How do I establish a default collection?

droidmonkey commented 5 days ago

Application settings -> FDO Secrets tab

siddhpant commented 5 days ago

I see no such setting. Is it added in a newer version?

I just see "Exposed database groups", which lists the databases with None besides all except the keyring db (as expected).

siddhpant commented 5 days ago

This is due to issue mentioned in #8479 and #8611.

droidmonkey commented 5 days ago

Yes those would be the more relevant issue threads. I forgot you are using multiple databases.