Lurker News
We just had an interesting data loss at work, that was due to data being encrypted at rest. We somehow managed to delete the encryption keys (still figuring out how), which became an obvious problem once our main database instance was rebooted.

Luckily we were able to restore the data, but now I (we) really want to learn what a proper setup would look like.
If you have any clear overview reading on the topic I'd be very interested to to know about it.
In particular I'm wondering: how do you back up your encryption keys, or even put them in escrow somewhere? Assuming we don't rotate the keys constantly I would love to just save them in somewhing like a passsword manager that's secured with 2FA/FIDO.
Would love to hear your thoughts!

Comments (238) 101 threads

Earlier comments
gramakri1 reply#
I am curious how you managed to restore it if you lost the keys.
2mol1 reply#
"accidental" backups
gramakri#
ha ha, cheers mate. I asked because I had encrypted backups in the past for which I lost the key and wasn't so lucky :(

I don't know your company size but we use stackoverflow's blackbox. It's very nice because you can check in the repo into version control. You can add and remove users on the fly as well.

pianoraptor#
Piecing together a key management solution from open source is possible, but if you're trying to encrypt data and are open to commercial products, we do a lot of support of Vormetric.

All of the key management is "built-in" and managed, so there really isn't much overhead. All software-based, with FIPS certified key management. It's very easy to encrypt data this way. It is expensive though.
Disclaimer: while I used to work for Vormetric / Thales, I no longer do.

greyhair#
Hardware key control (HSM) with smart card controlled access.

Locked in a vault.
Keys are an actual secret key (within the HSM), unknown to any human.
Two people with two different access cards have to be present to enable key operations.
So, you don't have to worry about changing keys as employees come and go, because no one knows the actual keys.
There is a whole structure of spare cards stored in offsite secure storage in case a card is damaged, lost, or stolen.
Card set one is stored separately from card set two.

eqvinox#
We have a main config/setup git repository which contains keys (and passwords) in git-crypt. 4 people have GPG keys able to decrypt it, and this is used in normal operation for deployment (i.e. for ansible to feed the keys into systems.) The repo is cloned in quite a few places.

None of our secret material is particularly hard to revoke or replace; we don't run an internal CA or anything like that.

Load more comments