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: added support for substituting secrets into files #290

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

Conversation

ElliottSullingeFarrall
Copy link

A while ago I started using agenix with an additional feature to allow the substitution of decrypted secrets into files and it was recently suggested that I look into upstreaming this feature.

The core functionality (that is added to both the nixos and home-manager modules) is implemented via the age.secrets.secret-name.substitutions option. When given a list of file paths (as strings), any instance of @secret-name@ in these files will be substituted with the corresponding secret. If the file is managed via home.file in home-manager, I recommend setting force = true for this file to avoid collision warnings.

I haven't implemented any additional tests for this feature yet but can look into it if needed.

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