this post was submitted on 18 Jun 2025
30 points (96.9% liked)

Selfhosted

46672 readers
907 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. 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.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

I use a headless server connected to nothing but an ethernet cable in my basement, and I'd prefer to allow the thing to boot by itself and start up without me needing to unlock the disk encryption every single time I do an update or power back on. Its a Dell 9500t NUC that I'm using it as a server and am wondering whether its possible to encrypt everything still.

I do generally use docker containers, so could I potentially encrypt just the containers themselves, assuming I'm worried about a smash and grab rather than someone keeping the machine powered up and reading my ram?

you are viewing a single comment's thread
view the rest of the comments
[–] I2jgwh0hYtxrCZQ@lemmy.sdf.org 4 points 6 hours ago* (last edited 6 hours ago) (1 children)

I read somewhere someone had their encryption key on their phone / another server and had the server pull the key via ftp on boot. Then the server and encryption key is separated but can decrypt its self as long on the ftp server is available.

Edit - might have been unraid where the OS and data drivers are separate

[–] lorentz@feddit.it 2 points 5 hours ago (1 children)

I've configured something similar. The /boot partition is the only unencrypted. In the initramfs there is a script that downloads half of the decryption key from http, while the other half is stored in the script itself. The script implements automated retry until it can fetch the key and decrypt the root partition.

My attack model here is that, as soon as I realize someone stole my NAS I can shutdown the server hosting half of the decryption key making my data safe. There is a window where the attacker could connect it to a network and decrypt the data, but it is made more difficult by the static network configuration: they should have a default gateway with the same IP address of mine.

On my TODO list I also have to implement some sort of notification to get an alert when the decryption key is fetched from internet.

[–] Passerby6497@lemmy.world 1 points 34 minutes ago

On my TODO list I also have to implement some sort of notification to get an alert when the decryption key is fetched from internet.

Why is it fetchable by arbitrary IPs from the internet? I'd think you'd lock it down to an IP/only make it available locally.