Ive always used cryptsetup and never seen any intructions like how you are describing. I wonder if you have a different use case than I do? It seems like adding more complexity to start with one decryption method only to change it soon. Why?
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
I'd be very suspicious at what else this guide has for you if it advises to use "key" passphrase for a LUKS key.
With that said, most SSDs do encrypt data before it reaches the NAND. I don't know what "factory access mode" is and whether that can get around it.
I think yeah, I will not be following that advice for sure. Just wondering at this point if someone should take extra precautions around SSD encryption. Like should one overwrite the whole drive if a key is leaked so that the odds of recovering any info from the chips is lessened? Or is revoking the leaked key sufficient?
It all depends on the threat model. If I were protecting against accidental data disclosure after decommissioning an SSD, then revoking would suffice. However if I were a journalist gathering data on some unsavory state subjects, I'd probably only ever use high-entropy keys.
Use cryptsetup and it should handle key creation for you. I've never heard this but about key revision. How are you supposed to use the disk if the key is revoked?
Hdd's have bad block remapping sort of like ssd's, so the same issues apply to both types of media.
The op probably meant removing one key and adding another
Yes. Some guides suggest, say, "just use 'key' for now, we'll replace it later." I didn't mention their step adding a stronger key, I guess I didn't see that as an important part of the question.
I've never done it that way and don't see the benefit. Am I missing something? Of course for a testing setup just do something easy. But don't store any sensitive data under a weak key, ever.