Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -c create or replace option #271

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

feral-dot-io
Copy link

Currently agenix's CLI expects to be able to decrypt a file before operating further on it. If I don't have access to the identity file then this means either deleting the .age first or running agenix on the remote machine.

This PR helps by adding an explicit option that creates or replaces (if a file exists) a secret file without decrypting it first.

I realised partway through that this could also be accomplished by checking if stdin is a terminal but decided that a "don't decrypt" semantic option would be a better complement. So it's an alternative to #157.

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