Skip to content

Releases

0.2.1

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

0.2.0

Choose a tag to compare

@leo-scientist leo-scientist released this 30 Nov 09:44
0.2.0
0793876

The first release with a GPG-signed tag. keytap works exactly as in 0.1.0; only the version it prints has changed. This release is about how the tool is built, packaged and checked.

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.0
git switch --detach 0.2.0
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.1.0, make update asks for your sudo password and one Touch ID confirmation, then hands your secrets over to the new build.

Added

  • make install DESTDIR=<dir> stages the files under <dir> for a package, without sudo or a hand-over.
  • make build and make install pass SWIFTFLAGS to the compiler and LDFLAGS to the linker, for example make build SWIFTFLAGS=-sanitize=address.
  • How to reproduce a build bit for bit, and an assurance case.
  • CodeQL analysis of the Swift code and the workflows, OpenSSF Scorecard, and the OpenSSF Best Practices badge.
  • CODE_OF_CONDUCT.md, GOVERNANCE.md and ROADMAP.md.

Changed

  • SECURITY.md links straight to private vulnerability reporting and describes each step from report to disclosure.
  • Contributions need a DCO sign-off (git commit -s).

Full changelog: 0.1.0...0.2.0

0.1.0

Choose a tag to compare

@leo-scientist leo-scientist released this 27 Nov 11:14

First release of keytap, a macOS CLI that stores secrets in the login Keychain and hands one out only after Touch ID.

Features

  • Touch ID on every get, with the Mac password or Apple Watch as a fallback; Touch ID only with policy = biometry
  • The prompt shows which secret, which program asked and where it was started
  • Optional reuse window per terminal tab (cache_seconds)
  • make update hands stored secrets over to the new build
  • Optional account (defaults to your user name), zsh completion, keytap --version

Install

Build from source with make install (macOS 13+, Swift 6.2+). See installation.

Full Changelog: https://github.com/leo-scientist/keychain-touchid/commits/0.1.0