Skip to content

Conversation

elliott-farrall
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