I would like to migrate away from using .env for secrets, and use something hashicorp vault. How would one do this for something like pihole, where there is an env var with the password?
See if a light weight kubernetes installation is for you. Secrets are first class citizens in k8s. You can make maintain secrets in a number of different ways, but they are exposed to containers the same way. They can become files or environment variables, whether you need.
I recommend looking at k3s to run on your Pi and see if that works for you. You can add vault software on top of that later without changing your containers.
slazer2au@lemmy.world 1 week ago
What I have seen people do in the past is use ansible secrets to secure the env file.
So only when the playbook is running does the env get decrypted.
Digital Ocean has an extensive how to on it.
digitalocean.com/…/how-to-use-vault-to-protect-se…