Record key behavior when the device passcode is absent or changes

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin
Domain
mobile, security

Research direction

Read docs/engineering/ios-device-bound-key-access.md and PR #4 to understand the documented Keychain behavior and stale-tag handling. Follow the steps on a dedicated test iPhone and record each outcome with the iOS version/build, including whether the missing-item path clears the reference and reports no synthetic key. Confirm the test ends with no synthetic key remaining and note any cases left untested.

Written by the indexing model from the issue text.

Description

good first issue help wanted

Evidence

The iOS key-access findings state that WhenPasscodeSetThisDeviceOnly requires a device passcode and that passcode removal deletes items in this class. Neither behavior has been exercised on hardware. PR #4 now clears the saved tag when a lookup returns errSecItemNotFound, but that invalidation path has not been observed on a device.

Work

On a dedicated test iPhone with no real credentials:

  1. Test key creation while the device has no passcode and record whether creation fails without a fallback.
  2. Set a test-device passcode, create a synthetic key, then change the passcode and check key availability and UI state.
  3. If the test device can safely be returned to a no-passcode state, remove the passcode and record whether the Keychain item disappears; restore the device to its agreed test configuration afterward.

Do not remove or change the passcode on a regular personal or work device. If no suitable test device is available, leave the destructive cases untested and record that limitation.

Acceptance criteria

  • The no-passcode creation result is recorded, including confirmation that no software-key fallback is created.
  • Passcode-change and, if safely testable, passcode-removal outcomes are recorded separately with the iOS version/build.
  • When the item is absent, the app clears its stale key reference and reports that no synthetic key is available.
  • The test ends without a synthetic key remaining and without changes to a non-test device.
Dominant language
Kotlin
Stars
0
Forks
0
Avg merge
3h 20m
Merged PRs (30d)
59

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsotto/sotto-authenticator

All issues in getsotto/sotto-authenticator

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.