Replies: 3 comments 9 replies
-
For secrets like this, I'd strongly recommend using a password manager to store your secrets. That way the amount of information revealed in your public dotfiles repo is almost minimized. Here's an example of a secret in my public dotfile repo that is stored outside the repository - here I use a chezmoi template function to retrieve a secret from my personal password manager (LastPass), while still keeping my dotfiles repo public. |
Beta Was this translation helpful? Give feedback.
-
Modern password managers can store entire files. Here's an example from my personal dotfiles where I bring in a section of a config file from a password manager. Of course, this works for entire files too. Modern encryption tools like age and gpg combined with chezmoi's native support for them mean that you can push encrypted files to your public dotfile repo, like this. Note that chezmoi has builtin support for age. I'm struggling to understand what exactly you want that isn't already provided by chezmoi. Would you be able to give a description of your ideal solution? |
Beta Was this translation helpful? Give feedback.
-
By the way #741 was opened to add Enpass support to chezmoi, but there was no indication from Enpass that there would ever be an official CLI, so I closed the issue. |
Beta Was this translation helpful? Give feedback.
-
I use a public repository for my dotfiles and am wondering whether I can in some way store the encrypted files outside that repository while still benefitting from what chezmoi offers. Some things, I would want to store are my ssh key (
~/.ssh/id_rsa
) and tokens I'll be using in chezmoi templates (the templates will be part of the public repository). Even if encrypted, I would rather not put them in a repository accessible by anyone so I was hoping for a way to store it at a different not publically accessible place. Preferably another git repository (perhaps as a git submodule?) but if that's not achievable then a local directory/archive would be alright too as I can just manually get it onto the system before running chezmoi.I don't really know whether I can achieve this with chezmoi already and am hoping to either find an already working solution or pointers on what feature I would have to request on the issue tracker to make this possible.
Beta Was this translation helpful? Give feedback.
All reactions