From 03d7362fc8e4f97fbd78f5e71d9943029a943650 Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Wed, 18 Nov 2026 19:45:20 +0000 Subject: szecret: /usr/local/bin on PATH for the age plugins, which launchd's PATH lacks; enrol --se makes an age1tag1 key, which age encrypts to natively --- secrets/enrol.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'secrets/enrol.sh') diff --git a/secrets/enrol.sh b/secrets/enrol.sh index 8174d6f..4bd87f3 100755 --- a/secrets/enrol.sh +++ b/secrets/enrol.sh @@ -60,9 +60,11 @@ case "${kind}" in ;; se) exists age-plugin-se || die "--se needs age-plugin-se, which is not installed; no key made" - (umask 077 && age-plugin-se keygen --access-control=none -o "${tmp}") \ - || die "age-plugin-se could not make a key (is there a Secure Enclave, and is the screen unlocked?); no key made" - pub="$(age-plugin-se recipients -i "${tmp}")" + # tag: an age1tag1 key, which age 1.3 encrypts to without the plugin, + # so the hosts that write this machine's buckets need none. + (umask 077 && age-plugin-se keygen --access-control=none --recipient-type=tag -o "${tmp}") \ + || die "age-plugin-se could not make a key (is there a Secure Enclave?); no key made" + pub="$(age-plugin-se recipients --recipient-type=tag -i "${tmp}")" ;; esac -- cgit v1.2.3