Best way automatically encrypt files with sops when git committing? #1891
Unanswered
Oneechan69
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been setting up sops for secrets, I have some config files with multiple secrets in each of them inside my .config folder, that I want encrypted when I
git commit
(my age key is stored outside this folder). I want programs that depend on those configs to read the secrets though.What would be the best solution? I did a bunch of looking up and didn't find specific answers, so I guess I would just make a git pre-commit hook to encrypt the files, commit, then decrypt them afterwards. Is there a command or way to encrypt decrypt all files specified in
.sops.yaml
?Beta Was this translation helpful? Give feedback.
All reactions