oddlama / agenix-rekey

An agenix extension adding secret generation and automatic rekeying using a YubiKey or master-identity
MIT License
197 stars 16 forks source link

Rekeying zero secrets leads to error #37

Open axelkar opened 1 month ago

axelkar commented 1 month ago
$ agenix rekey --force
Collecting information about hosts. This may take a while...
   Realizing 4 store paths
error:
       … while setting up the build environment

       error: getting attributes of path '/tmp/agenix-rekey.1001': No such file or directory

This is because rekeyedSecrets.cacheDir is never mkdir'd if no secrets are rekeyed (no secrets exist or all are skipped).