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

FR: Template secrets #76

Open
dantefromhell opened this issue Feb 18, 2025 · 0 comments
Open

FR: Template secrets #76

dantefromhell opened this issue Feb 18, 2025 · 0 comments

Comments

@dantefromhell
Copy link

I have a setup in which I repeatedly have to store API secrets that consist of multiple variables (https://go-acme.github.io/lego/dns/cloudflare/#api-tokens) in a single agenix secret.

Creating a new secret feels a bit cumbersome so I wondered if there's a possibility to add support for templates.

My naive idea is something like:

age.secrets."newSecret" = {
  rekeyFile = ./aSecretFile.age;
  templateFile = ./aTemplateForSecrets.txt;
};

Another possibility could be to add template which accepts a string so that one can use
nix code to manage the template.

The workflow would be:
if agenix edit aSecretFile.age is called but the age file does not exist, pre-fill the editor with the
text from template or the file-content of templateFile.

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