Skip to content

Improve naming of items in KeepassXC #95

Closed

Description

@scollovati

Please agree to the following

Summary

Improve naming of items in KeepassXC

Motivation

I suggest to use the name of the vault as the title of the KeepassXC item, potentially putting the "Vault" word before or after it. In fact Cryptomator API offers the displayName.

This would be useful since KeepassXC uses the title in these popups when updating or deleting an item:

  • A request for deleting entry “[TITLE]” has been received.

  • Do you want to update the information in [TITLE] - [USERNAME]?

By making this change, the key of the vault that now is used as the title, could be put in the username field instead of the generic "Vault" word.

This change should not have any impact on existing Cryptomator credentials in KeepassXC since those are retrieved via the URL (scheme + vault key).

Considered Alternatives

No response

Anything else?

No response

Activity

  1. purejava commented on Dec 14, 2024

    @purejava
    Owner

    Thanks @scollovati for this suggestion. I would love to implement it and thought about it too on creating this plugin, but unfortunately, it's not possible IMHO.

    The plugin communicates with KeePassXC's built-in proxy via the KeePassXC protocol. Just like the KeePassXC browser extension does.

    The message sent to the KeePassXC database on storing a new entry contains the URL of the web page, not even the title of the web page. So the new entry gets created in the database, with the title of the new entry being the hostname of the URL. It's a limitation of the underlying protocol. For more information, see the keepassxc-protocol.

  2. scollovati commented on Dec 16, 2024

    @scollovati
    Author

    @purejava True, I've not looked carefully at the protocol. However using the displayName of the vault instead of a generic "Vault" as the username is possible:

    if (!proxy.setLogin(urlVault, null, null, name, password.toString(), APP_NAME, group.get("uuid"), null)) {

  3. purejava commented on Dec 16, 2024

    @purejava
    Owner

    @purejava True, I've not looked carefully at the protocol. However using the displayName of the vault instead of a generic "Vault" as the username is possible:

    if (!proxy.setLogin(urlVault, null, null, name, password.toString(), APP_NAME, group.get("uuid"), null)) {

    Unfortunately not. Cryptomator sends the displayName variable to the plugin, that transfers it to KeePassXC, that ignores it. The field in the protocol that is used by the plugin is an id, that's ignored, as said. See here: https://github.com/purejava/keepassxc-proxy-access/blob/3ae6f5b724412acdcb1fb4d7b4600e38b1acfad8/src/main/java/org/purejava/KeepassProxyAccess.java#L301

  4. scollovati commented on Dec 17, 2024

    @scollovati
    Author

    @purejava True, I've not looked carefully at the protocol. However using the displayName of the vault instead of a generic "Vault" as the username is possible:

    if (!proxy.setLogin(urlVault, null, null, name, password.toString(), APP_NAME, group.get("uuid"), null)) {

    Unfortunately not. Cryptomator sends the displayName variable to the plugin, that transfers it to KeePassXC, that ignores it. The field in the protocol that is used by the plugin is an id, that's ignored, as said. See here: https://github.com/purejava/keepassxc-proxy-access/blob/3ae6f5b724412acdcb1fb4d7b4600e38b1acfad8/src/main/java/org/purejava/KeepassProxyAccess.java#L301

    In my last comment, I am referring to the login parameter , that is currently hard-wired as "Vault":

  5. purejava commented on Dec 17, 2024

    @purejava
    Owner

    In my last comment, I am referring to the login parameter , that is currently hard-wired as "Vault":

    You are right, that can be improved. I misread your previous comment, sorry.

  6. purejava commented on Dec 17, 2024

    @purejava
    Owner

    Implemented with 2e5c21d and released as version 1.2.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions