Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

[BUG] SSH key stored in Android KeyStore cannot be used if user hasn't authenticated in a while #1415

@renyuneyun

Description

@renyuneyun

Describe the bug
After removing the device lock (and re-enabling it later), the app asks for password to perform git operations, but nothing works -- I tried my device PIN, GPG key password and even a few other potential passwords.
The error message says problem getting private key from com.zeapo.pwdstore.git.sshj.SshKey$.
IIRC, the ssh key was protected by fingerprint.

To Reproduce
Steps to reproduce the behavior:

  1. Set up the repo, using ssh to authenticate (generate a new ssh key pair, and set it up on the git server, github)
  2. Go to Android's device security settings, remove device protection (PIN and fingerprint)
  3. Re-enable the device lock (Maybe optional, not tested)
  4. Go to PasswordStore
  5. Perform any git operation (e.g. "synchronize repository")

Expected behavior
Ask for fingerprint, and pass when fingerprint matches.

Screenshots
Screenshot_20210519-110207594
Screenshot_20210519-110213421

Device information (please complete the following information):

  • Device: OnePlus 6
  • OS: BlissROM 12.12, Android 10
  • App version: 1.13.4

Additional context
It started to happen before this version. Maybe this existed long ago.

Metadata

Metadata

Labels

A-UI-UXArea: General UI/UX concernsA-authArea: Connection and authenticationC-bugCategory: This is a bugE-mediumEffort: This requires a fair amount of workP-highPriority: high, must be resolved before next major release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions