alfred-keepassxc-workflow icon indicating copy to clipboard operation
alfred-keepassxc-workflow copied to clipboard

FR: Retrieve custom attributes

Open IOIO72 opened this issue 3 years ago • 3 comments

It would be helpful to be able to retrieve custom attributes.

IOIO72 avatar Dec 06 '21 21:12 IOIO72

@IOIO72

It would be helpful, but the workflow uses the keepassxc-cli show command and unfortunately it does not allow to get custom attributes. Only specific attributes need to be specified there. For example, to fetch an username and a password, the workflow runs the command keepassxc-cli show -a username -a password ....

There is one way to get the custom attributes, but I'm not sure about it yet. The way is to completely export the data from the KeepassXC database and collect this information.

In general, there is already the issue on KeepassXC issues. I hope they will allow us to fetch these attributes in near future.

lxbrvr avatar Apr 10 '22 21:04 lxbrvr

Thank you for the investigation. I'm not sure, if the following idea is a good idea: Is it possible to manually set up some attributes, which one uses in general?

IOIO72 avatar Apr 11 '22 13:04 IOIO72

The idea is good but...

The workflow uses the keepassxc-cli tool and it searches for entries by their paths. For example dir1/dir2/entry. Now let's imagine the next case.

  1. A user adds some custom attribute using the workflow for some KeepassXC entry. Let's call it as "Entry A" and the path to it is dir1/dir2/Entry A.
  2. The user opens the KeepassXC UI and renames the "Entry A" to "Entry B". The path is now dir1/dir2/Entry B.

After the second step the workflow shows "Entry B", but the custom attribute was added for "Entry A". And the custom attribute now is the redundant. It is not expected behavior for users. Of course we can show the user that there are such redundancies and it's necessary to do something with them. For example, delete or bind them with new KeepassXC entries. But should we make it so complicated?

Unfortunately the KeepassXC CLI doesn't tell us about any unique identifiers which exist during the whole entry life (movement, renaming etc). We have only paths.

lxbrvr avatar Apr 13 '22 13:04 lxbrvr