Skip to content

[ BUG ] Last database setting + keyfile forgotten when opening with (password+keyfile+keepassXC challenge-response) #1414

@Alinus63

Description

@Alinus63

Previously, I always used a KeepassXC (kdbx v4.0) database with password+keyfile, with keyfile imported in app private folder of KP2A. KP2A always remembered last database setting + keyfile location next time I opened it.

I bought a Yubikey recently and set it up succesfully with KeepassXC (all platforms linux, Windows & macOS), same database. Using KP2A with ykDroid, I am also able to open it successfully, however once I close KP2A, next time I open the app it defaults to "password only" but more importantly, it has forgotten the keyfile location. Whatever the setting (password + whatever), the location is lost and I have to input it again. This is a major issue for keyfile imported in app private folder as I have to import it again.

What I find, using a Yubikey with HMAC-SHA1:

  • All settings are always remembered for "password+keyfile";
  • The file location and "password+keyfile+KeepassXC challenge-response" settings are lost when I open a database successfully, as soon as the app is closed: it defaults back to "password" and file location is permanently lost;
  • QuickUnlock works succesfully for same settings, as long as app is not closed;
  • I then have to import the keyfile again - when imported to the app private folder, the trailing index of stored imported keyfile increases automatically (e.g. KP, KP1, KP2,... as the file name), suggesting copies of the same keyfile are added every time.

I tried to add storage permission to the Android app, to no avail.

Please help, as reimporting the keyfile everytime is not possible to use: either presents a security risk if keyfile is in generic file directory, either need to reinitiate the import in private app folder (not possible when in the field).

KP2A version: latest (1-08b-r1)
Android 10 (Samsung Galaxy Note 9 with latest update 1 Sep)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions