Re:A Hacker Has Wiped a Spyware Company’s Servers
by kuschku on Tuesday February 20, 2018 @12:30AM
(#16418070)
So how do you do version the configuration management for the cluster that runs everything? It needs to be versioned, and yet with just the data in it you need to be able to recreate your entire environment from scratch.
Re:A Hacker Has Wiped a Spyware Company’s Servers
by shkkmo on Tuesday February 20, 2018 @02:30PM
(#16423326)
If you want your secrets under version control, then they should be encrypted.
There are lots of ways of doing this. git-crypt is one that is configuration management agnostic. Most CM tools have their own way of dealing with secrets and there are CM agnostic tools like git-crypt. I'm not personally familiar with anything besides ansible-vault, but this article seems to provide a pretty good summary of several options: https://www.threatstack.com/blog/cloud-security-best-practic...
Now, if your secrets are encrypted before being committed (using something like ansible vault) and the encryption key is not stored in the repo, that may be ok. However, you still need to be aware that any time you rotate that key, you also should to rotate every secret hidden behind that key.