Skip to content

Conversation

@bkabrda
Copy link

@bkabrda bkabrda commented Nov 25, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant