Closed jimdigriz closed 1 month ago
The problem doesn't seem to be with the key being irrecoverably broken, but by the app trying to access it without authentication. If you can capture a full log following the steps here it'll be easier to identify why that happened.
Updated to the latest snapshot (https://github.com/android-password-store/Android-Password-Store/commit/6a5e35a95c795e7c56048ac36d86da53c2799e4e) and here is the log for generating an ed25519 ssh key and another covering a few (successful) attempts to import the GPG key, but when I tried to access a secret...though it no longer crashes, the app just seemingly jumps in and back out of the particular secret (the error has changed, but I am not being prompted for a passphrase).
Describe the bug
I had been running 2.0.0-SNAPSHOT from Aug 2023 with success until recently.
A few weeks back I started being prompted for my SSH passphrase, which I repeatedly tried (maybe I forgot it, not really relevant) and was just told there was a problem decrypting the key.
I found the time today to look into getting this working again, but after cleaning my app storage, and also uninstalling and reinstalling a recent 2.0.0-SNAPSHOT (https://github.com/android-password-store/Android-Password-Store/commit/6bf819ff9dd81d3dd9e21d98d6d14b6e1d9413a6) I then just got "the master key android-keystore://sshkey exists but is unusable". I tried reinstalling as per the advice in https://github.com/android-password-store/Android-Password-Store/issues/2649#issuecomment-1678623336 but similarly to https://github.com/android-password-store/Android-Password-Store/issues/2649#issuecomment-1679014559 it seemed to have no effect.
To make some progress, I unchecked the 'use screensaver lock' (as I was having similar problems to https://github.com/android-password-store/Android-Password-Store/issues/1144) which worked and then imported my GPG key.
When trying to decrypt one of my secrets, I am not prompted for my GPG passphrase, the screen just flickers white and looks like the app just reloads, but from the debug logs I see:
So it looks like these keystore secrets are wedged in there and I have no idea how to purge them.
Uninstalling does not burn
android-keystore://{sshkey,passphrase}
and also burning the app storage does not.I am completely stuck now.
Any suggestions?
Steps to reproduce
Steps to reproduce the behavior:
android-keystore://{sshkey,passphrase}
secrets wedged in thereExpected behavior
Ability to burn/ignore existing android-keystore secrets.
Screenshots
No response
Device information
Additional context
Maybe a fix, as my understanding is "Android is buggy", could be to have a prefix (or suffix) to the secrets being stored so via an advanced menu option at least the user could provide a unique string to ignore the unpurgable existing secrets