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

--rekey should accept list of files or only change files that need to be updated #10

Open
Gerschtli opened this issue Nov 28, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@Gerschtli
Copy link

Hey,

I will shortly explain a use case: I have two systems, each of them has two secrets. If I change the key for system A, I want to run rekey and only update the secrets that are affected by the change of the key of system A. Currently, all four secrets will be updated.

├── system-a/
│   ├── secret-1
│   └── secret-2
└── system-b/
    ├── secret-1
    └── secret-2
  1. Is it possible for agenix to recognize that only two of the four secrets should be updated?
  2. If not, could you add a possibility that the CLI accepts multiple files instead of only one? (like agenix -r secrets/a secrets/b)
@cole-h cole-h added the enhancement New feature or request label Nov 28, 2021
@cole-h
Copy link
Owner

cole-h commented Nov 28, 2021

"Smartly" detecting which secrets should be updated is not something I want to (attempt to) support.

Is for secret in system-a/**; do agenix -r "$secret"; done not a good solution for you? I'm hesitant to allow working with multiple paths (and by extension, rekeying them) because agenix only supports working on one path at a time at the moment.

@Gerschtli
Copy link
Author

I am fine with the for loop, just thought it would be a good improvement for the CLI to be more user friendly and flexible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants