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

Feature: allow overwriting secret, instead of editing it #281

Open
eyJhb opened this issue Aug 11, 2024 · 0 comments
Open

Feature: allow overwriting secret, instead of editing it #281

eyJhb opened this issue Aug 11, 2024 · 0 comments

Comments

@eyJhb
Copy link

eyJhb commented Aug 11, 2024

The use case is,that I have a password stored in a secret file for e.g. my murmur server, which I will rotate on a regular basis.
However, I have no need for to decrypt it before I change the content of the file, I just want to overwrite it, like it was a completely new file.
It would be nice, if it was possible to do with the CLI agenix provides.

I realise that a current workaround would just be to rename tho file, or delete it before using the -e option.

I would expect it to work as follows:

  1. agenix --overwrite murmur-password.age
  2. Open editor/copy from stdin
  3. If input is non-zero, then overwrite, otherwise keep existing file.

Could that maybe be of interest?

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

No branches or pull requests

1 participant