Skip to content

0.2.1

Latest

Choose a tag to compare

@leo-scientist leo-scientist released this 04 Dec 10:31
0.2.1
0a00bf6

A release of fixes: no new commands or settings. It closes what a review of the repository found, mostly in installing and updating. It is stricter in two places you may notice:

  • /usr/local/etc must be owned by root and not writable by anyone else, or every command stops. On an Intel Mac where Homebrew owns that directory, keytap does not work; see Requirements.
  • make install and make update refuse to run with sudo. Run them as yourself: they ask for sudo where they need it.

Install or update

curl -fsSL https://github.com/leo-scientist.gpg | gpg --import
gpg --fingerprint C1F2F51FD575AFD3
git fetch --tags        # or clone https://github.com/leo-scientist/keychain-touchid.git
git verify-tag 0.2.1
git switch --detach 0.2.1
make update             # make install on a Mac without keytap

The primary key fingerprint must be 0E28 689C 6D4F 4A1C 1F4E 6F6F C1F2 F51F D575 AFD3, and git verify-tag must say Good signature. If it does not, do not build. See Checking the sources.

Over 0.2.0, make update asks for your sudo password and one Touch ID confirmation, then hands your secrets over to the new build. You need macOS 15.6 or later.

Security

  • The directory of the settings file, /usr/local/etc, must be owned by root and not writable by group or others, whether or not the file exists; make verify checks it. Where a process running as you could write that directory, it could remove the settings file and so turn policy = biometry back into the default.

Fixed

  • sudo make install and sudo make update are refused. Under sudo the hand-over looked in root's keychain, found nothing, and the update replaced the only build that could read your secrets.
  • A login keychain whose file does not exist is an error. Before, every command took it for an empty keychain.
  • make update says how to finish when the secrets were handed over but the new build could not be moved into place.
  • A name with a letter such as é, й or ї reaches the same secret however the caller passed it. A program that started keytap with the letter decomposed got "not found" for a secret stored from a shell. Names from the command line are now used composed (Unicode normalization form C).
  • zsh completion offers the accounts of a service whose name has to be quoted, such as one with a space.

Changed

Added

  • Property tests with random inputs, and a fuzz target, for everything that parses untrusted input: names and command lines, process names and arguments, reuse-window and hand-over records, the settings file.
  • make coverage runs the tests with line coverage and fails below 80%; CI runs it and reports to Codecov.
  • Gitleaks looks for secrets in the history on every push to main and every pull request.

Full changelog: 0.2.0...0.2.1