agenix icon indicating copy to clipboard operation
agenix copied to clipboard

fix: enable running rekey in a non-interactive shell

Open bkabrda opened this issue 1 month ago • 0 comments

This PR fixes an issue of rekeying in a non-interactive shell.

With the current code, EDITOR will be set to cp -- /dev/stdin in a non-interactive shell and hence the CLEARTEXT_FILE will be overwritten with an empty string - effectively erasing the secret value. This PR fixes that by only calling editor if we're not rekeying.

bkabrda avatar Nov 25 '25 12:11 bkabrda