keepassxc icon indicating copy to clipboard operation
keepassxc copied to clipboard

Search in all opened databases for matching credentials does not work

Open oceanBT opened this issue 3 years ago • 8 comments

Overview

The Option "Search in all opened databases for matching credentials" in the Browser-integration does not work.

Steps to Reproduce

  1. Enable "Search in all opened databases for matching credentials"
  2. Open and unlock a database that is connected to the browser extension (A.kdbx)
  3. Open and unlock a database that is not connected to the browser extension (B.kdbx)
  4. open a website in chrome where you have credentials in A.kdbx

Expected Behavior

The extension should provide credentials from A.kdbx

Actual Behavior

The extension does not provide credentials from A.kdbx. I have to open keepassXC and switch tab to "A.kdbx", reload webpage then the auto completion in chrome works as expected.

Context

This is no new problem. I use keepassxc since about one year with multiple databases and it never worked as expected.

KeePassXC - Version 2.6.6 Revision: 9c108b9

Qt 5.15.2 Debugging mode is disabled.

Operating system: Ubuntu 21.10 CPU architecture: x86_64 Kernel: linux 5.13.11-051311-generic

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (signed and unsigned sharing)
  • YubiKey
  • Secret Service Integration

Cryptographic libraries:

  • libgcrypt 1.8.8

Desktop Env: Gnome Windowing System: Wayland

oceanBT avatar Jan 07 '22 10:01 oceanBT

I agree the focused tab condition is very confusing to users. Recommend an update to that @varjolintu

droidmonkey avatar Jan 07 '22 12:01 droidmonkey

@droidmonkey I'm working on it, but it needs a lot of changes.

varjolintu avatar Jan 07 '22 12:01 varjolintu

Instead of breaking the current protocol, I'm trying to add all connected databases to a separate array for some responses, so we can still detect them even if the active database is not connected to the extension.

varjolintu avatar Jan 07 '22 14:01 varjolintu

Related issue: https://github.com/keepassxreboot/keepassxc-browser/issues/1275

varjolintu avatar Jan 07 '22 14:01 varjolintu

Yah I think we discussed this before that the database and the extension connection were too tightly bound. Need to add a shim in between to allow for the "search everywhere even if only one database is registered to extension".

droidmonkey avatar Jan 07 '22 14:01 droidmonkey

It seems to be the same issue with DBus secret service requests. I have multiple databases with secret service enabled. Lookup only finds entries in the database that is currently focused in the keepassxc window.

flyingflo avatar Feb 15 '22 07:02 flyingflo

any update about this? is there a way to work with two databases without entering every time in the one you need?

fcana avatar Feb 25 '24 18:02 fcana

@fcana It's already fixed for the next protocol update, but it's coming with KeePassXC 2.8.0 so it's gonna take a while.

varjolintu avatar Feb 25 '24 18:02 varjolintu

Duplicate of #5238

droidmonkey avatar Aug 18 '24 18:08 droidmonkey