-
Notifications
You must be signed in to change notification settings - Fork 123
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
Implement a fail condition for a scenario where the user does not have a key to decrypt the secret. #262
Comments
The problem here is that |
Can't that be managed by making agenix to generate a service that checks if the file was decrypted in the agenix directory and if not to place an alternative file on it's place? |
It would technically be possible to make I think that the most that can be done without defeating the very purpose of |
NB, if you don't care about the secret being accessible in the Nix store, but just don't want to publish it to GitHub or similar, then you don't want |
A lot of repositories state caution alike:
from https://github.com/NotAShelf/nyx?tab=readme-ov-file#disclaimer
As currently (r)agenix will just silently fail which results in a blank data parsed to the option.
This complicates some usecases:
As e.g. with
disko
you currently need to make a script to decrypt all relevant secrets and then parse them todisko
to make an image (https://github.com/nix-community/disko/blob/master/docs/disko-images.md) that then you can load in e.g. QEMU.Proposal
Make the attribute to return
false
when e.g.config.age.secrets.<name>.path
is called that (r)agenix is unable to decrypt so that theor
operator can be used to supply an alternative secret:Alternatively adding an attribute to
age.secrets.<name>
with an option to declare a fail condition that will trigger in case (r)agenix is unable to decrypt the secret:The text was updated successfully, but these errors were encountered: