Repository navigation
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/etcmust be owned by root and not writable by anyone else, or every command stops. On an Intel Mac where Homebrew owns that directory,keytapdoes not work; see Requirements.make installandmake updaterefuse to run withsudo. Run them as yourself: they ask forsudowhere 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 keytapThe 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 verifychecks it. Where a process running as you could write that directory, it could remove the settings file and so turnpolicy = biometryback into the default.
Fixed
sudo make installandsudo make updateare refused. Undersudothe 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 updatesays 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 startedkeytapwith 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
- macOS 15.6 is the oldest supported, in the requirements and in the package. Both said macOS 13, where the tool cannot be built: nothing older runs a toolchain with Swift 6.2.
- The documentation says what an update means on a Mac with several accounts and what the reuse window means for a secret that can be guessed.
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 coverageruns 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
mainand every pull request.
Full changelog: 0.2.0...0.2.1